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

[hadoop] Protect against non defined server_exc attribute in WebHdfsException

    Details

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

      Description

      Problem: when first time login with dt_login, an exception occurs and prevents user from proceeding.
      To reproduce: set up Hue with hue.ini such that webhdfs_url is localhost:port/webhdfs/v1 instead of hostname:port/webhdfs/v1 .
      This will get an ('Connection aborted.', error(111, 'Connection refused')) error when trying to connect to webhdfs. During first time login, the ensure_home_directory function is called and the attached error occur.

      Patch attached.

        Attachments

          Activity

            People

            • Assignee:
              yixiao yixiao lin
              Reporter:
              yixiao yixiao lin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: