By the way, if the datanode host have mutiple IP address, which one the 
getBlockLocation function will return?
> On 11 Oct 2018, at 11:46 AM, ZongtianHou <zongtian...@icloud.com.INVALID> 
> wrote:
> 
> Hi, everyone:
>       I use libhdfs3 API to access the hdfs, the hostnames of data block 
> locations I get from namenode are not consistent, In my local host, it may be 
> “localhost", or name of the host, ip may be 127.0.0.1 or actual ip address of 
> the host, I wonder what is the principle, how can I get it in a same format.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
> For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to