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

hadoop.fs.test_webhdfs.WebhdfsTests failed with socket.error : Connection refused

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 3.6.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Description

      When i run hue hadoop specific test from the tarball https://dl.dropboxusercontent.com/u/730827/hue/releases/3.6.0/hue-3.6.0.tgz

      i catched the following error :

      #sudo build/env/bin/hue test specific hadoop

      ======================================================================
      ERROR: test_webhdfs_functions (hadoop.fs.test_webhdfs.WebhdfsTests)
      Tests advanced file system operations.
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "/home/pascal/hue-3.6.0/desktop/libs/hadoop/src/hadoop/fs/test_webhdfs.py", line 76, in test_webhdfs_functions
      fs.create_home_dir("/user/test")
      File "/home/pascal/hue-3.6.0/desktop/libs/hadoop/src/hadoop/fs/hadoopfs.py", line 241, in create_home_dir
      if not self.exists(home_path):
      File "/home/pascal/hue-3.6.0/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py", line 211, in exists
      return self._stats(path) is not None
      File "/home/pascal/hue-3.6.0/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py", line 199, in _stats
      raise ex
      WebHdfsException: HTTPConnectionPool(host='dorado-vm3', port=47511): Max retries exceeded with url: /webhdfs/v1/user/test?op=GETFILESTATUS&user.name=hue&doas=root (Caused by <class 'socket.error'>: [Errno 111] Connection refused)
      -------------------- >> begin captured logging << --------------------
      requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (41): dorado-vm3
      --------------------- >> end captured logging << ---------------------

      ----------------------------------------------------------------------
      Ran 33 tests in 1.639s

      FAILED (SKIP=1, errors=19)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              poliva OLIVA
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: