|
@@ -34,6 +34,7 @@ import org.apache.hadoop.io.SequenceFile.Writer.Option;
|
|
|
import org.apache.hadoop.io.compress.DefaultCodec;
|
|
|
import org.apache.hadoop.io.compress.GzipCodec;
|
|
|
import org.apache.hadoop.io.serializer.JavaSerializationComparator;
|
|
|
+import org.apache.hadoop.test.GenericTestUtils;
|
|
|
import org.junit.AfterClass;
|
|
|
import org.junit.BeforeClass;
|
|
|
import org.junit.Test;
|
|
@@ -140,6 +141,7 @@ public class TestSequenceFileAppend {
|
|
|
|
|
|
@Test(timeout = 30000)
|
|
|
public void testAppendRecordCompression() throws Exception {
|
|
|
+ GenericTestUtils.assumeNativeCodeLoaded();
|
|
|
|
|
|
Path file = new Path(ROOT_PATH, "testseqappendblockcompr.seq");
|
|
|
fs.delete(file, true);
|
|
@@ -173,6 +175,7 @@ public class TestSequenceFileAppend {
|
|
|
|
|
|
@Test(timeout = 30000)
|
|
|
public void testAppendBlockCompression() throws Exception {
|
|
|
+ GenericTestUtils.assumeNativeCodeLoaded();
|
|
|
|
|
|
Path file = new Path(ROOT_PATH, "testseqappendblockcompr.seq");
|
|
|
fs.delete(file, true);
|
|
@@ -247,6 +250,8 @@ public class TestSequenceFileAppend {
|
|
|
|
|
|
@Test(timeout = 30000)
|
|
|
public void testAppendSort() throws Exception {
|
|
|
+ GenericTestUtils.assumeNativeCodeLoaded();
|
|
|
+
|
|
|
Path file = new Path(ROOT_PATH, "testseqappendSort.seq");
|
|
|
fs.delete(file, true);
|
|
|
|