Support Questions

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

secondary name node wizard option

avatar
Contributor

I am unable to see ha configuration wizard in hdfs service actions. this is a running cluster with a single name node, i mean initially i was not able to add a secondary name node

10504-snn-wizard-option.png

can someone pls assist here

1 ACCEPTED SOLUTION

avatar

UI seems to use existence of Secondary NameNode to determine if HA is enabled or not. A quick option would be to add SNN manually using curl again.

curl -u admin:admin -H "X-Requested-By: ambari" -X POST http://localhost:8080/api/v1/clusters/c1/services/HDFS/components/SECONDARY_NAMENODE

curl -u admin:admin -H "X-Requested-By: ambari" -X POST http://localhost:8080/api/v1/clusters/c1/hosts/c6401.ambari.apache.org/host_components/SECONDARY_NAM...

Install it - curl -u admin:admin -H "X-Requested-By: ambari" -X PUT -d'{"RequestInfo":{"context":"Install SNN","operation_level":{"level":"HOST_COMPONENT","cluster_name":"c1","host_name":"c6401.ambari.apache.org","service_name":"HDFS"}},"Body":{"HostRoles":{"state":"INSTALLED"}}}' http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/hosts/c6401.ambari.apache.org/host_components...

You should be able to see the option to enable NN HA.

View solution in original post

7 REPLIES 7

avatar
Master Mentor

Mahen Jay

You need at least two NameNodes in order to achieve the NameNode HA. In the screenshot i see that you have only one NameNode.

As you mentioned that you were not able to add the Secondary Name Node earlier. Can you please share what issue you were facing while adding Secondary NameNode earlier?

avatar
Contributor

I had only 3 machines with me, so I configured 1 as name node, and later added 2 more data nodes. Now I am trying to configure a new node as secondary name node. Is it not possible in a running configuration that I add a node and configure it to be a secondary name node?

avatar

Likely, HA wizard is not showing because SecondaryNameNode is missing. How did it get deleted? Was the cluster deployed using blueprint or UI?

avatar
Contributor

I deployed it manually, not a blue print. I didnt feel the need for a secondary namenode service to run on the same node, so deleted the option using "CURL" commands

avatar
Contributor

any quick help to reconfigure?

avatar

UI seems to use existence of Secondary NameNode to determine if HA is enabled or not. A quick option would be to add SNN manually using curl again.

curl -u admin:admin -H "X-Requested-By: ambari" -X POST http://localhost:8080/api/v1/clusters/c1/services/HDFS/components/SECONDARY_NAMENODE

curl -u admin:admin -H "X-Requested-By: ambari" -X POST http://localhost:8080/api/v1/clusters/c1/hosts/c6401.ambari.apache.org/host_components/SECONDARY_NAM...

Install it - curl -u admin:admin -H "X-Requested-By: ambari" -X PUT -d'{"RequestInfo":{"context":"Install SNN","operation_level":{"level":"HOST_COMPONENT","cluster_name":"c1","host_name":"c6401.ambari.apache.org","service_name":"HDFS"}},"Body":{"HostRoles":{"state":"INSTALLED"}}}' http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/hosts/c6401.ambari.apache.org/host_components...

You should be able to see the option to enable NN HA.

avatar
Contributor

Thank you now the option of enabling HA is seen in 'service options'

It could have been simpler if this kind of curl options are provided in GUI with a pasword proected and role based access control. I do understand the sensitivity behind this.

thanks again.