DENG FEI created HDFS-11073: ------------------------------- Summary: FileContext.makeQualified add default port for relavtive path with default fs as ha format Key: HDFS-11073 URL: https://issues.apache.org/jira/browse/HDFS-11073 Project: Hadoop HDFS Issue Type: Bug Components: hdfs Reporter: DENG FEI
JobHistoryUtils#getPreviousJobHistoryPath used FileContext#makeQualifie but history staging dir normally is relatived, the path will add default port if "fs.defaultFS" is HA format.It's conflict with FileSystem#checkPath. {code} Configuration aConf = new Configuration(); aConf.set("fs.defaultFS", "hdfs://mycluster/"); System.out.println(FileContext.getFileContext(aConf).makeQualified(new Path("/test"))); {code} print hdfs://mycluster:8020/test -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org