From ffef819ee8953720f5580f5c9d45d21081869c3d Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Wed, 19 Sep 2018 13:48:27 -0700 Subject: [PATCH] HADOOP-15772. Remove the 'Path ... should be specified as a URI' warnings on startup. Contributed by Ayush Saxena. (cherry picked from commit 2eb597b1511f8f46866abe4eeec820f4191cc295) --- .../main/java/org/apache/hadoop/hdfs/server/common/Util.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 5dee16a9294..5441839f317 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 @@ -96,8 +96,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;