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

UnsatisfiedLinkError while checking ISA-L in checknative command.

    Details

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

      Description

      bash-4.1# bin/hadoop checknative
      15/12/14 05:49:34 WARN bzip2.Bzip2Factory: Failed to load/initialize native-bzip2 library system-native, will use pure-Java version
      15/12/14 05:49:34 WARN zlib.ZlibFactory: Failed to load/initialize native-zlib library
      Exception in thread "main" java.lang.UnsatisfiedLinkError: org.apache.hadoop.util.NativeCodeLoader.buildSupportsIsal()Z
      	at org.apache.hadoop.util.NativeCodeLoader.buildSupportsIsal(Native Method)
      	at org.apache.hadoop.io.erasurecode.ErasureCodeNative.<clinit>(ErasureCodeNative.java:41)
      	at org.apache.hadoop.util.NativeLibraryChecker.main(NativeLibraryChecker.java:98)
      

      It seems to be caused by unhandled exception thrown by NativeCodeLoader.isNativeCodeLoader.

      Env: Ubuntu 14.04 LTS

        Issue Links

          Activity

          Hide
          stevel@apache.org Steve Loughran added a comment -

          Can you add platform & version info —thanks

          Show
          stevel@apache.org Steve Loughran added a comment - Can you add platform & version info —thanks
          Hide
          stevel@apache.org Steve Loughran added a comment -

          How did this slip the tests?

          Show
          stevel@apache.org Steve Loughran added a comment - How did this slip the tests?
          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 0s 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 8m 44s trunk passed
          +1 compile 10m 42s trunk passed with JDK v1.8.0_66
          +1 compile 10m 27s trunk passed with JDK v1.7.0_91
          +1 checkstyle 0m 17s trunk passed
          +1 mvnsite 1m 6s trunk passed
          +1 mvneclipse 0m 14s trunk passed
          +1 findbugs 1m 56s trunk passed
          +1 javadoc 0m 57s trunk passed with JDK v1.8.0_66
          +1 javadoc 1m 7s trunk passed with JDK v1.7.0_91
          +1 mvninstall 1m 41s the patch passed
          +1 compile 8m 38s the patch passed with JDK v1.8.0_66
          +1 javac 8m 38s the patch passed
          +1 compile 9m 24s the patch passed with JDK v1.7.0_91
          +1 javac 9m 24s the patch passed
          -1 checkstyle 0m 17s Patch generated 1 new checkstyle issues in hadoop-common-project/hadoop-common (total was 5, now 5).
          +1 mvnsite 1m 8s the patch passed
          +1 mvneclipse 0m 15s the patch passed
          +1 whitespace 0m 0s Patch has no whitespace issues.
          +1 findbugs 2m 5s the patch passed
          +1 javadoc 0m 56s the patch passed with JDK v1.8.0_66
          +1 javadoc 1m 8s the patch passed with JDK v1.7.0_91
          -1 unit 8m 8s hadoop-common in the patch failed with JDK v1.8.0_66.
          -1 unit 7m 58s hadoop-common in the patch failed with JDK v1.7.0_91.
          +1 asflicense 0m 25s Patch does not generate ASF License warnings.
          78m 38s



          Reason Tests
          JDK v1.8.0_66 Failed junit tests hadoop.metrics2.impl.TestGangliaMetrics
            hadoop.ha.TestZKFailoverController
            hadoop.security.TestShellBasedIdMapping
          JDK v1.7.0_91 Failed junit tests hadoop.metrics2.impl.TestGangliaMetrics



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:0ca8df7
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12777450/HADOOP-12638.01.patch
          JIRA Issue HADOOP-12638
          Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
          uname Linux 9d8eab32609f 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 / 7fb212e
          findbugs v3.0.0
          checkstyle https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/artifact/patchprocess/diff-checkstyle-hadoop-common-project_hadoop-common.txt
          unit https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt
          unit https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.7.0_91.txt
          unit test logs https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.7.0_91.txt
          JDK v1.7.0_91 Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/testReport/
          modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
          Max memory used 76MB
          Powered by Apache Yetus 0.1.0 http://yetus.apache.org
          Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/console

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 0s 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 8m 44s trunk passed +1 compile 10m 42s trunk passed with JDK v1.8.0_66 +1 compile 10m 27s trunk passed with JDK v1.7.0_91 +1 checkstyle 0m 17s trunk passed +1 mvnsite 1m 6s trunk passed +1 mvneclipse 0m 14s trunk passed +1 findbugs 1m 56s trunk passed +1 javadoc 0m 57s trunk passed with JDK v1.8.0_66 +1 javadoc 1m 7s trunk passed with JDK v1.7.0_91 +1 mvninstall 1m 41s the patch passed +1 compile 8m 38s the patch passed with JDK v1.8.0_66 +1 javac 8m 38s the patch passed +1 compile 9m 24s the patch passed with JDK v1.7.0_91 +1 javac 9m 24s the patch passed -1 checkstyle 0m 17s Patch generated 1 new checkstyle issues in hadoop-common-project/hadoop-common (total was 5, now 5). +1 mvnsite 1m 8s the patch passed +1 mvneclipse 0m 15s the patch passed +1 whitespace 0m 0s Patch has no whitespace issues. +1 findbugs 2m 5s the patch passed +1 javadoc 0m 56s the patch passed with JDK v1.8.0_66 +1 javadoc 1m 8s the patch passed with JDK v1.7.0_91 -1 unit 8m 8s hadoop-common in the patch failed with JDK v1.8.0_66. -1 unit 7m 58s hadoop-common in the patch failed with JDK v1.7.0_91. +1 asflicense 0m 25s Patch does not generate ASF License warnings. 78m 38s Reason Tests JDK v1.8.0_66 Failed junit tests hadoop.metrics2.impl.TestGangliaMetrics   hadoop.ha.TestZKFailoverController   hadoop.security.TestShellBasedIdMapping JDK v1.7.0_91 Failed junit tests hadoop.metrics2.impl.TestGangliaMetrics Subsystem Report/Notes Docker Image:yetus/hadoop:0ca8df7 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12777450/HADOOP-12638.01.patch JIRA Issue HADOOP-12638 Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux 9d8eab32609f 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 / 7fb212e findbugs v3.0.0 checkstyle https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/artifact/patchprocess/diff-checkstyle-hadoop-common-project_hadoop-common.txt unit https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt unit https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.7.0_91.txt unit test logs https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.7.0_91.txt JDK v1.7.0_91 Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/testReport/ modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common Max memory used 76MB Powered by Apache Yetus 0.1.0 http://yetus.apache.org Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/8233/console This message was automatically generated.
          Hide
          cmccabe Colin P. McCabe added a comment -

          Hi Steve Loughran, thanks for finding this. And thanks for fixing it, Kai Sasaki. I believe that our Jenkins tests only test the configuration where the bzip2 native library is installed and functional. So that's why this didn't show up in testing. Unfortunately, I don't think it's really practical to test every combination of native libraries installed or not. It would be nice to have a minimum set of required native libraries to run Hadoop, but that would be a difficult change to make at this point.

          +1 for the fix

          Show
          cmccabe Colin P. McCabe added a comment - Hi Steve Loughran , thanks for finding this. And thanks for fixing it, Kai Sasaki . I believe that our Jenkins tests only test the configuration where the bzip2 native library is installed and functional. So that's why this didn't show up in testing. Unfortunately, I don't think it's really practical to test every combination of native libraries installed or not. It would be nice to have a minimum set of required native libraries to run Hadoop, but that would be a difficult change to make at this point. +1 for the fix
          Hide
          cmccabe Colin P. McCabe added a comment -

          Committed to trunk. BTW this bug was never in 2.7.. HADOOP-11887 is trunk-only at this point.

          Show
          cmccabe Colin P. McCabe added a comment - Committed to trunk. BTW this bug was never in 2.7.. HADOOP-11887 is trunk-only at this point.
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-trunk-Commit #8964 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8964/)
          HADOOP-12638. UnsatisfiedLinkError while checking ISA-L in checknative (cmccabe: rev bc7242298118c701598cb2095f840fb487a230e6)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeLibraryChecker.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #8964 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8964/ ) HADOOP-12638 . UnsatisfiedLinkError while checking ISA-L in checknative (cmccabe: rev bc7242298118c701598cb2095f840fb487a230e6) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeLibraryChecker.java
          Hide
          drankye Kai Zheng added a comment -

          Thanks Kai and all for reporting and fixing this!

          I don't think it's really practical to test every combination of native libraries installed or not. It would be nice to have a minimum set of required native libraries to run Hadoop, but that would be a difficult change to make at this point.

          When HADOOP-12626 is done, the ISA-L building will happen by default as part of the building native. As clarified by Chris and Allen in YETUS-222, we don't enumerate all combinations, just invoke all the native features as possible.

          Show
          drankye Kai Zheng added a comment - Thanks Kai and all for reporting and fixing this! I don't think it's really practical to test every combination of native libraries installed or not. It would be nice to have a minimum set of required native libraries to run Hadoop, but that would be a difficult change to make at this point. When HADOOP-12626 is done, the ISA-L building will happen by default as part of the building native. As clarified by Chris and Allen in YETUS-222 , we don't enumerate all combinations, just invoke all the native features as possible.
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #693 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/693/)
          HADOOP-12638. UnsatisfiedLinkError while checking ISA-L in checknative (cmccabe: rev bc7242298118c701598cb2095f840fb487a230e6)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeLibraryChecker.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #693 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/693/ ) HADOOP-12638 . UnsatisfiedLinkError while checking ISA-L in checknative (cmccabe: rev bc7242298118c701598cb2095f840fb487a230e6) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeLibraryChecker.java
          Hide
          stevel@apache.org Steve Loughran added a comment -

          wasn't me that found it. I'm just concerned that something big skipped by the tests

          Show
          stevel@apache.org Steve Loughran added a comment - wasn't me that found it. I'm just concerned that something big skipped by the tests

            People

            • Assignee:
              lewuathe Kai Sasaki
              Reporter:
              lewuathe Kai Sasaki
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development