HADOOP-7491. hadoop command should respect HADOOP_OPTS when given a class name. Contributed by Eli Collins

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1152389 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2011-07-29 22:13:15 +00:00
parent 28e6a4e44a
commit 8830af00ee
2 changed files with 4 additions and 0 deletions

View File

@ -294,6 +294,9 @@ Trunk (unreleased changes)
HADOOP-7474. Refactor ClientCache out of WritableRpcEngine. (jitendra) HADOOP-7474. Refactor ClientCache out of WritableRpcEngine. (jitendra)
HADOOP-7491. hadoop command should respect HADOOP_OPTS when given
a class name. (eli)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole

View File

@ -118,6 +118,7 @@ case $COMMAND in
echo "Error: No command named \`$COMMAND' was found. Perhaps you meant \`hadoop ${COMMAND#-}'" echo "Error: No command named \`$COMMAND' was found. Perhaps you meant \`hadoop ${COMMAND#-}'"
exit 1 exit 1
else else
HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS"
CLASS=$COMMAND CLASS=$COMMAND
fi fi
shift shift