- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How do I find the serviceId of a name node to use "hdfs haadmin getServiceState <serviceId>" ?
- Labels:
-
HDFS
Created on ‎02-27-2015 03:09 PM - edited ‎09-16-2022 02:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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]#
