|
@@ -15,8 +15,9 @@
|
|
# See the License for the specific language governing permissions and
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
+# The name of the script being executed.
|
|
|
|
+HADOOP_SHELL_EXECNAME="hdfs"
|
|
MYNAME="${BASH_SOURCE-$0}"
|
|
MYNAME="${BASH_SOURCE-$0}"
|
|
-HADOOP_SHELL_EXECNAME="${MYNAME##*/}"
|
|
|
|
|
|
|
|
## @description build up the hdfs command's usage text.
|
|
## @description build up the hdfs command's usage text.
|
|
## @audience public
|
|
## @audience public
|
|
@@ -126,6 +127,10 @@ function hdfscmd_case
|
|
echo "HADOOP_TOOLS_HOME='${HADOOP_TOOLS_HOME}'"
|
|
echo "HADOOP_TOOLS_HOME='${HADOOP_TOOLS_HOME}'"
|
|
echo "HADOOP_TOOLS_DIR='${HADOOP_TOOLS_DIR}'"
|
|
echo "HADOOP_TOOLS_DIR='${HADOOP_TOOLS_DIR}'"
|
|
echo "HADOOP_TOOLS_LIB_JARS_DIR='${HADOOP_TOOLS_LIB_JARS_DIR}'"
|
|
echo "HADOOP_TOOLS_LIB_JARS_DIR='${HADOOP_TOOLS_LIB_JARS_DIR}'"
|
|
|
|
+ if [[ -n "${QATESTMODE}" ]]; then
|
|
|
|
+ echo "MYNAME=${MYNAME}"
|
|
|
|
+ echo "HADOOP_SHELL_EXECNAME=${HADOOP_SHELL_EXECNAME}"
|
|
|
|
+ fi
|
|
exit 0
|
|
exit 0
|
|
;;
|
|
;;
|
|
ec)
|
|
ec)
|
|
@@ -269,4 +274,4 @@ fi
|
|
hadoop_subcommand_opts "${HADOOP_SHELL_EXECNAME}" "${HADOOP_SUBCMD}"
|
|
hadoop_subcommand_opts "${HADOOP_SHELL_EXECNAME}" "${HADOOP_SUBCMD}"
|
|
|
|
|
|
# everything is in globals at this point, so call the generic handler
|
|
# everything is in globals at this point, so call the generic handler
|
|
-hadoop_generic_java_subcmd_handler
|
|
|
|
|
|
+hadoop_generic_java_subcmd_handler
|