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

(cherry picked from commit 2eb597b151)
This commit is contained in:
Arpit Agarwal 2018-09-19 13:48:27 -07:00
parent 3e476dcae8
commit 0dd686114f
1 changed files with 1 additions and 2 deletions

View File

@ -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;