public static synchronized boolean isNativeLzoLoaded ( Configuration conf ) { if ( ! nativeLzoChecked ) { if ( GPLNativeCodeLoader . isNativeCodeLoaded ( ) ) { nativeLzoLoaded = LzoCompressor . isNativeLzoLoaded ( ) && LzoDecompressor . isNativeLzoLoaded ( ) ; if ( nativeLzoLoaded ) { LOG . info ( "Successfully loaded & initialized native-lzo library" ) ; } else { LOG . error ( "Failed to load/initialize native-lzo library" ) ; } } else { LOG . error ( "Cannot load native-lzo without native-hadoop" ) ; } nativeLzoChecked = true ; } return nativeLzoLoaded && conf . getBoolean ( "hadoop.native.lib" , true ) ; }
Check if native - lzo library is loaded & initialized .