Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-beta1
    • Fix Version/s: 3.0.0-beta1
    • Component/s: erasure-coding
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed
    • Flags:
      Patch

      Description

      My hadoop is built without isa-l support, after the EC policy is enabled, whenever I get/put directory which contains many files, the log of warnings(see below) spam on the screen!
      This is unfriendly and depress the performance. Since we come to the beta version now,
      these logs should be deprecated and a one-time warning log instead of exception may be much better.

      2017-07-06 15:42:41,398 WARN erasurecode.CodecUtil: Failed to create raw erasure encoder xor_native, fallback to next codec if possible
      java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.io.erasurecode.rawcoder.NativeXORRawEncoder
      at org.apache.hadoop.io.erasurecode.rawcoder.NativeXORRawErasureCoderFactory.createEncoder(NativeXORRawErasureCoderFactory.java:35)
      at org.apache.hadoop.io.erasurecode.CodecUtil.createRawEncoderWithFallback(CodecUtil.java:177)
      at org.apache.hadoop.io.erasurecode.CodecUtil.createRawEncoder(CodecUtil.java:129)
      at org.apache.hadoop.hdfs.DFSStripedOutputStream.<init>(DFSStripedOutputStream.java:302)
      at org.apache.hadoop.hdfs.DFSOutputStream.newStreamForCreate(DFSOutputStream.java:309)
      at org.apache.hadoop.hdfs.DFSClient.create(DFSClient.java:1216)
      at org.apache.hadoop.hdfs.DFSClient.create(DFSClient.java:1195)
      at org.apache.hadoop.hdfs.DFSClient.create(DFSClient.java:1133)
      ...
      at org.apache.hadoop.fs.shell.Command.run(Command.java:176)
      at org.apache.hadoop.fs.FsShell.run(FsShell.java:326)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
      at org.apache.hadoop.fs.FsShell.main(FsShell.java:389)

      Caused by: java.lang.RuntimeException: libhadoop was built without ISA-L support
      at org.apache.hadoop.io.erasurecode.ErasureCodeNative.checkNativeCodeLoaded(ErasureCodeNative.java:69)
      at org.apache.hadoop.io.erasurecode.rawcoder.NativeXORRawDecoder.<clinit>(NativeXORRawDecoder.java:33)
      ... 25 more

        Issue Links

          Activity

          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 8s 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 13m 8s trunk passed
          +1 compile 13m 33s trunk passed
          +1 checkstyle 0m 35s trunk passed
          +1 mvnsite 1m 3s trunk passed
          +1 findbugs 1m 21s trunk passed
          +1 javadoc 0m 49s trunk passed
          +1 mvninstall 0m 38s the patch passed
          +1 compile 10m 4s the patch passed
          +1 javac 10m 4s the patch passed
          +1 checkstyle 0m 34s the patch passed
          +1 mvnsite 1m 2s the patch passed
          +1 whitespace 0m 0s The patch has no whitespace issues.
          +1 findbugs 1m 28s the patch passed
          +1 javadoc 0m 49s the patch passed
          +1 unit 8m 27s hadoop-common in the patch passed.
          +1 asflicense 0m 33s The patch does not generate ASF License warnings.
          55m 16s



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:14b5c93
          JIRA Issue HDFS-12094
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12875883/HDFS-12094.001.patch
          Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
          uname Linux 01888c7ad10a 3.13.0-119-generic #166-Ubuntu SMP Wed May 3 12:18:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
          git revision trunk / 946dd25
          Default Java 1.8.0_131
          findbugs v3.1.0-RC1
          Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/20172/testReport/
          modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/20172/console
          Powered by Apache Yetus 0.5.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 8s 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 13m 8s trunk passed +1 compile 13m 33s trunk passed +1 checkstyle 0m 35s trunk passed +1 mvnsite 1m 3s trunk passed +1 findbugs 1m 21s trunk passed +1 javadoc 0m 49s trunk passed +1 mvninstall 0m 38s the patch passed +1 compile 10m 4s the patch passed +1 javac 10m 4s the patch passed +1 checkstyle 0m 34s the patch passed +1 mvnsite 1m 2s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 findbugs 1m 28s the patch passed +1 javadoc 0m 49s the patch passed +1 unit 8m 27s hadoop-common in the patch passed. +1 asflicense 0m 33s The patch does not generate ASF License warnings. 55m 16s Subsystem Report/Notes Docker Image:yetus/hadoop:14b5c93 JIRA Issue HDFS-12094 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12875883/HDFS-12094.001.patch Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux 01888c7ad10a 3.13.0-119-generic #166-Ubuntu SMP Wed May 3 12:18:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 946dd25 Default Java 1.8.0_131 findbugs v3.1.0-RC1 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/20172/testReport/ modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common Console output https://builds.apache.org/job/PreCommit-HDFS-Build/20172/console Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
          Hide
          hanishakoneru Hanisha Koneru added a comment -

          Thank you LiXin Ge. The patch LGTM.
          Unit tests not required for this change.
          +1 (non-binding)

          Show
          hanishakoneru Hanisha Koneru added a comment - Thank you LiXin Ge . The patch LGTM. Unit tests not required for this change. +1 (non-binding)
          Hide
          jojochuang Wei-Chiu Chuang added a comment -

          +1 will commit shortly.

          Show
          jojochuang Wei-Chiu Chuang added a comment - +1 will commit shortly.
          Hide
          jojochuang Wei-Chiu Chuang added a comment -

          Committed the patch to trunk. Thanks LiXin Ge for the patch and Hanisha Koneru for reviewing the patch!

          Show
          jojochuang Wei-Chiu Chuang added a comment - Committed the patch to trunk. Thanks LiXin Ge for the patch and Hanisha Koneru for reviewing the patch!
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Jenkins build Hadoop-trunk-Commit #12045 (See https://builds.apache.org/job/Hadoop-trunk-Commit/12045/)
          HDFS-12094. Log torrent when none isa-l EC is used. Contributed by LiXin (weichiu: rev 465c213439d4955df0b23d38423073890b121ccc)

          • (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/ErasureCodeNative.java
          • (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/CodecUtil.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Jenkins build Hadoop-trunk-Commit #12045 (See https://builds.apache.org/job/Hadoop-trunk-Commit/12045/ ) HDFS-12094 . Log torrent when none isa-l EC is used. Contributed by LiXin (weichiu: rev 465c213439d4955df0b23d38423073890b121ccc) (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/ErasureCodeNative.java (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/CodecUtil.java

            People

            • Assignee:
              GeLiXin LiXin Ge
              Reporter:
              GeLiXin LiXin Ge
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development