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

ranger-hbase-plugin-enabled missing from Hbase config after upgrade from 2.0.1 to 2.1.0

    XMLWordPrintableJSON

Details

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

    Description

      After upgrading Ambari 2.0.1 to Ambari 2.1.0 on a cluster where Hbase and
      Ranger are installed, the following error is encountered when restarting Hbase
      after the upgrade completes

      Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/hbase_regionserver.py", line 156, in <module>
      HbaseRegionServer().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
      method(env)
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 450, in restart
      self.stop(env)
      File "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/hbase_regionserver.py", line 92, in stop
      import params
      File "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/params.py", line 26, in <module>
      from params_linux import *
      File "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py", line 230, in <module>
      enable_ranger_hbase = (config['configurations']['ranger-hbase-plugin-properties']['ranger-hbase-plugin-enabled'].lower() == 'yes')
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py", line 81, in _getattr_
      raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!")
      resource_management.core.exceptions.Fail: Configuration parameter 'ranger-hbase-plugin-enabled' was not found in configurations dictionary!

      After manually adding `ranger-hbase-plugin-properties/ranger-hbase-plugin-
      enabled` = `no`, HBase will successfully restart

      *Steps to Reproduce*

      1. Install Ambari 2.0.1 with HDFS, Yarn/Mapreduce, Hbase, Zookeeper
      2. Add Ranger to cluster
      3. Upgrade to Ambari 2.1.0
      4. Restart HBase (as indicated by the UI)

      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: