HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1221849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6b4f40cbf9
commit
55ad01711e
@ -189,6 +189,9 @@ Release 0.23.1 - Unreleased
|
|||||||
HADOOP-7912. test-patch should run eclipse:eclipse to verify that it does
|
HADOOP-7912. test-patch should run eclipse:eclipse to verify that it does
|
||||||
not break again. (Robert Joseph Evans via tomwhite)
|
not break again. (Robert Joseph Evans via tomwhite)
|
||||||
|
|
||||||
|
HADOOP-7890. Redirect hadoop script's deprecation message to stderr.
|
||||||
|
(Koji Knoguchi via mahadev)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -51,9 +51,9 @@ COMMAND=$1
|
|||||||
case $COMMAND in
|
case $COMMAND in
|
||||||
#hdfs commands
|
#hdfs commands
|
||||||
namenode|secondarynamenode|datanode|dfs|dfsadmin|fsck|balancer)
|
namenode|secondarynamenode|datanode|dfs|dfsadmin|fsck|balancer)
|
||||||
echo "DEPRECATED: Use of this script to execute hdfs command is deprecated."
|
echo "DEPRECATED: Use of this script to execute hdfs command is deprecated." 1>&2
|
||||||
echo "Instead use the hdfs command for it."
|
echo "Instead use the hdfs command for it." 1>&2
|
||||||
echo ""
|
echo "" 1>&2
|
||||||
#try to locate hdfs and if present, delegate to it.
|
#try to locate hdfs and if present, delegate to it.
|
||||||
if [ -f "${HADOOP_HDFS_HOME}"/bin/hdfs ]; then
|
if [ -f "${HADOOP_HDFS_HOME}"/bin/hdfs ]; then
|
||||||
exec "${HADOOP_HDFS_HOME}"/bin/hdfs $*
|
exec "${HADOOP_HDFS_HOME}"/bin/hdfs $*
|
||||||
|
Loading…
Reference in New Issue
Block a user