You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2018/04/11 00:02:00 UTC

[jira] [Commented] (HBASE-19963) TestFSHDFSUtils assumes wrong default port for Hadoop 3.0.1+

    [ https://issues.apache.org/jira/browse/HBASE-19963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16433198#comment-16433198 ] 

Wei-Chiu Chuang commented on HBASE-19963:
-----------------------------------------

Hi Mike, I'm interested in this issue since it pertains to HDFS.

I think it makes sense to update hadoop-three.version in pom.xml to 3.0.1, and restore the existing NameNode port.

> TestFSHDFSUtils assumes wrong default port for Hadoop 3.0.1+
> ------------------------------------------------------------
>
>                 Key: HBASE-19963
>                 URL: https://issues.apache.org/jira/browse/HBASE-19963
>             Project: HBase
>          Issue Type: Task
>          Components: test
>            Reporter: Mike Drob
>            Priority: Major
>
> We try to accommodate HDFS changing ports when testing if it is the same FS in our tests:
> https://github.com/apache/hbase/blob/master/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java#L156-L162
> {code}
>     if (isHadoop3) {
>       // Hadoop 3.0.0 alpha1+ change default nn port to 9820. See HDFS-9427
>       testIsSameHdfs(9820);
>     } else {
>       // pre hadoop 3.0.0 defaults to port 8020
>       testIsSameHdfs(8020);
>     }
> {code}
> But in Hadoop 3.0.1, they decided to go back to the old port - see HDFS-12990.
> So our tests will fail against the snapshot and against future releases.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)