HADOOP-15772. Remove the 'Path ... should be specified as a URI' warnings on 
startup. Contributed by Ayush Saxena.

(cherry picked from commit 2eb597b1511f8f46866abe4eeec820f4191cc295)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/0dd68611
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/0dd68611
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/0dd68611

Branch: refs/heads/branch-2
Commit: 0dd686114f1d0931267179c9d9424877e740c43c
Parents: 3e476dc
Author: Arpit Agarwal <[email protected]>
Authored: Wed Sep 19 13:48:27 2018 -0700
Committer: Arpit Agarwal <[email protected]>
Committed: Wed Sep 19 13:49:16 2018 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hdfs/server/common/Util.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/0dd68611/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Util.java
----------------------------------------------------------------------
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Util.java
 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Util.java
index 0cfab54..ad5d52c 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Util.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Util.java
@@ -54,8 +54,7 @@ public final class Util {
 
     // if URI is null or scheme is undefined, then assume it's file://
     if(u == null || u.getScheme() == null){
-      LOG.warn("Path " + s + " should be specified as a URI "
-          + "in configuration files. Please update hdfs configuration.");
+      LOG.info("Assuming 'file' scheme for path " + s + " in configuration.");
       u = fileAsURI(new File(s));
     }
     return u;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to