Member since
08-10-2016
1
Post
0
Kudos Received
0
Solutions
08-10-2016
04:37 PM
I followed the cloudera installation page for anaconda and jupyter and I had the same problem. This worked for an interactive session. Now I would like to add this to systemd and run this as a service. cat jupyter-notebook.service [Unit] Description=Jupyter notebook [Service] Type=simple PIDFile=/var/run/jupyter-notebook.pid ExecStartPre=export PATH=/opt/cloudera/parcels/Anaconda-4.0.0/bin:$PATH ExecStart=/opt/cloudera/parcels/Anaconda/bin/jupyter User=jptrnb Group=jptrnb WorkingDirectory=/home/jptrnb/notebooks [Install] WantedBy=multi-user.target Here is the status after a start attempt systemctl status jupyter-notebook -l ● jupyter-notebook.service - Jupyter notebook Loaded: loaded (/usr/lib/systemd/system/jupyter-notebook.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2016-08-10 16:31:37 PDT; 2s ago Process: 47560 ExecStart=/opt/cloudera/parcels/Anaconda/bin/jupyter (code=exited, status=1/FAILURE) Main PID: 47560 (code=exited, status=1/FAILURE) Aug 10 16:31:37 socbdmn01 systemd[1]: Started Jupyter notebook. Aug 10 16:31:37 socbdmn01 systemd[1]: Starting Jupyter notebook... Aug 10 16:31:37 socbdmn01 python[47560]: detected unhandled Python exception in '/opt/cloudera/parcels/Anaconda/bin/jupyter' Aug 10 16:31:37 socbdmn01 jupyter[47560]: Traceback (most recent call last): Aug 10 16:31:37 socbdmn01 jupyter[47560]: File "/opt/cloudera/parcels/Anaconda/bin/jupyter", line 4, in <module> Aug 10 16:31:37 socbdmn01 jupyter[47560]: from jupyter_core.command import main Aug 10 16:31:37 socbdmn01 jupyter[47560]: ImportError: No module named jupyter_core.command Aug 10 16:31:37 socbdmn01 systemd[1]: jupyter-notebook.service: main process exited, code=exited, status=1/FAILURE Aug 10 16:31:37 socbdmn01 systemd[1]: Unit jupyter-notebook.service entered failed state. Aug 10 16:31:37 socbdmn01 systemd[1]: jupyter-notebook.service failed.
... View more