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

Tests don't run with native libraries

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: build, test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Test execution when run with the native flag and native libraries have been built don't actually use the native libs because NativeCodeLoader is unable to load native-hadoop. Eg run mvn compile -Pnative then mvn -Dtest=TestSeekBug test -Pnative and check the test output. This is because the test's java.library.path is looking for the lib in hdfs (
      hadoop-hdfs-project/hadoop-hdfs/target/native/target/usr/local/lib) however the native lib lives in common. I confirmed copying the lib to the appropriate directory fixes things. We need to update the java.library.path for test execution to include the common lib dir. This may be an issue with MR as well.

        Attachments

        1. HDFS-3753.002.patch
          9 kB
          Colin McCabe
        2. HDFS-3753.001.patch
          7 kB
          Colin McCabe

        Issue Links

          Activity

            People

            • Assignee:
              cmccabe Colin McCabe
              Reporter:
              eli Eli Collins

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment