Example usage for org.apache.hadoop.io.compress.bzip2 Bzip2Factory isNativeBzip2Loaded

List of usage examples for org.apache.hadoop.io.compress.bzip2 Bzip2Factory isNativeBzip2Loaded

Introduction

In this page you can find the example usage for org.apache.hadoop.io.compress.bzip2 Bzip2Factory isNativeBzip2Loaded.

Prototype

public static synchronized boolean isNativeBzip2Loaded(Configuration conf) 

Source Link

Document

Check if native-bzip2 code is loaded & initialized correctly and can be loaded for this job.

Usage

From source file:com.facebook.presto.hadoop.TestHadoopNative.java

License:Apache License

@Test
public void testNative() {
    HadoopNative.requireHadoopNative();// w  w w . j  ava 2 s.  co m

    assertTrue(NativeCodeLoader.isNativeCodeLoaded());
    assertTrue(NativeCodeLoader.buildSupportsSnappy());
    assertTrue(ZlibFactory.isNativeZlibLoaded(new Configuration()));
    assertTrue(Bzip2Factory.isNativeBzip2Loaded(new Configuration()));
}