|
@@ -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 "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.
|
|
#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 $*
|