- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
secondary name node wizard option
- Labels:
-
Apache Hadoop
Created on 12-19-2016 02:44 PM - edited 08-18-2019 04:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
can someone pls assist here
Created 12-20-2016 02:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 12-19-2016 02:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Created 12-19-2016 03:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Created 12-19-2016 03:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Likely, HA wizard is not showing because SecondaryNameNode is missing. How did it get deleted? Was the cluster deployed using blueprint or UI?
Created 12-19-2016 03:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 12-19-2016 03:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
any quick help to reconfigure?
Created 12-20-2016 02:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 12-20-2016 06:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
