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

Namenode unittests are broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.1
    • None
    • None

    Description

      ERROR: test_stop_default (test_snamenode.TestSNamenode)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "/root/ambari/ambari-server/src/test/python/stacks/1.3.2/HDFS/test_snamenode.py", line 60, in test_stop_default
      config_file="default.json"
      File "/root/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 92, in executeScript
      method(RMFTestCase.env)
      File "/root/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/stacks/HDP/1.3.2/services/HDFS/package/scripts/snamenode.py", line 42, in stop
      import params
      File "/root/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/params.py", line 113, in <module>
      dfs_domain_socket_dir = os.path.dirname(dfs_domain_socket_path)
      File "/usr/lib64/python2.6/posixpath.py", line 119, in dirname
      i = p.rfind('/') + 1
      File "/root/ambari/ambari-agent/src/main/python/resource_management/libraries/script/config_dictionary.py", line 75, in _getattr_
      raise Fail("Configuration parameter '"self.name"' was not found in configurations dictionary!")
      Fail: Configuration parameter 'dfs.domain.socket.path' was not found in configurations dictionary!

      ERROR: test_stop_secured (test_snamenode.TestSNamenode)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "/root/ambari/ambari-server/src/test/python/stacks/1.3.2/HDFS/test_snamenode.py", line 112, in test_stop_secured
      config_file="secured.json"
      File "/root/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 92, in executeScript
      method(RMFTestCase.env)
      File "/root/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/stacks/HDP/1.3.2/services/HDFS/package/scripts/snamenode.py", line 42, in stop
      import params
      File "/root/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/params.py", line 113, in <module>
      dfs_domain_socket_dir = os.path.dirname(dfs_domain_socket_path)
      File "/usr/lib64/python2.6/posixpath.py", line 119, in dirname
      i = p.rfind('/') + 1
      File "/root/ambari/ambari-agent/src/main/python/resource_management/libraries/script/config_dictionary.py", line 75, in _getattr_
      raise Fail("Configuration parameter '"self.name"' was not found in configurations dictionary!")
      Fail: Configuration parameter 'dfs.domain.socket.path' was not found in configurations dictionary!

      Attachments

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: