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

test_native_mini_dfs fails by NoClassDefFoundError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 2.9.0, 3.0.0-alpha1
    • native, test
    • None

    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
      

      Attachments

        1. HDFS-10561.01.patch
          0.6 kB
          Akira Ajisaka

        Issue Links

          Activity

            People

              aajisaka Akira Ajisaka
              aajisaka Akira Ajisaka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: