You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by to...@apache.org on 2011/02/28 22:48:49 UTC
svn commit: r1075554 - in /hadoop/common/trunk: CHANGES.txt
src/java/org/apache/hadoop/util/GenericOptionsParser.java
Author: tomwhite
Date: Mon Feb 28 21:48:49 2011
New Revision: 1075554
URL: http://svn.apache.org/viewvc?rev=1075554&view=rev
Log:
HADOOP-7112. Issue a warning when GenericOptionsParser libjars are not on local filesystem.
Modified:
hadoop/common/trunk/CHANGES.txt
hadoop/common/trunk/src/java/org/apache/hadoop/util/GenericOptionsParser.java
Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1075554&r1=1075553&r2=1075554&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Mon Feb 28 21:48:49 2011
@@ -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
Modified: hadoop/common/trunk/src/java/org/apache/hadoop/util/GenericOptionsParser.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/util/GenericOptionsParser.java?rev=1075554&r1=1075553&r2=1075554&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/util/GenericOptionsParser.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/util/GenericOptionsParser.java Mon Feb 28 21:48:49 2011
@@ -342,6 +342,9 @@ public class GenericOptionsParser {
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]);