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]#