Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Please see the Cloudera blog for information on the Cloudera Response to CVE-2021-4428

zeppelin restart on HDP 2.4 fails with below error!

Contributor

ERROR [2016-06-28 13:45:20,075] ({main} VFSNotebookRepo.java[list]:140) - Can't read note file:///usr/hdp/current/zeppelin-server/lib/notebook/screenshots java.io.IOException: file:///usr/hdp/current/zeppelin-server/lib/notebook/screenshots/note.json not found

18 REPLIES 18

@Srikaran Jangidi

Can you check this path exists?

/usr/hdp/current/zeppelin-server/lib/notebook/screenshots/note.json

can you please share the more logs before and after this error?

It may be related to this issue. https://github.com/hortonworks-gallery/zeppelin-notebooks/pull/19/commits/027f4ad29f71289121949eedd0...

Contributor

@Jitendra Yadav Yes I took care of this. There were 2 issues 1 is this and the other one is screenshots note.json missing.

if your Zeppelin restart tasks log showing pid file issue on ambari UI then take a look on this post that might help.

http://stackoverflow.com/questions/37652078/ambari-shows-zeppelin-server-not-started-but-the-server-...

Contributor

@Jitendra Yadav I checked and its not related to pid file issue. What surprises me is when I go to original version of Zeppelin configs which came up during installation it always starts good. After that If I am doing any change in the zeppelin config via ambari and do a restart then this issue is coming up.

Contributor

Follow the instructions here to update your notebook.

https://github.com/hortonworks-gallery/zeppelin-notebooks

Contributor
@Rahul Pathak

This seems to clear most of the issues except this one.

Can't read note file:///usr/hdp/current/zeppelin-server/lib/notebook/screenshots java.io.IOException: file:///usr/hdp/current/zeppelin-server/lib/notebook/screenshots/note.json not found

For some reasons I don't see note.json in the screenshots folder. Even If I remove the entire screenshots folder Ambari Zeppelin restart by default is looking for Screenshots. But with screenshots I dont see corresponding note.json. Can I have an empty note.json and give it a try? I dont think that will work? If you have a sample note.json which I can use for this screenshots I think that will work. Please let me know.

Contributor

I copied note.json to screen shots and the error is gone. However Zeppelin restart still fails. I see below from the Ambari logs.

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.4/services/ZEPPELIN/package/scripts/master.py", line 235, in <module>
    Master().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 535, in restart
    self.start(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.4/services/ZEPPELIN/package/scripts/master.py", line 179, in start
    self.update_zeppelin_interpreter()
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.4/services/ZEPPELIN/package/scripts/master.py", line 196, in update_zeppelin_interpreter
    data = json.load(urllib2.urlopen(zeppelin_int_url))
  File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 1244, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno -2] Name or service not known>