damiencarol / jsr203-hadoop

A Java NIO file system provider for HDFS
https://github.com/damiencarol/jsr203-hadoop
Apache License 2.0
56 stars 37 forks source link

Set XML file location in configure file #21

Open zong0jie opened 8 years ago

zong0jie commented 8 years ago

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.

zong0jie commented 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.

damiencarol commented 8 years ago

@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).