return new Path(uri.getScheme(), uri.getAuthority(), uri.getPath());
}
private FileSystem getFileSystem(URI uri, Configuration conf, String user) throws HadoopAccessorException {
if (user == null) {
throw new HadoopAccessorException(ErrorCode.E0902, "user has to be specified to access FileSystem");
}
Configuration fsConf = service.createJobConf(uri.getAuthority());
return service.createFileSystem(user, uri, fsConf);
}