HADOOP-11983. HADOOP_USER_CLASSPATH_FIRST works the opposite of what it is supposed to do (Sangjin Lee via aw)

This commit is contained in:
Allen Wittenauer 2015-05-28 11:29:58 -07:00
parent 5df1fadf87
commit 08ae87f6ba
2 changed files with 5 additions and 2 deletions

View File

@ -474,6 +474,9 @@ Trunk (Unreleased)
HADOOP-11406. xargs -P is not portable (Kengo Seki via aw)
HADOOP-11983. HADOOP_USER_CLASSPATH_FIRST works the opposite of what it is
supposed to do (Sangjin Lee via aw)
OPTIMIZATIONS
HADOOP-7761. Improve the performance of raw comparisons. (todd)

View File

@ -761,11 +761,11 @@ function hadoop_add_to_classpath_userpath
if [[ -z "${HADOOP_USE_CLIENT_CLASSLOADER}" ]]; then
if [[ -z "${HADOOP_USER_CLASSPATH_FIRST}" ]]; then
for ((i=j; i>=0; i--)); do
hadoop_add_classpath "${array[$i]}" before
hadoop_add_classpath "${array[$i]}" after
done
else
for ((i=0; i<=j; i++)); do
hadoop_add_classpath "${array[$i]}" after
hadoop_add_classpath "${array[$i]}" before
done
fi
fi