-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44969/
-----------------------------------------------------------

(Updated March 18, 2016, 5:18 p.m.)


Review request for Ambari, Jaimin Jetly and Sebastian Toader.


Changes
-------

Uploaded new patch 
Checked HBase authorization enable/disable on live cluster
added test


Bugs: AMBARI-15469
    https://issues.apache.org/jira/browse/AMBARI-15469


Repository: ambari


Description
-------

PROBLEM:After upgrading from Ambari 2.1.2 to 2.2.1, HDP from 2.3.0 to 2.3.4 , 
user is getting 'Consistency Check Failed' error while trying to save 
configuration in Ranger, Hive and HBase

Please find the attached screenshot, and ambari-server log for more information.

{code}
Error occured in stack advisor.
Error details: list.remove(x): x not in list
14 Mar 2016 14:31:26,241  INFO [qtp-ambari-client-23360] StackAdvisorRunner:71 
-     advisor script stderr: Traceback (most recent call last):
File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 158, in 
<module>
main(sys.argv)
File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 109, in 
main
result = stackAdvisor.recommendConfigurations(services, hosts)
File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", 
line 569, in recommendConfigurations
calculation(configurations, clusterSummary, services, hosts)
File 
"/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.3/services/stack_advisor.py",
 line 239, in recommendHBASEConfigurations
super(HDP23StackAdvisor, self).recommendHBASEConfigurations(configurations, 
clusterData, services, hosts)
File 
"/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.2/services/stack_advisor.py",
 line 665, in recommendHBASEConfigurations
hbaseCoProcessorConfigs['hbase.coprocessor.master.classes'].remove('org.apache.hadoop.hbase.security.access.AccessController')
ValueError: list.remove(x): x not in list
{code}

Looks like property 'hbase.coprocessor.master.classes' is empty. The workaround 
is by putting value org.apache.hadoop.hbase.security.access.AccessController 
there.


Diffs (updated)
-----

  ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py 
5e23b8a 
  ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py f09198f 

Diff: https://reviews.apache.org/r/44969/diff/


Testing
-------

mvn clean test


Thanks,

Dmitro Lisnichenko

Reply via email to