code: 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);
    }
docs: Check if native-lzo library is loaded & initialized.
  
  @param conf configuration
  @return <code>true</code> if native-lzo library is loaded & initialized;
  else <code>false</code>