Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-16772

Zeppelin restart with Ambari fails - according to Ambari

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • None
    • None
    • centos

    Description

      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.

      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
      

      Attachments

        1. AMBARI-16772-trunk-v1.patch
          4 kB
          Renjith Kamath

        Issue Links

          Activity

            People

              rkamath Renjith Kamath
              rkamath Renjith Kamath
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: