Hi all,

 

I want to retrieve the Rack ID of every datanode. How can I do this?

I tried using getNetworkLocation() in
org.apache.hadoop.hdfs.protocol.DatanodeInfo. I am getting /default-rack
as the output for all datanodes.

 

Any advice?

 

Thank in advance

Ramya

 

Reply via email to