Re: Use HAAdmin API

2017-10-24 Thread Mihir Monani
If you want to do failover of NameNode (or even kill NameNode process) doing shell operation (like ./hdfs haadmin -getServiceState nn) is mandatory from program. For DataNode there is one function in DFSClient#datanodeReport which provides list of LIVE Datanode. To avoid shell operations of hdfs

Re: Use HAAdmin API

2017-10-19 Thread Arpit Agarwal
Mihir, HAAdmin is a private interface. Most of its functionality is exposed via the ‘hdfs haadmin’ command [1]. Will that work for you? 1. https://hadoop.apache.org/docs/r2.7.0/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html#haadmin On 10/17/17, 4:28 AM, "Mihir Monani" wrote: I want