Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10601 Upgrade hadoop dependency to 2.3.0 release
  3. HBASE-10717

TestFSHDFSUtils#testIsSameHdfs fails with IllegalArgumentException running against hadoop 2.3

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.1, 0.99.0
    • None
    • None
    • Reviewed

    Description

      testIsSameHdfs(org.apache.hadoop.hbase.util.TestFSHDFSUtils)  Time elapsed: 0.001 sec  <<< ERROR!
      java.lang.IllegalArgumentException: port out of range:-1
              at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
              at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224)
              at org.apache.hadoop.hbase.util.FSHDFSUtils.getNNAddresses(FSHDFSUtils.java:88)
              at org.apache.hadoop.hbase.util.FSHDFSUtils.isSameHdfs(FSHDFSUtils.java:118)
              at org.apache.hadoop.hbase.util.TestFSHDFSUtils.testIsSameHdfs(TestFSHDFSUtils.java:118)
      

      It came from the following line:

            InetSocketAddress addr = new InetSocketAddress(uri.getHost(), uri.getPort());
      

      where uri is hdfs://127.0.0.1

      Attachments

        1. 10717-v1.txt
          0.8 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: