Hi Debraj,
There is a command in haadmin -getAllServiceState, You can use that.
Can read this for details :
https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html#haadmin
In the namenode UI also you can see the state of the namenode.

-Ayush


On Sat, 2 May 2020 at 12:32, Debraj Manna <[email protected]> wrote:

> Hi
>
> Can someone let me know how can I identify which is an active namenode?
>
> Thanks,
>
>

Reply via email to