Revert initial commit of HADOOP-8884 per feedback from Todd.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1395783 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Aaron Myers 2012-10-08 21:25:37 +00:00
parent 494e210521
commit 2b49b39f3c
2 changed files with 6 additions and 7 deletions

View File

@ -322,10 +322,6 @@ Release 2.0.3-alpha - Unreleased
HADOOP-8881. FileBasedKeyStoresFactory initialization logging should be debug not info. (tucu) HADOOP-8881. FileBasedKeyStoresFactory initialization logging should be debug not info. (tucu)
HADOOP-8884. DEBUG should be WARN for DEBUG util.NativeCodeLoader: Failed
to load native-hadoop with error: java.lang.UnsatisfiedLinkError. (Anthony
Rojas via atm)
Release 2.0.2-alpha - 2012-09-07 Release 2.0.2-alpha - 2012-09-07
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -50,9 +50,12 @@ public class NativeCodeLoader {
LOG.debug("Loaded the native-hadoop library"); LOG.debug("Loaded the native-hadoop library");
nativeCodeLoaded = true; nativeCodeLoaded = true;
} catch (Throwable t) { } catch (Throwable t) {
// Display warning if native-hadoop failed to load // Ignore failure to load
LOG.warn("Continuing after failing to load native-hadoop - java.library.path=" + if(LOG.isDebugEnabled()) {
System.getProperty("java.library.path") + " with error:", t); LOG.debug("Failed to load native-hadoop with error: " + t);
LOG.debug("java.library.path=" +
System.getProperty("java.library.path"));
}
} }
if (!nativeCodeLoaded) { if (!nativeCodeLoaded) {