Support Questions
Find answers, ask questions, and share your expertise

Trying to install jupyter in HDP2.5

New Contributor

I am trying to install jupyter in my hdp cluster (cluster was created using cloudbreak) but getting an error when try to start it - I followed the instructions on this link https://community.hortonworks.com/articles/39128/tutorial-installconfigure-ipython-and-createrun-py.... but unfortunatelly

[cloudbreak@bra-m1 ~]$ jupyter notebook Traceback (most recent call last): File "/usr/bin/jupyter-notebook", line 7, in <module> from notebook.notebookapp import main File "/usr/lib/python2.7/site-packages/notebook/__init__.py", line 25, in <module> from .nbextensions import install_nbextension File "/usr/lib/python2.7/site-packages/notebook/nbextensions.py", line 572, in <module> from .extensions import ( File "/usr/lib/python2.7/site-packages/notebook/extensions.py", line 8, in <module> from tornado.log import LogFormatter File "/usr/lib64/python2.7/site-packages/tornado/log.py", line 37, in <module> from tornado.escape import _unicode File "/usr/lib64/python2.7/site-packages/tornado/escape.py", line 27, in <module> from tornado.util import unicode_type, basestring_type, u ImportError: cannot import name u

[cloudbreak@bra-m10 ~]$ ./start_ipython_notebook.sh [TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions. [TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future Traceback (most recent call last): File "/home/cloudbreak/anaconda2/bin/ipython", line 6, in <module> sys.exit(IPython.start_ipython()) File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/IPython/__init__.py", line 119, in start_ipython return launch_new_instance(argv=argv, **kwargs) File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 657, in launch_instance app.initialize(argv) File "<decorator-gen-109>", line 2, in initialize File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 300, in initialize super(TerminalIPythonApp, self).initialize(argv) File "<decorator-gen-7>", line 2, in initialize File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/IPython/core/application.py", line 446, in initialize self.parse_command_line(argv) File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 295, in parse_command_line return super(TerminalIPythonApp, self).parse_command_line(argv) File "<decorator-gen-4>", line 2, in parse_command_line File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 514, in parse_command_line return self.initialize_subcommand(subc, subargv) File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/IPython/core/application.py", line 236, in initialize_subcommand return super(BaseIPythonApplication, self).initialize_subcommand(subc, argv) File "<decorator-gen-3>", line 2, in initialize_subcommand File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 452, in initialize_subcommand self.subapp.initialize(argv) File "<decorator-gen-113>", line 2, in initialize File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/notebook/notebookapp.py", line 1142, in initialize self.init_webapp() File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/notebook/notebookapp.py", line 983, in init_webapp self.http_server.listen(port, self.ip) File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/tornado/tcpserver.py", line 126, in listen sockets = bind_sockets(port, address=address) File "/home/cloudbreak/anaconda2/lib/python2.7/site-packages/tornado/netutil.py", line 194, in bind_sockets sock.bind(sockaddr) File "/home/cloudbreak/anaconda2/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 99] Cannot assign requested address [cloudbreak@bra-m10 ~]$

1 REPLY 1

Expert Contributor

@Eder alves

As I see in the examples the installation user is root but on your machine this is cloudbreak it could be a problem. Also please check the python version.

That article using sandbox environment maybe that is different int he configuration than a cloudbreak installed cluster.

Br,

R

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.