Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14278

[JDK9] TestDFSClientFailover is using the removed sun.net.spi.nameservice package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 3.0.0-alpha2
    • None
    • None
    • None

    Description

      In JDK9 sun.net.spi.nameservice package has been removed http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/d11ad4b19348 making it fail when running mvn clean install -DskipTests with error:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project hadoop-hdfs: Compilation failure: Compilation failure:
      [ERROR] /root/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientFailover.java:[66,31] package sun.net.spi.nameservice does not exist
      [ERROR] /root/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientFailover.java:[233,11] cannot find symbol
      [ERROR] symbol:   class NameService
      [ERROR] location: class org.apache.hadoop.hdfs.TestDFSClientFailover
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aaperezl Andres Perez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: