Open zong0jie opened 8 years ago
If you think it useful, I can do this work. One thing I'm not sure is we may add a configure file, it may a little boring.
@zong0jie interresting proposal. I think the normal way is to provide the "hdfs-site.xml" and "core-site.xml" in classpath. In this way, jsr203-hadoop will load it automagicaly (already the case).
When we setup hadoop hdfs, we always neet to setup "hdfs-site.xml" and "core-site.xml". So I think we can set the location xml file in a configure file, and read the files automatically. In that case, one can manipulate via uri "hdfs:/mypath/file.txt" instead of "hdfs://cluster1:8443/mypath/file.txt". It may useful for the HA user, because HA will have two namenode and will not sure which site is active.