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

Review request for Ambari and Myroslav Papirkovskyy.


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


Repository: ambari


Description
-------

We should get rid of using jmx for determining active namenode and use hdfs 
command for this
[root@c6401 ~]# sudo -u hdfs hdfs haadmin -getServiceState nn1
active
[root@c6401 ~]# sudo -u hdfs hdfs haadmin -getServiceState nn2
standby
[root@c6401 ~]#


Diffs
-----

  
ambari-common/src/main/python/resource_management/libraries/functions/namenode_ha_utils.py
 8267172 
  
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_ha_state.py
 0b9c940 

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


Testing
-------

----------------------------------------------------------------------
Ran 262 tests in 8.793s

OK
----------------------------------------------------------------------
Total run:807
Total errors:0
Total failures:0
OK


Thanks,

Dmytro Sen

Reply via email to