Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Colab Env Check & Install #9

Open
wants to merge 45 commits into
base: master
Choose a base branch
from

Conversation

gumdropsteve
Copy link
Contributor

@gumdropsteve gumdropsteve commented Nov 11, 2019

Add env_check.py to check the Colab environment and let users know their situation and bsql-colab.sh to install BlazingSQL in Colab. + remove extra files.

gumdropsteve and others added 30 commits October 16, 2019 22:42
Thinking this is more runable, having issues executing !nvidia-smi
…/libcuml_1571339163826/work/cpp/src_prims/common/cuml_allocator.hpp line=109: FAIL: call='cudaMalloc(&ptr, n)'. Reason:out of memory)
reformatted; use pynvml (preinstalled in base Colab) - remove other scripts or format like so if kept
Colab Environment Check (function & script)
make inot script
make into script, formatting
Thank you, Adam.
testing elimination of temp fix colab install
sync with master
Checking for GPU type:
Woo! You got the right kind of GPU!
Traceback (most recent call last):
  File "colab_env.py", line 46, in <module>
    subprocess.Popen(['blazingsql-orchestrator', '9100', '8889', '127.0.0.1', '8890'],stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'blazingsql-orchestrator': 'blazingsql-orchestrator'
Trying to complete the setting paths part of temp p-100 colab install within bsql-colab.sh
takes too long
does not work as python script, forever pends connection 8889

```
*********************************************
Your Google Colab instance is BlazingSQL ready!
*********************************************
--2019-11-13 02:19:45--  https://github.com/gumdropsteve/bsql-demos/raw/feature/utils/utils/set_paths.py
Resolving github.com (github.com)... 140.82.118.4
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/gumdropsteve/bsql-demos/feature/utils/utils/set_paths.py [following]
--2019-11-13 02:19:46--  https://raw.githubusercontent.com/gumdropsteve/bsql-demos/feature/utils/utils/set_paths.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 571 [text/plain]
Saving to: ‘set_paths.py’

set_paths.py        100%[===================>]     571  --.-KB/s    in 0s      

2019-11-13 02:19:46 (116 MB/s) - ‘set_paths.py’ saved [571/571]

Setting RAPIDS paths
SLF4J: The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
/usr/local/lib/python3.6/site-packages/numba/cuda/envvars.py:17: NumbaWarning: 
Environment variables with the 'NUMBAPRO' prefix are deprecated and consequently ignored, found use of NUMBAPRO_NVVM=/usr/local/cuda/nvvm/lib64/libnvvm.so.

For more information about alternatives visit: ('http://numba.pydata.org/numba-doc/latest/cuda/overview.html', '#cudatoolkit-lookup')
  warnings.warn(errors.NumbaWarning(msg))
/usr/local/lib/python3.6/site-packages/numba/cuda/envvars.py:17: NumbaWarning: 
Environment variables with the 'NUMBAPRO' prefix are deprecated and consequently ignored, found use of NUMBAPRO_LIBDEVICE=/usr/local/cuda/nvvm/libdevice/.

For more information about alternatives visit: ('http://numba.pydata.org/numba-doc/latest/cuda/overview.html', '#cudatoolkit-lookup')
  warnings.warn(errors.NumbaWarning(msg))
Usage: blazingsql-engine <RAL_ID> <GPU_ID> <ORCHESTRATOR_HTTP_COMMUNICATION_[IP|HOSTNAME]> <ORCHESTRATOR_HTTP_COMMUNICATION_PORT> <RAL_HTTP_COMMUNICATION_[IP|HOSTNAME]> <RAL_HTTP_COMMUNICATION_PORT> <RAL_TCP_PROTOCOL_PORT> <OPTIONAL_NETWORK_INTERFACE_NAME_ETH0_DEFAULT>
RAL Engine starting
Using the network interface: eth0
RAL ID: 1
GPU ID: 0
Orchestrator HTTP communication host: 127.0.0.1
Orchestrator HTTP communication port: 9100
RAL HTTP communication host: 172.28.0.2
RAL HTTP communication port: 9001
RAL protocol port: 8891
Socket Name: 172.28.0.2
Log Name: RAL.1.log
RAL TCP protocol port: 8891
java.net.SocketException: Connection reset
	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:126)
	at com.blazingdb.calcite.application.TCPClient.send(TCPClient.java:38)
	at com.blazingdb.calcite.application.TCPClient.send(TCPClient.java:55)
	at com.blazingdb.calcite.application.TCPService.synchronizeSchema(TCPService.java:63)
	at com.blazingdb.calcite.application.TCPService.<init>(TCPService.java:53)
	at com.blazingdb.calcite.application.CalciteApplication.main(CalciteApplication.java:204)
schema synchronization with Orchestrator failed
Waiting for messages in TCP port: 8890
```
Does not work
Shouldn't be here, bad fork
Merge pull request #8 from gumdropsteve/gumdropsteve-patch-1
Doing this in a separate cell works more logically in notebook.
More clear success output.
@gumdropsteve gumdropsteve changed the title [WIP] Upgrade Colab Env Check [REVIEW] Upgrade Colab Env Check Nov 14, 2019
@gumdropsteve
Copy link
Contributor Author

@roaramburu ready for review, thanks

  • p100/t4 env check
  • temp colab install

@gumdropsteve gumdropsteve changed the title [REVIEW] Upgrade Colab Env Check [REVIEW] Colab Env Check & Install Nov 15, 2019
@gumdropsteve gumdropsteve changed the title [REVIEW] Colab Env Check & Install [WIP] Colab Env Check & Install Nov 15, 2019
* Create blazingsql.sh

* Update blazingsql.sh
* Update bsql-colab.sh

* Update bsql-colab.sh

* Delete bsql-colab.sh
@gumdropsteve
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant