-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37219/
-----------------------------------------------------------
Review request for Ambari and Dmytro Sen.
Bugs: AMBARI-12674
https://issues.apache.org/jira/browse/AMBARI-12674
Repository: ambari
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)
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
e49a2f3
Diff: https://reviews.apache.org/r/37219/diff/
Testing
-------
mvn clean test
Thanks,
Andrew Onischuk