Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set XML file location in configure file #21

Open
zong0jie opened this issue Jan 18, 2016 · 2 comments
Open

Set XML file location in configure file #21

zong0jie opened this issue Jan 18, 2016 · 2 comments
Labels

Comments

@zong0jie
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants