File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,9 @@ Trunk (unreleased changes)
208208 HADOOP-6906. FileContext copy() utility doesn't work with recursive
209209 copying of directories. (vinod k v via mahadev)
210210
211+ HADOOP-6453. Hadoop wrapper script shouldn't ignore an existing
212+ JAVA_LIBRARY_PATH. (Chad Metcalf via jghoman)
213+
211214Release 0.21.0 - Unreleased
212215
213216 INCOMPATIBLE CHANGES
Original file line number Diff line number Diff line change @@ -182,14 +182,20 @@ unset IFS
182182if $cygwin ; then
183183 HADOOP_COMMON_HOME=` cygpath -w " $HADOOP_COMMON_HOME " `
184184 HADOOP_LOG_DIR=` cygpath -w " $HADOOP_LOG_DIR " `
185+ JAVA_LIBRARY_PATH=` cygpath -w " $JAVA_LIBRARY_PATH " `
185186fi
187+
186188# setup 'java.library.path' for native-hadoop code if necessary
187- JAVA_LIBRARY_PATH= ' '
189+
188190if [ -d " ${HADOOP_COMMON_HOME} /build/native" -o -d " ${HADOOP_COMMON_HOME} /lib/native" ]; then
189191 JAVA_PLATFORM=` CLASSPATH=${CLASSPATH} ${JAVA} -Xmx32m ${HADOOP_JAVA_PLATFORM_OPTS} org.apache.hadoop.util.PlatformName | sed -e " s/ /_/g" `
190192
191193 if [ -d " $HADOOP_COMMON_HOME /build/native" ]; then
192- JAVA_LIBRARY_PATH=${HADOOP_COMMON_HOME} /build/native/${JAVA_PLATFORM} /lib
194+ if [ " x$JAVA_LIBRARY_PATH " != " x" ]; then
195+ JAVA_LIBRARY_PATH=${JAVA_LIBRARY_PATH} :${HADOOP_CORE_HOME} /build/native/${JAVA_PLATFORM} /lib
196+ else
197+ JAVA_LIBRARY_PATH=${HADOOP_CORE_HOME} /build/native/${JAVA_PLATFORM} /lib
198+ fi
193199 fi
194200
195201 if [ -d " ${HADOOP_COMMON_HOME} /lib/native" ]; then
You can’t perform that action at this time.
0 commit comments