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/10/28 11:31:59 UTC

[jira] [Created] (HDFS-11073) FileContext.makeQualified add default port for relavtive path with default fs as ha format

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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org