Uploaded image for project: 'Hue'
  1. Hue
  2. HUE-1064

[core] JT plugin should support hadoop.rpc.protection set to anything other than "authentication"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: core.api
    • Labels:
      None

      Description

      When Hadoop is configured with the hadoop.rpc.protection level at integrity or privacy, then Hue is no longer able to access the JT thrift plugin. The following exception will be thrown on the Hue side:

      [25/Feb/2013 17:18:37 +0000] middleware   INFO     Processing exception: None: Traceback (most recent call last):
        File "/usr/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/handlers/base.py", line 100, in get_response
          response = callback(request, *callback_args, **callback_kwargs)
        File "/usr/share/hue/apps/jobbrowser/src/jobbrowser/views.py", line 102, in jobs
          jobs = get_matching_jobs(request, check_permission)
        File "/usr/share/hue/apps/jobbrowser/src/jobbrowser/views.py", line 494, in get_matching_jobs
          joblist = jobfunc[selection][0]().jobs
        File "/usr/share/hue/desktop/libs/hadoop/src/hadoop/job_tracker.py", line 322, in all_jobs
          joblist = self.client.getAllJobs(self.thread_local.request_context)
        File "/usr/share/hue/desktop/core/src/desktop/lib/thrift_util.py", line 285, in wrapper
          ret = res(*args, **kwargs)
        File "/usr/share/hue/desktop/core/src/desktop/lib/thrift_util.py", line 331, in wrapper
          ret = res(*args, **kwargs)
        File "/usr/share/hue/desktop/libs/hadoop/src/hadoop/../../gen-py/hadoop/api/jobtracker/Jobtracker.py", line 627, in getAllJobs
          return self.recv_getAllJobs()
        File "/usr/share/hue/desktop/libs/hadoop/src/hadoop/../../gen-py/hadoop/api/jobtracker/Jobtracker.py", line 638, in recv_getAllJobs
          (fname, mtype, rseqid) = self._iprot.readMessageBegin()
        File "/usr/share/hue/build/env/lib/python2.6/site-packages/Thrift-0.1-py2.6-linux-x86_64.egg/thrift/protocol/TBinaryProtocol.py", line 126, in readMessageBegin
          sz = self.readI32()
        File "/usr/share/hue/build/env/lib/python2.6/site-packages/Thrift-0.1-py2.6-linux-x86_64.egg/thrift/protocol/TBinaryProtocol.py", line 203, in readI32
          buff = self.trans.readAll(4)
        File "/usr/share/hue/build/env/lib/python2.6/site-packages/Thrift-0.1-py2.6-linux-x86_64.egg/thrift/transport/TTransport.py", line 58, in readAll
          chunk = self.read(sz-have)
        File "/usr/share/hue/desktop/core/src/desktop/lib/thrift_sasl.py", line 125, in read
          self._read_frame()
        File "/usr/share/hue/desktop/core/src/desktop/lib/thrift_sasl.py", line 129, in _read_frame
          header = self._trans.readAll(4)
        File "/usr/share/hue/build/env/lib/python2.6/site-packages/Thrift-0.1-py2.6-linux-x86_64.egg/thrift/transport/TTransport.py", line 58, in readAll
          chunk = self.read(sz-have)
        File "/usr/share/hue/build/env/lib/python2.6/site-packages/Thrift-0.1-py2.6-linux-x86_64.egg/thrift/transport/TSocket.py", line 94, in read
          raise TTransportException('TSocket read 0 bytes')
      TTransportException: None
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joey Joey Echeverria
                Reporter:
                joey Joey Echeverria
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: