diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 96e05b618ae..e4398145d42 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -43,6 +43,9 @@ Release 0.23.1 - Unreleased HADOOP-7912. test-patch should run eclipse:eclipse to verify that it does not break again. (Robert Joseph Evans via tomwhite) + HADOOP-7890. Redirect hadoop script's deprecation message to stderr. + (Koji Knoguchi via mahadev) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-common-project/hadoop-common/src/main/bin/hadoop b/hadoop-common-project/hadoop-common/src/main/bin/hadoop index 9e92b5c2cea..4ca78972aa3 100755 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop @@ -51,9 +51,9 @@ COMMAND=$1 case $COMMAND in #hdfs commands namenode|secondarynamenode|datanode|dfs|dfsadmin|fsck|balancer) - echo "DEPRECATED: Use of this script to execute hdfs command is deprecated." - echo "Instead use the hdfs command for it." - echo "" + echo "DEPRECATED: Use of this script to execute hdfs command is deprecated." 1>&2 + echo "Instead use the hdfs command for it." 1>&2 + echo "" 1>&2 #try to locate hdfs and if present, delegate to it. if [ -f "${HADOOP_HDFS_HOME}"/bin/hdfs ]; then exec "${HADOOP_HDFS_HOME}"/bin/hdfs $*