Yes, There is Cluster Nodes API. http://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html#Cluster_Nodes_API
Best, Ravi On Oct 8, 2014, at 8:15 AM, gortiz <[email protected]> wrote: > I would like to know the number of nodes my cluster has. Is it possible in > YARN and MapReduce from Java? > > I suppose that you have installed a TaskTracker in any node. > AVISO CONFIDENCIAL\nEste correo y la información contenida o adjunta al mismo > es privada y confidencial y va dirigida exclusivamente a su destinatario. > Pragsis informa a quien pueda haber recibido este correo por error que > contiene información confidencial cuyo uso, copia, reproducción o > distribución está expresamente prohibida. Si no es Vd. el destinatario del > mismo y recibe este correo por error, le rogamos lo ponga en conocimiento del > emisor y proceda a su eliminación sin copiarlo, imprimirlo o utilizarlo de > ningún modo.\nCONFIDENTIALITY WARNING.\nThis message and the information > contained in or attached to it are private and confidential and intended > exclusively for the addressee. Pragsis informs to whom it may receive it in > error that it contains privileged information and its use, copy, reproduction > or distribution is prohibited. If you are not an intended recipient of this > E-mail, please notify the sender, delete it and do not read, act upon, print, > disclose, copy, reta > in or redistribute any portion of this E-mail.
