|
@@ -119,8 +119,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;
|
|
@@ -157,9 +155,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());
|
|
@@ -202,8 +197,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));
|
|
|
}
|
|
|
|
|
|
/**
|