Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-10561

test_native_mini_dfs fails by NoClassDefFoundError

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.9.0, 3.0.0-alpha1
    • Component/s: native, test
    • Labels:
      None
    • Target Version/s:

      Description

      After HDFS-10256, test_libhdfs_threaded_hdfs_static, test_libhdfs_zerocopy_hdfs_static, and test_test_native_mini_dfs are failing by NoClassDefFoundError.

      nmdCreate: Builder#build error:
      java.lang.NoClassDefFoundError: org/junit/Assert
      	at org.apache.hadoop.test.GenericTestUtils.assertExists(GenericTestUtils.java:205)
      	at org.apache.hadoop.test.GenericTestUtils.getTestDir(GenericTestUtils.java:150)
      	at org.apache.hadoop.test.GenericTestUtils.getTestDir(GenericTestUtils.java:159)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.getBaseDirectory(MiniDFSCluster.java:2745)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.determineDfsBaseDir(MiniDFSCluster.java:2735)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:800)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:490)
      	at org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:449)
      Caused by: java.lang.ClassNotFoundException: org.junit.Assert
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 8 more
      TEST_ERROR: failed on /testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/test_native_mini_dfs.c:35 (errno: 2): got NULL from cl
      <end of output>
      Test time =   1.05 sec
      
      1. HDFS-10561.01.patch
        0.6 kB
        Akira Ajisaka

        Issue Links

          Activity

          Hide
          ajisakaa Akira Ajisaka added a comment -

          Attaching a patch to add dependency to JUnit. This will fix NoClassDefFoundError.

          Show
          ajisakaa Akira Ajisaka added a comment - Attaching a patch to add dependency to JUnit. This will fix NoClassDefFoundError.
          Hide
          ajisakaa Akira Ajisaka added a comment -

          Hi Vinayakumar B, would you review my patch?

          Show
          ajisakaa Akira Ajisaka added a comment - Hi Vinayakumar B , would you review my patch?
          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 17s Docker mode activated.
          +1 @author 0m 0s The patch does not contain any @author tags.
          -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
          +1 mvninstall 6m 40s trunk passed
          +1 compile 0m 14s trunk passed
          +1 mvnsite 0m 13s trunk passed
          +1 mvneclipse 0m 12s trunk passed
          +1 javadoc 0m 8s trunk passed
          +1 mvninstall 0m 9s the patch passed
          +1 compile 0m 12s the patch passed
          +1 javac 0m 12s the patch passed
          +1 mvnsite 0m 10s the patch passed
          +1 mvneclipse 0m 9s the patch passed
          +1 whitespace 0m 0s The patch has no whitespace issues.
          +1 xml 0m 2s The patch has no ill-formed XML file.
          +1 javadoc 0m 7s the patch passed
          +1 unit 0m 31s hadoop-hdfs-native-client in the patch passed.
          +1 asflicense 0m 16s The patch does not generate ASF License warnings.
          10m 26s



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:e2f6409
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12812527/HDFS-10561.01.patch
          JIRA Issue HDFS-10561
          Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit xml
          uname Linux 0f32a57340d7 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
          git revision trunk / 4ee3543
          Default Java 1.8.0_91
          Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/15874/testReport/
          modules C: hadoop-hdfs-project/hadoop-hdfs-native-client U: hadoop-hdfs-project/hadoop-hdfs-native-client
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/15874/console
          Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 17s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 mvninstall 6m 40s trunk passed +1 compile 0m 14s trunk passed +1 mvnsite 0m 13s trunk passed +1 mvneclipse 0m 12s trunk passed +1 javadoc 0m 8s trunk passed +1 mvninstall 0m 9s the patch passed +1 compile 0m 12s the patch passed +1 javac 0m 12s the patch passed +1 mvnsite 0m 10s the patch passed +1 mvneclipse 0m 9s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 xml 0m 2s The patch has no ill-formed XML file. +1 javadoc 0m 7s the patch passed +1 unit 0m 31s hadoop-hdfs-native-client in the patch passed. +1 asflicense 0m 16s The patch does not generate ASF License warnings. 10m 26s Subsystem Report/Notes Docker Image:yetus/hadoop:e2f6409 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12812527/HDFS-10561.01.patch JIRA Issue HDFS-10561 Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit xml uname Linux 0f32a57340d7 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 4ee3543 Default Java 1.8.0_91 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/15874/testReport/ modules C: hadoop-hdfs-project/hadoop-hdfs-native-client U: hadoop-hdfs-project/hadoop-hdfs-native-client Console output https://builds.apache.org/job/PreCommit-HDFS-Build/15874/console Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
          Hide
          vinayrpet Vinayakumar B added a comment -

          +1.
          This is transitive dependency problem.
          Test dependencies are not transitive.
          Thanks Akira Ajisaka.

          Show
          vinayrpet Vinayakumar B added a comment - +1. This is transitive dependency problem. Test dependencies are not transitive. Thanks Akira Ajisaka .
          Hide
          ajisakaa Akira Ajisaka added a comment -

          Thanks Vinayakumar B for the review. Committed this to trunk and branch-2.

          Show
          ajisakaa Akira Ajisaka added a comment - Thanks Vinayakumar B for the review. Committed this to trunk and branch-2.
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Hadoop-trunk-Commit #10008 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10008/)
          HDFS-10561. test_native_mini_dfs fails by NoClassDefFoundError. (aajisaka: rev ff07b108039ecc4e680352f756930673ced42256)

          • hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-trunk-Commit #10008 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10008/ ) HDFS-10561 . test_native_mini_dfs fails by NoClassDefFoundError. (aajisaka: rev ff07b108039ecc4e680352f756930673ced42256) hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml

            People

            • Assignee:
              ajisakaa Akira Ajisaka
              Reporter:
              ajisakaa Akira Ajisaka
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development