You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2015/08/07 16:02:45 UTC

[jira] [Created] (AMBARI-12674) ranger-hbase-plugin-enabled missing from Hbase config after upgrade from 2.0.1 to 2.1.0

Andrew Onischuk created AMBARI-12674:
----------------------------------------

             Summary: ranger-hbase-plugin-enabled missing from Hbase config after upgrade from 2.0.1 to 2.1.0
                 Key: AMBARI-12674
                 URL: https://issues.apache.org/jira/browse/AMBARI-12674
             Project: Ambari
          Issue Type: Bug
            Reporter: Andrew Onischuk
            Assignee: Andrew Onischuk
             Fix For: 2.1.1


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)





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)