Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Adding another Namenode to HDP HA Cluster

Adding another Namenode to HDP HA Cluster

New Contributor

I have HDP3 High Availability enabled on the cluster. I have tested it and everything seems to be fine.

 
 

Now, I have to add another namenode, which makes this setup from NN1, NN2 to NN1, NN2, NN3. If we look at the steps that are needed from Apache documentation as :

  1. https://hadoop.apache.org/docs/r3.0.3/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.ht... 

or from:

  1.  https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.0/fault-tolerance/content/configuring_the_nameno...
  2. https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.0/fault-tolerance/content/deploying_namenode_ha_... and particularly followed, Step 7 for new namenode

I change configurations as

 

dfs.ha.namenodes.mycluster  -> nn1,nn2,nn3

dfs.namenode.http-address.mycluster.nn3 --> vmhdpmaster003:50070
dfs.namenode.https-address.mycluster.nn3 --> vmhdpmaster003:50470
dfs.namenode.rpc-address.mycluster.nn3 --> vmhdpmaster003:8020
dfs.namenode.shared.edits.dir  qjournal://vmhdpmaster003:8485;vmhdpmaster001:8485;vmhdpmaster002:8485/mycluster
 
After applying the changes., I don't see nn3 added as another namenode.
 
So then I tried, 
 
su -l hdfs -c "hdfs namenode -bootstrapStandby -force"

I am getting an error like nn/vmhdpmaster003@REALM.com is able to get ticket, because there is no keytab file at /etc/security/keytabs. My cluster is configured with AD integration.

 

Please help me how to create this missing keytab. Why ambari does not create a keytab itself? Is there a way to generate keytabs for service accounts via curl for ambari?

Don't have an account?
Coming from Hortonworks? Activate your account here