You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "DENG FEI (JIRA)" <ji...@apache.org> on 2016/11/08 12:41:58 UTC
[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&focusedCommentId=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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org