You might want to look at Apache Ambari - it's got a pretty comprehensive set of APIs of the kind you seek.
On Jun 6, 2013, at 5:51 AM, Brian Mason wrote:
> I am looking for a way to access a list of Nodes, Compute, Data etc .. My application is not running on the name node. It is remote. The 2.0 Yarn API look like they may be useful, but I am not on 2.0 and cannot move to 2,0 anytime soon.
> DFSClient.java looks useful, but its not in the API docs so I am not sure how to use it or even if I should.
> Any pointers would be helpful.
Arun C. Murthy