From 0dd686114f1d0931267179c9d9424877e740c43c 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 0cfab548fa5..ad5d52cf8a5 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;