hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andras POTOCZKY <and...@bsdaemon.hu>
Subject Re: API to find current active namenode.
Date Mon, 08 Dec 2014 21:18:18 GMT
hi

# sudo -u hdfs hdfs haadmin -getServiceState nn1
active
# sudo -u hdfs hdfs haadmin -getServiceState nn2
standby

Where nn1 and nn2 are the dfs.ha.namenodes.mycluster property values.

This is what you need?

Andras


On 2014.12.08. 21:12, Magnus Runesson wrote:
> I develop an application that will access HDFS. Is there a single API 
> to get current active namenode?
>
> I want it be independent of if my cluster has HA NameNode deployed or 
> a single NameNode. The typical Hadoop-client configuration files will 
> be installed on the host.
>
> /Magnus


Mime
View raw message