hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r494576 - in /lucene/hadoop/trunk: CHANGES.txt bin/hadoop
Date Tue, 09 Jan 2007 21:07:24 GMT
Author: cutting
Date: Tue Jan  9 13:07:23 2007
New Revision: 494576

URL: http://svn.apache.org/viewvc?view=rev&rev=494576
Log:
HADOOP-871.  Fix a bug in bin/hadoop setting JAVA_LIBRARY_PATH.  Contributed by Arun.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/bin/hadoop

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=494576&r1=494575&r2=494576
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Jan  9 13:07:23 2007
@@ -20,6 +20,9 @@
  6. HADOOP-866.  Fix 'dfs -get' command to remove existing crc files,
     if any.  (Milind Bhandarkar via cutting)
 
+ 7. HADOOP-871.  Fix a bug in bin/hadoop setting JAVA_LIBRARY_PATH.
+    (Arun C Murthy via cutting)
+
 
 Release 0.10.0 - 2007-01-05
 

Modified: lucene/hadoop/trunk/bin/hadoop
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/bin/hadoop?view=diff&rev=494576&r1=494575&r2=494576
==============================================================================
--- lucene/hadoop/trunk/bin/hadoop (original)
+++ lucene/hadoop/trunk/bin/hadoop Tue Jan  9 13:07:23 2007
@@ -117,7 +117,11 @@
   fi
   
   if [ -d "${HADOOP_HOME}/lib/native" ]; then
-    JAVA_LIBRARY_PATH=${JAVA_LIBRARY_PATH}:${HADOOP_HOME}/lib/native/${JAVA_PLATFORM}
+    if [ "x$JAVA_LIBRARY_PATH" != "x" ]; then
+      JAVA_LIBRARY_PATH=${JAVA_LIBRARY_PATH}:${HADOOP_HOME}/lib/native/${JAVA_PLATFORM}
+    else
+      JAVA_LIBRARY_PATH=${HADOOP_HOME}/lib/native/${JAVA_PLATFORM}
+    fi
   fi
 fi
  



Mime
View raw message