From 2eb597b1511f8f46866abe4eeec820f4191cc295 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. --- .../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 4e30e50414..e9f9bfb830 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 @@ -97,8 +97,7 @@ static URI stringAsURI(String s) throws IOException { // 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;