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

Incorrect formated external url in ranger configuration - causes Namenode startup failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.4.0
    • ambari-server
    • None

    Description

      STR:
      1. install ambari and HDP with HDFS,YARN,HIVE
      2. install ranger and configure External URL https://c6401.ambari.apache.org:6182/ ( means slash at the end of the URL which is allowed without any problem and installation is done successfully)
      3. enable ranger plugin in hdfs config and restart it

      Result: NN startup fails and even after failure , error message in stack trace is confusing

      ERROR:
      ======
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/ranger_functions.py", line 108, in create_ranger_repository
      raise Fail('Ambari admin username and password are blank ')
      resource_management.core.exceptions.Fail: Ambari admin username and password are blank

      but actual reason is a slash at the end of the External URL,

      it fails the following point in usr/lib/python2.6/site-packages/resource_management/libraries/functions/ranger_functions.py:

      result = urllib2.urlopen(request)

      Attachments

        1. AMBARI-17118.patch
          22 kB
          Mugdha Varadkar
        2. AMBARI-17118.1.patch
          24 kB
          Mugdha Varadkar
        3. AMBARI-17118.2.patch
          29 kB
          Mugdha Varadkar

        Activity

          People

            mugdha.varadkar Mugdha Varadkar
            mugdha.varadkar Mugdha Varadkar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: