alexholmes / hdfs-file-slurper

Utility to easily copy files into HDFS
Apache License 2.0
69 stars 35 forks source link

Support for HDFS HA #11

Closed kawaa closed 9 years ago

kawaa commented 9 years ago

I have run into issues when using Slurper on a cluster with NameNode HA enabled.

The current approach tries to resolve the fragment of fs.defaultFS to the hostname (via InetAddress.getByName.getCanonicalHostName), but in case of NameNode HA, the current nameservice is set there that doesn't correspond to any hostname. In consequence, "java.net.UnknownHostException" is thrown.

alexholmes commented 9 years ago

Thanks Adam!