HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) - Merging r1221849 from trunk.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1221850 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ca5aa2c36f
commit
8d714e9355
|
@ -43,6 +43,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