I know of a way but I do not know for sure if that is what you're looking for:
DFSClient.datanodeReport(DataNodeReportType.DEAD) should give you a list of all DEAD data nodes as per the NameNode. Although I believe the reports cost a lot, so do not do it often (rpcs the NN). On Tue, Feb 15, 2011 at 6:51 PM, Rita <rmorgan...@gmail.com> wrote: > Is there a programmatic way to determine if a datanode is down? > > > > -- > --- Get your facts first, then you can distort them as you please.-- > -- Harsh J www.harshj.com