Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to detect admin Node

avatar
Expert Contributor

Folks

On a typical Hadoop cluster, How to find out the admin node. Through Ambari, I am able to find Name, Data nodes.

Is there any command or specific service I should be looking for ?

Thanks

Kumar

1 ACCEPTED SOLUTION

avatar
Expert Contributor

Hi @Kumar Veerappan,

You can find namenode via command line using :

dfsadmin -report

or

<code>hadoop getconf -namenodes ( you can use this to get secondary namenode/backup node etc)

From ambari, you can go to services page, get to the service whose admin you want and click on the component link to find the component host. For eg, to find the namenode go to HDFS service page and click on the link for namenode :

6401-screen-shot-2016-08-05-at-113554-am.png

Else, move to the hosts page and search for the component :

screen-shot-2016-08-05-at-114146-am.png

Based on the version you are using, the filter page may vary. But every version has a filter for component type which will give you host name.

Hope this helps!

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

@Kumar Veerappan

On the Ambari Web UI, click on the "Hosts" tab nd you will find a filter under the Components column using which you can choose what ever component/components you want. You can also filter for the admin host components

Thanks

Hari

avatar
Expert Contributor

Hi @Kumar Veerappan,

You can find namenode via command line using :

dfsadmin -report

or

<code>hadoop getconf -namenodes ( you can use this to get secondary namenode/backup node etc)

From ambari, you can go to services page, get to the service whose admin you want and click on the component link to find the component host. For eg, to find the namenode go to HDFS service page and click on the link for namenode :

6401-screen-shot-2016-08-05-at-113554-am.png

Else, move to the hosts page and search for the component :

screen-shot-2016-08-05-at-114146-am.png

Based on the version you are using, the filter page may vary. But every version has a filter for component type which will give you host name.

Hope this helps!