Package org.apache.hadoop.util
Class NativeCodeLoader
java.lang.Object
org.apache.hadoop.util.NativeCodeLoader
A helper to load the native hadoop code i.e. libhadoop.so.
This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
or the default java implementations where appropriate.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns true only if this build was compiled with support for ISA-L.static booleanReturns true only if this build was compiled with support for openssl.static booleanReturns true only if this build was compiled with support for ZStandard.static Stringstatic booleanCheck if native-hadoop code is loaded for this platform.
-
Method Details
-
isNativeCodeLoaded
public static boolean isNativeCodeLoaded()Check if native-hadoop code is loaded for this platform.- Returns:
trueif native-hadoop is loaded, elsefalse
-
buildSupportsIsal
public static boolean buildSupportsIsal()Returns true only if this build was compiled with support for ISA-L.- Returns:
- if this build was compiled with support for ISA-L true, not false.
-
buildSupportsZstd
public static boolean buildSupportsZstd()Returns true only if this build was compiled with support for ZStandard.- Returns:
- if this build was compiled with support for ZStandard true,not false.
-
buildSupportsOpenssl
public static boolean buildSupportsOpenssl()Returns true only if this build was compiled with support for openssl.- Returns:
- if this build was compiled with support for openssl true,not false.
-
getLibraryName
-