瀏覽代碼

HADOOP-1081. Fix bin/hadoop on Darwin. Contributed by Michael Bieniosek.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@525263 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 年之前
父節點
當前提交
661850bdca
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      CHANGES.txt
  2. 1 1
      bin/hadoop

+ 2 - 0
CHANGES.txt

@@ -86,6 +86,8 @@ Trunk (unreleased changes)
     file belongs to the sort-input or sort-output directory.
     file belongs to the sort-input or sort-output directory.
     (Arun C Murthy via tomwhite)
     (Arun C Murthy via tomwhite)
 
 
+27. HADOOP-1081.  Fix bin/hadoop on Darwin.  (Michael Bieniosek via cutting)
+
 
 
 Release 0.12.3 (not yet released)
 Release 0.12.3 (not yet released)
 
 

+ 1 - 1
bin/hadoop

@@ -131,7 +131,7 @@ fi
 # setup 'java.library.path' for native-hadoop code if necessary
 # setup 'java.library.path' for native-hadoop code if necessary
 JAVA_LIBRARY_PATH=''
 JAVA_LIBRARY_PATH=''
 if [ -d "${HADOOP_HOME}/build/native" -o -d "${HADOOP_HOME}/lib/native" ]; then
 if [ -d "${HADOOP_HOME}/build/native" -o -d "${HADOOP_HOME}/lib/native" ]; then
-  JAVA_PLATFORM=`CLASSPATH=${CLASSPATH} ${JAVA} org.apache.hadoop.util.PlatformName`
+  JAVA_PLATFORM=`CLASSPATH=${CLASSPATH} ${JAVA} org.apache.hadoop.util.PlatformName | sed -e "s/ /_/g"`
   
   
   if [ -d "$HADOOP_HOME/build/native" ]; then
   if [ -d "$HADOOP_HOME/build/native" ]; then
     JAVA_LIBRARY_PATH=${HADOOP_HOME}/build/native/${JAVA_PLATFORM}/lib
     JAVA_LIBRARY_PATH=${HADOOP_HOME}/build/native/${JAVA_PLATFORM}/lib