Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-698

Shell app does not work with a secured cluster

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta
    • Fix Version/s: 2.0.1
    • Component/s: None
    • Labels:
      None

      Description

      Hue is not getting the delegation token correctly:

      shellmanager DEBUG    bcwalrus - shell_id:0 - Creating pig shell with command '['/usr/bin/pig', '-l', '/dev/null']'
      [19/Apr/2012 22:33:55 +0000] shellmanager DEBUG    Clusters to potentially acquire tokens for: [<hadoop.job_tracker.LiveJobTracker object at 0x31d0dd0>, <hadoop.fs.webhdfs.WebHdfs object at 0x31d0cd0>]
      [19/Apr/2012 22:33:55 +0000] middleware   INFO     Processing exception: get_delegation_token() takes exactly 2 arguments (1 given): Traceback (most recent call last):
        File "/opt/ws/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 "/opt/ws/hue/apps/shell/src/shell/views.py", line 58, in create
          result = shell_manager.try_create(user, key_name)
        File "/opt/ws/hue/apps/shell/src/shell/shellmanager.py", line 524, in try_create
          shell_instance = Shell(command, subprocess_env, shell_id, username, self._delegation_token_dir)
        File "/opt/ws/hue/apps/shell/src/shell/shellmanager.py", line 86, in __init__
          delegation_token_files = self._get_delegation_tokens(username, delegation_token_dir)
        File "/opt/ws/hue/apps/shell/src/shell/shellmanager.py", line 164, in _get_delegation_tokens
          token = cluster.get_delegation_token()
      TypeError: get_delegation_token() takes exactly 2 arguments (1 given)
      

        Attachments

          Activity

            People

            • Assignee:
              romain Romain Rigaux
              Reporter:
              bcwalrus bc Wong
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: