[jira] [Commented] (HDFS-11073) FileContext.makeQualified add default port for relavtive path with default fs as ha format
[ https://issues.apache.org/jira/browse/HDFS-11073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15647463#comment-15647463 ] DENG FEI commented on HDFS-11073: - @ [~brahmareddy] [HADOOP-12053|https://issues.apache.org/jira/browse/HADOOP-12053] met same issue,but not work for this. I think the "default port" mechanism is not fit HA mode for Hdfs,normally cluster will choose HA. upload a walk around patch. > 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-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Commented] (HDFS-11073) FileContext.makeQualified add default port for relavtive path with default fs as ha format
[ https://issues.apache.org/jira/browse/HDFS-11073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15620375#comment-15620375 ] Brahma Reddy Battula commented on HDFS-11073: - Dupe of HADOOP-12053..? > 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-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org