HADOOP-7112. Issue a warning when GenericOptionsParser libjars are not on local filesystem.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1075554 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4d53649f49
commit
d97ab376d2
@ -60,6 +60,9 @@ Trunk (unreleased changes)
|
||||
HADOOP-7151. Document need for stable hashCode() in WritableComparable.
|
||||
(Dmitriy V. Ryaboy via todd)
|
||||
|
||||
HADOOP-7112. Issue a warning when GenericOptionsParser libjars are not on
|
||||
local filesystem. (tomwhite)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
@ -342,6 +342,9 @@ public static URL[] getLibJars(Configuration conf) throws IOException {
|
||||
Path tmp = new Path(file);
|
||||
if (tmp.getFileSystem(conf).equals(FileSystem.getLocal(conf))) {
|
||||
cp.add(FileSystem.getLocal(conf).pathToFile(tmp).toURI().toURL());
|
||||
} else {
|
||||
LOG.warn("The libjars file " + tmp + " is not on the local " +
|
||||
"filesystem. Ignoring.");
|
||||
}
|
||||
}
|
||||
return cp.toArray(new URL[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user