-
Notifications
You must be signed in to change notification settings - Fork 12
I successfully connect to my cluster on jupyter lab, but I run some test code, the notebook has no response #33
Comments
@nelsontseng0704 It looks like something with your environment variables is different than expected.
Example of a successful session:
$ dj westeu -k -e VAR1=1 VAR2=2
Valid version of conda detected: 4.10.1
* Getting host and token from .databrickscfg
* Select remote cluster
? Which cluster to connect to? 0: 'tiny-8.1' (id: 0726-093206-cams456, state: RUNNING, workers: 1)
=> Selected cluster: tiny-8.1 (20.103.251.219:2200)
* Configuring ssh config for remote cluster
=> ~/.ssh/config will be changed
=> A backup of the current ~/.ssh/config has been created
=> at ~/.databrickslabs_jupyterlab/ssh_config_backup/config.2021-09-02_21-32-13
=> Jupyterlab Integration made the following changes to /Users/bernhard/.ssh/config:
Host ...
...
=> Known hosts fingerprint added for 20.xxx.xxx.xxx:2200
=> Testing whether cluster can be reached
=> OK
* Installing driver libraries
=> Installing ipywidgets==7.6.4 ipykernel==5.5.5 databrickslabs-jupyterlab==2.2.1 pygments>=2.4.1
=> OK
* Creating remote kernel spec
args.extra_env None
=> Creating kernel specification for profile 'westeu'
=> Kernel specification 'SSH 0123-45678-cams456 westeu:tiny-8.1 (dj/Spark)' created or updated
=> OK
* Setting global config of jupyter lab (autorestart, timeout)
=> OK You should then see something like
There is no need to call |
Thanks for the reply. The command I use is dj nelson -k, not dj nelson -k -e |
Even I try dj rsa -l, still encounter same ValueError: dictionary update sequence element #4 has length 3; 2 is required error.
|
Could you maybe add into the file "/Users/nelsontseng/opt/anaconda3/envs/dj2/lib/python3.8/site-packages/databrickslabs_jupyterlab/kernel.py" before line 37 a logging command so thatv it looks like this: self._logger.info("ENV: %s", env)
self.dbjl_env = dict([e.split("=") for e in env[0].split(" ")]) and run |
Thanks for your kindly help again. The bellowed image is screen shot of "/Users/nelsontseng/opt/anaconda3/envs/dj2/lib/python3.8/site-packages/databrickslabs_jupyterlab/kernel.py" Here is message after I input
|
OK, I think this is the issue: I guess, you have something like
in your The Could you please try:
|
Problem Solved! Thx!! |
Hi DataBricks team,
I successfully connect to my cluster on jupyter lab, I try do run some test codes but has no response. And I am sure I can ssh to my cluster. How do I fix this??
The text was updated successfully, but these errors were encountered: