Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # user >> How to get number of data nodes as a hadoop client


Copy link to this message
-
RE: How to get number of data nodes as a hadoop client
Never mind, its in the ApplicationClientProtocol class.
John
From: John Lilley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2013 6:12 PM
To: [EMAIL PROTECTED]
Subject: How to get number of data nodes as a hadoop client

How does a Hadoop client query the number of datanodes in a Hadoop cluster?  I see getClusterNodes() in the RM protocol, but I'm having a hard time mapping that to a public class/interface that a client would use.
Looking at it more carefully, I'd really like query the nodes in a specific queue or the "default queue", if there is such a thing.
Thanks
john

NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB