From 34ccaa8367f048ed9f56038efe7b3202c436b6e6 Mon Sep 17 00:00:00 2001 From: Kai Zheng Date: Mon, 1 Aug 2016 06:34:26 +0800 Subject: [PATCH] HADOOP-11540. Raw Reed-Solomon coder using Intel ISA-L library. Contributed by Kai Zheng --- .../dev-support/findbugsExcludeFile.xml | 13 ++ hadoop-common-project/hadoop-common/pom.xml | 4 + .../rawcoder/AbstractNativeRawDecoder.java | 84 ++++++++++++ .../rawcoder/AbstractNativeRawEncoder.java | 81 ++++++++++++ .../rawcoder/ByteArrayDecodingState.java | 23 ++++ .../rawcoder/ByteArrayEncodingState.java | 23 ++++ .../rawcoder/ByteBufferDecodingState.java | 14 +- .../rawcoder/ByteBufferEncodingState.java | 10 ++ .../io/erasurecode/rawcoder/CoderUtil.java | 12 -- .../rawcoder/NativeRSRawDecoder.java | 61 +++++++++ .../rawcoder/NativeRSRawEncoder.java | 60 +++++++++ .../NativeRSRawErasureCoderFactory.java | 39 ++++++ .../rawcoder/RawErasureCoderFactory.java | 4 +- .../rawcoder/util/GaloisField.java | 4 +- .../apache/hadoop/io/erasurecode/jni_common.c | 27 ++-- ..._hadoop_io_erasurecode_ErasureCodeNative.h | 29 ----- ..._erasurecode_rawcoder_NativeRSRawDecoder.h | 37 ------ ..._erasurecode_rawcoder_NativeRSRawEncoder.h | 37 ------ .../rawcoder/TestNativeRSRawCoder.java | 121 ++++++++++++++++++ .../TestRSRawCoderInteroperable1.java | 38 ++++++ .../TestRSRawCoderInteroperable2.java | 38 ++++++ 21 files changed, 631 insertions(+), 128 deletions(-) create mode 100644 hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/AbstractNativeRawDecoder.java create mode 100644 hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/AbstractNativeRawEncoder.java create mode 100644 hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawDecoder.java create mode 100644 hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawEncoder.java create mode 100644 hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawErasureCoderFactory.java delete mode 100644 hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/org_apache_hadoop_io_erasurecode_ErasureCodeNative.h delete mode 100644 hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/org_apache_hadoop_io_erasurecode_rawcoder_NativeRSRawDecoder.h delete mode 100644 hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/org_apache_hadoop_io_erasurecode_rawcoder_NativeRSRawEncoder.h create mode 100644 hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/rawcoder/TestNativeRSRawCoder.java create mode 100644 hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/rawcoder/TestRSRawCoderInteroperable1.java create mode 100644 hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/rawcoder/TestRSRawCoderInteroperable2.java diff --git a/hadoop-common-project/hadoop-common/dev-support/findbugsExcludeFile.xml b/hadoop-common-project/hadoop-common/dev-support/findbugsExcludeFile.xml index a644aa5689b..b650eaeb391 100644 --- a/hadoop-common-project/hadoop-common/dev-support/findbugsExcludeFile.xml +++ b/hadoop-common-project/hadoop-common/dev-support/findbugsExcludeFile.xml @@ -47,6 +47,19 @@ + + + + + + + + + + +