HADOOP-15772. Remove the 'Path ... should be specified as a URI' warnings on startup. Contributed by Ayush Saxena.
(cherry picked from commit 2eb597b1511f8f46866abe4eeec820f4191cc295)
This commit is contained in:
parent
3fc3a5c01c
commit
ffef819ee8
@ -96,8 +96,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user