hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1395718 - in /hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common: CHANGES.txt src/main/java/org/apache/hadoop/util/NativeCodeLoader.java
Date Mon, 08 Oct 2012 18:46:16 GMT
Author: atm
Date: Mon Oct  8 18:46:15 2012
New Revision: 1395718

URL: http://svn.apache.org/viewvc?rev=1395718&view=rev
Log:
HADOOP-8884. DEBUG should be WARN for DEBUG util.NativeCodeLoader: Failed to load native-hadoop
with error: java.lang.UnsatisfiedLinkError. Contributed by Anthony Rojas.

Modified:
    hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt
    hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeCodeLoader.java

Modified: hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt?rev=1395718&r1=1395717&r2=1395718&view=diff
==============================================================================
--- hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt (original)
+++ hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt Mon Oct
 8 18:46:15 2012
@@ -65,6 +65,10 @@ Release 2.0.3-alpha - Unreleased 
 
     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 
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeCodeLoader.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeCodeLoader.java?rev=1395718&r1=1395717&r2=1395718&view=diff
==============================================================================
--- hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeCodeLoader.java
(original)
+++ hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeCodeLoader.java
Mon Oct  8 18:46:15 2012
@@ -50,12 +50,9 @@ public class NativeCodeLoader {
       LOG.debug("Loaded the native-hadoop library");
       nativeCodeLoaded = true;
     } catch (Throwable t) {
-      // Ignore failure to load
-      if(LOG.isDebugEnabled()) {
-        LOG.debug("Failed to load native-hadoop with error: " + t);
-        LOG.debug("java.library.path=" +
-            System.getProperty("java.library.path"));
-      }
+      // Display warning if native-hadoop failed to load
+      LOG.warn("Continuing after failing to load native-hadoop - java.library.path=" +
+          System.getProperty("java.library.path") + " with error:", t);
     }
     
     if (!nativeCodeLoaded) {



Mime
View raw message