GitHub user kaspersorensen opened a pull request:
https://github.com/apache/metamodel/pull/78
Read hadoop configuration files (core-site.xml and hdfs-site.xml) in
HdfsResource
Suggested fix for METAMODEL-219.
I did a few minor/additional changes too:
* Moved the HDFS outputstream and inputstream classes to separate files
(HdfsResource was getting too big IMO). The classes are defined as default
(non-public) scoped, so not visible outside the package.
* Changed the FileHelper to support Java 7 AutoCloseable instead of
distinguishing between Closeable, Connection, Statement, ResultSet etc.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kaspersorensen/metamodel
METAMODEL-219-hadoop-configuration-files
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/metamodel/pull/78.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #78
----
commit 14b63cdc262d40b0d6469de6cfc12103aa6239e3
Author: Kasper Sørensen <[email protected]>
Date: 2015-12-10T20:59:29Z
Moved HDFS resource stream classes to separate files.
commit 1e5dfe34d65cb9880a8ccd0e6adaa3a765640527
Author: Kasper Sørensen <[email protected]>
Date: 2015-12-10T21:06:09Z
Improved FileHelper.safeClose(...) method by using AutoCloseable
... which is now super-interface for Closeable, Connection, Statement,
ResultSet and more.
commit 7b5fb0c09c5dac7af3a2f2ff0e2aef8e0bbf2012
Author: Kasper Sørensen <[email protected]>
Date: 2015-12-10T21:24:39Z
METAMODEL-219: Added loading of core-site.xml and hdfs-site.xml
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---