hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DENG FEI (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11073) FileContext.makeQualified add default port for relavtive path with default fs as ha format
Date Tue, 08 Nov 2016 12:41:58 GMT

    [ 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


Mime
View raw message