You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Renjith Kamath (JIRA)" <ji...@apache.org> on 2016/05/19 13:39:12 UTC

[jira] [Created] (AMBARI-16772) Zeppelin restart with Ambari fails - according to Ambari

Renjith Kamath created AMBARI-16772:
---------------------------------------

             Summary: Zeppelin restart with Ambari fails - according to Ambari
                 Key: AMBARI-16772
                 URL: https://issues.apache.org/jira/browse/AMBARI-16772
             Project: Ambari
          Issue Type: Bug
    Affects Versions: ambari-2.4.0
         Environment: centos
            Reporter: Renjith Kamath
             Fix For: ambari-2.4.0


Configure Zeppelin to authenticate users.
Log in to Zeppelin as a user (let's say user1)
Re-start Zeppelin with Ambai, note Ambari reports Zeppelin fails to restart. However Zeppelin is restarted fine.
Note 401 in the log of the error below. I suspect it is because with authentication enabled Ambari isn't able to contact zeppelin.

{code: title=stderr: /var/lib/ambari-agent/data/errors-249.txt}
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.6/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib64/python2.6/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/usr/lib64/python2.6/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python2.6/urllib2.py", line 435, in error
    return self._call_chain(*args)
  File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.6/urllib2.py", line 518, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 401: Unauthorized
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)