Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 02-27-2015 03:09 PM - edited 09-16-2022 02:22 AM
I am writing a script that uses the following command:
hdfs haadmin getServiceState <serviceId>
What is the serviceId?
Thanks!
Created 03-04-2015 12:09 PM
Found it!
<serviceid> is one of the values defined for property
dfs.ha.namenodes.mycluster in hdfs-site.xml
Created 03-04-2015 12:09 PM
Found it!
<serviceid> is one of the values defined for property
dfs.ha.namenodes.mycluster in hdfs-site.xml
Created 03-16-2016 04:50 AM
Yes, you are correct
[root@host1 20376-hdfs-NAMENODE]# hdfs haadmin -getServiceState namenode1
standby
[root@host1 20376-hdfs-NAMENODE]# hdfs haadmin -getServiceState namenode2
active
[root@host2 20376-hdfs-NAMENODE]#