hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r489489 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/mapred/TaskRunner.java
Date Thu, 21 Dec 2006 22:38:52 GMT
Author: cutting
Date: Thu Dec 21 14:38:52 2006
New Revision: 489489

URL: http://svn.apache.org/viewvc?view=rev&rev=489489
Log:
HADOOP-838.  Fix tasktracker to pass java.library.path to sub-proceses.  Contributed by Arun.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskRunner.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=489489&r1=489488&r2=489489
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Thu Dec 21 14:38:52 2006
@@ -149,6 +149,10 @@
 41. HADOOP-841.  Fix native library to build 32-bit version even when
     on a 64-bit host, if a 32-bit JVM is used.  (Arun C Murthy via cutting)
 
+42. HADOOP-838.  Fix tasktracker to pass java.library.path to
+    sub-processes, so that libhadoop.a is found.
+    (Arun C Murthy via cutting)
+
 
 Release 0.9.2 - 2006-12-15
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskRunner.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskRunner.java?view=diff&rev=489489&r1=489488&r2=489489
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskRunner.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskRunner.java Thu Dec 21 14:38:52
2006
@@ -208,6 +208,13 @@
       vargs.add(TaskTracker.Child.class.getName());  // main of Child
       vargs.add(tracker.taskReportPort + "");        // pass umbilical port
       vargs.add(t.getTaskId());                      // pass task identifier
+      
+      // Add java.library.path; necessary for native-hadoop libraries
+      String libraryPath = System.getProperty("java.library.path");
+      if (libraryPath != null) {
+          vargs.add("-Djava.library.path=" + libraryPath);
+      }
+      
       // Run java
       runChild((String[])vargs.toArray(new String[0]), workDir);
     } catch (FSError e) {



Mime
View raw message