Friday, June 24, 2016

Java and Hadoop URI differences

Hadoop Path.toUri adds only / to the beginning of local path but does not add file:. Java File toURI adds file:/ to the beginning and / to the end of any path. In particular, JavaFile.toURI.getPath equals to Hadoop Path.toUri.toString

No comments:

Post a Comment