|
@@ -122,8 +122,6 @@ public class DistributedFileSystem extends FileSystem
|
|
|
implements KeyProviderTokenIssuer {
|
|
|
private Path workingDir;
|
|
|
private URI uri;
|
|
|
- private String homeDirPrefix =
|
|
|
- HdfsClientConfigKeys.DFS_USER_HOME_DIR_PREFIX_DEFAULT;
|
|
|
|
|
|
DFSClient dfs;
|
|
|
private boolean verifyChecksum = true;
|
|
@@ -160,9 +158,6 @@ public class DistributedFileSystem extends FileSystem
|
|
|
if (host == null) {
|
|
|
throw new IOException("Incomplete HDFS URI, no host: "+ uri);
|
|
|
}
|
|
|
- homeDirPrefix = conf.get(
|
|
|
- HdfsClientConfigKeys.DFS_USER_HOME_DIR_PREFIX_KEY,
|
|
|
- HdfsClientConfigKeys.DFS_USER_HOME_DIR_PREFIX_DEFAULT);
|
|
|
|
|
|
this.dfs = new DFSClient(uri, conf, statistics);
|
|
|
this.uri = URI.create(uri.getScheme()+"://"+uri.getAuthority());
|
|
@@ -205,8 +200,7 @@ public class DistributedFileSystem extends FileSystem
|
|
|
|
|
|
@Override
|
|
|
public Path getHomeDirectory() {
|
|
|
- return makeQualified(new Path(homeDirPrefix + "/"
|
|
|
- + dfs.ugi.getShortUserName()));
|
|
|
+ return makeQualified(DFSUtilClient.getHomeDirectory(getConf(), dfs.ugi));
|
|
|
}
|
|
|
|
|
|
/**
|