Hi,

I use HDFS java API to do some process. I pass HDFS configuration file
(core-site.xml and hdfs-site.xml) as Configuration. My Hadoop property

fs.defaultFS

has the value

hdfs://ha-cluster

but when I get HDFS home directory like the following:

FileSystem.get(conf).getHomeDirectory();

It has the value

hdfs://ha-cluster/user/myUserName

!!!

What is the reason and how can I set correct home directory?

Reply via email to