2011-06-12 22:00:51 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership.
|
|
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
# (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
function hadoop_usage
|
|
|
|
{
|
2014-11-13 05:41:19 +00:00
|
|
|
echo "Usage: hdfs [--config confdir] [--daemon (start|stop|status)]"
|
|
|
|
echo " [--loglevel loglevel] COMMAND"
|
2011-06-12 22:00:51 +00:00
|
|
|
echo " where COMMAND is one of:"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " balancer run a cluster balancing utility"
|
|
|
|
echo " cacheadmin configure the HDFS cache"
|
|
|
|
echo " classpath prints the class path needed to get the"
|
|
|
|
echo " Hadoop jar and the required libraries"
|
2014-09-08 17:32:06 +00:00
|
|
|
echo " crypto configure HDFS encryption zones"
|
2011-06-12 22:00:51 +00:00
|
|
|
echo " datanode run a DFS datanode"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " dfs run a filesystem command on the file system"
|
2011-06-12 22:00:51 +00:00
|
|
|
echo " dfsadmin run a DFS admin client"
|
|
|
|
echo " fetchdt fetch a delegation token from the NameNode"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " fsck run a DFS filesystem checking utility"
|
2011-06-12 22:00:51 +00:00
|
|
|
echo " getconf get config values from configuration"
|
|
|
|
echo " groups get the groups which users belong to"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " haadmin run a DFS HA admin client"
|
|
|
|
echo " jmxget get JMX exported values from NameNode or DataNode."
|
|
|
|
echo " journalnode run the DFS journalnode"
|
2013-03-18 11:36:59 +00:00
|
|
|
echo " lsSnapshottableDir list all snapshottable dirs owned by the current user"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " Use -help to see options"
|
2014-09-17 00:52:28 +00:00
|
|
|
echo " mover run a utility to move block replicas across"
|
|
|
|
echo " storage types"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " namenode run the DFS namenode"
|
|
|
|
echo " Use -format to initialize the DFS filesystem"
|
2013-08-07 22:21:42 +00:00
|
|
|
echo " nfs3 run an NFS version 3 gateway"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " oev apply the offline edits viewer to an edits file"
|
|
|
|
echo " oiv apply the offline fsimage viewer to an fsimage"
|
|
|
|
echo " oiv_legacy apply the offline fsimage viewer to a legacy fsimage"
|
|
|
|
echo " portmap run a portmap service"
|
|
|
|
echo " secondarynamenode run the DFS secondary namenode"
|
|
|
|
echo " snapshotDiff diff two snapshots of a directory or diff the"
|
|
|
|
echo " current directory contents with a snapshot"
|
2014-09-25 02:11:16 +00:00
|
|
|
echo " storagepolicies get all the existing block storage policies"
|
2014-09-30 01:10:47 +00:00
|
|
|
echo " version print the version"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " zkfc run the ZK Failover Controller daemon"
|
2011-06-12 22:00:51 +00:00
|
|
|
echo ""
|
|
|
|
echo "Most commands print help when invoked w/o parameters."
|
2014-10-31 20:15:17 +00:00
|
|
|
# There are also debug commands, but they don't show up in this listing.
|
2011-06-12 22:00:51 +00:00
|
|
|
}
|
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
# let's locate libexec...
|
|
|
|
if [[ -n "${HADOOP_PREFIX}" ]]; then
|
|
|
|
DEFAULT_LIBEXEC_DIR="${HADOOP_PREFIX}/libexec"
|
|
|
|
else
|
|
|
|
this="${BASH_SOURCE-$0}"
|
|
|
|
bin=$(cd -P -- "$(dirname -- "${this}")" >/dev/null && pwd -P)
|
|
|
|
DEFAULT_LIBEXEC_DIR="${bin}/../libexec"
|
|
|
|
fi
|
|
|
|
|
|
|
|
HADOOP_LIBEXEC_DIR="${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}"
|
|
|
|
# shellcheck disable=SC2034
|
|
|
|
HADOOP_NEW_CONFIG=true
|
|
|
|
if [[ -f "${HADOOP_LIBEXEC_DIR}/hdfs-config.sh" ]]; then
|
|
|
|
. "${HADOOP_LIBEXEC_DIR}/hdfs-config.sh"
|
|
|
|
else
|
|
|
|
echo "ERROR: Cannot execute ${HADOOP_LIBEXEC_DIR}/hdfs-config.sh." 2>&1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $# = 0 ]]; then
|
|
|
|
hadoop_exit_with_usage 1
|
2011-06-12 22:00:51 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
COMMAND=$1
|
|
|
|
shift
|
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
case ${COMMAND} in
|
|
|
|
balancer)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS=org.apache.hadoop.hdfs.server.balancer.Balancer
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_BALANCER_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_BALANCER_OPTS}"
|
|
|
|
;;
|
|
|
|
cacheadmin)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.CacheAdmin
|
|
|
|
;;
|
|
|
|
classpath)
|
|
|
|
hadoop_finalize
|
|
|
|
echo "${CLASSPATH}"
|
2013-02-22 18:36:24 +00:00
|
|
|
exit
|
2014-08-19 12:11:17 +00:00
|
|
|
;;
|
2014-08-20 01:22:42 +00:00
|
|
|
crypto)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.CryptoAdmin
|
|
|
|
;;
|
2014-08-19 12:11:17 +00:00
|
|
|
datanode)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
# Determine if we're starting a secure datanode, and
|
|
|
|
# if so, redefine appropriate variables
|
|
|
|
if [[ -n "${HADOOP_SECURE_DN_USER}" ]]; then
|
|
|
|
secure_service="true"
|
|
|
|
secure_user="${HADOOP_SECURE_DN_USER}"
|
|
|
|
|
|
|
|
# backward compatiblity
|
|
|
|
HADOOP_SECURE_PID_DIR="${HADOOP_SECURE_PID_DIR:-$HADOOP_SECURE_DN_PID_DIR}"
|
|
|
|
HADOOP_SECURE_LOG_DIR="${HADOOP_SECURE_LOG_DIR:-$HADOOP_SECURE_DN_LOG_DIR}"
|
|
|
|
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_DATANODE_OPTS onto HADOOP_OPTS"
|
|
|
|
hadoop_debug "Appending HADOOP_DN_SECURE_EXTRA_OPTS onto HADOOP_OPTS"
|
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_DATANODE_OPTS} ${HADOOP_DN_SECURE_EXTRA_OPTS}"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS="org.apache.hadoop.hdfs.server.datanode.SecureDataNodeStarter"
|
|
|
|
else
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_DATANODE_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_DATANODE_OPTS}"
|
|
|
|
CLASS='org.apache.hadoop.hdfs.server.datanode.DataNode'
|
2014-04-25 00:16:47 +00:00
|
|
|
fi
|
2014-08-19 12:11:17 +00:00
|
|
|
;;
|
2014-10-31 20:15:17 +00:00
|
|
|
debug)
|
|
|
|
CLASS='org.apache.hadoop.hdfs.tools.DebugAdmin'
|
|
|
|
;;
|
2014-08-19 12:11:17 +00:00
|
|
|
dfs)
|
|
|
|
CLASS=org.apache.hadoop.fs.FsShell
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_CLIENT_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_CLIENT_OPTS}"
|
|
|
|
;;
|
|
|
|
dfsadmin)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.DFSAdmin
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_CLIENT_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_CLIENT_OPTS}"
|
|
|
|
;;
|
|
|
|
fetchdt)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.DelegationTokenFetcher
|
|
|
|
;;
|
|
|
|
fsck)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.DFSck
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_CLIENT_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_CLIENT_OPTS}"
|
|
|
|
;;
|
|
|
|
getconf)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.GetConf
|
|
|
|
;;
|
|
|
|
groups)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.GetGroups
|
|
|
|
;;
|
|
|
|
haadmin)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.DFSHAAdmin
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Injecting TOOL_PATH into CLASSPATH"
|
|
|
|
hadoop_add_classpath "${TOOL_PATH}"
|
|
|
|
hadoop_debug "Appending HADOOP_CLIENT_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_CLIENT_OPTS}"
|
|
|
|
;;
|
|
|
|
journalnode)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS='org.apache.hadoop.hdfs.qjournal.server.JournalNode'
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_JOURNALNODE_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_JOURNALNODE_OPTS}"
|
|
|
|
;;
|
|
|
|
jmxget)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.JMXGet
|
|
|
|
;;
|
|
|
|
lsSnapshottableDir)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.snapshot.LsSnapshottableDir
|
|
|
|
;;
|
2014-09-17 00:52:28 +00:00
|
|
|
mover)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-09-17 00:52:28 +00:00
|
|
|
CLASS=org.apache.hadoop.hdfs.server.mover.Mover
|
|
|
|
hadoop_debug "Appending HADOOP_MOVER_OPTS onto HADOOP_OPTS"
|
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_MOVER_OPTS}"
|
|
|
|
;;
|
2014-08-19 12:11:17 +00:00
|
|
|
namenode)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS='org.apache.hadoop.hdfs.server.namenode.NameNode'
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_NAMENODE_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_NAMENODE_OPTS}"
|
2014-12-02 00:21:20 +00:00
|
|
|
hadoop_add_param HADOOP_OPTS hdfs.audit.logger "-Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER}"
|
2014-08-19 12:11:17 +00:00
|
|
|
;;
|
|
|
|
nfs3)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
if [[ -n "${HADOOP_PRIVILEGED_NFS_USER}" ]]; then
|
|
|
|
secure_service="true"
|
|
|
|
secure_user="${HADOOP_PRIVILEGED_NFS_USER}"
|
|
|
|
|
|
|
|
# backward compatiblity
|
|
|
|
HADOOP_SECURE_PID_DIR="${HADOOP_SECURE_PID_DIR:-$HADOOP_SECURE_NFS3_PID_DIR}"
|
|
|
|
HADOOP_SECURE_LOG_DIR="${HADOOP_SECURE_LOG_DIR:-$HADOOP_SECURE_NFS3_LOG_DIR}"
|
|
|
|
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_NFS3_OPTS onto HADOOP_OPTS"
|
|
|
|
hadoop_debug "Appending HADOOP_NFS3_SECURE_EXTRA_OPTS onto HADOOP_OPTS"
|
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_NFS3_OPTS} ${HADOOP_NFS3_SECURE_EXTRA_OPTS}"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS=org.apache.hadoop.hdfs.nfs.nfs3.PrivilegedNfsGatewayStarter
|
|
|
|
else
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_NFS3_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_NFS3_OPTS}"
|
|
|
|
CLASS=org.apache.hadoop.hdfs.nfs.nfs3.Nfs3
|
2014-04-25 00:16:47 +00:00
|
|
|
fi
|
2014-08-19 12:11:17 +00:00
|
|
|
;;
|
|
|
|
oev)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.offlineEditsViewer.OfflineEditsViewer
|
|
|
|
;;
|
|
|
|
oiv)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewerPB
|
|
|
|
;;
|
|
|
|
oiv_legacy)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewer
|
|
|
|
;;
|
|
|
|
portmap)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS=org.apache.hadoop.portmap.Portmap
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_PORTMAP_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_PORTMAP_OPTS}"
|
|
|
|
;;
|
|
|
|
secondarynamenode)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS='org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode'
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_SECONDARYNAMENODE_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_SECONDARYNAMENODE_OPTS}"
|
2014-12-02 00:21:20 +00:00
|
|
|
hadoop_add_param HADOOP_OPTS hdfs.audit.logger "-Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER}"
|
2014-08-19 12:11:17 +00:00
|
|
|
;;
|
|
|
|
snapshotDiff)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.snapshot.SnapshotDiff
|
|
|
|
;;
|
2014-09-25 02:11:16 +00:00
|
|
|
storagepolicies)
|
|
|
|
CLASS=org.apache.hadoop.hdfs.tools.GetStoragePolicies
|
|
|
|
;;
|
2014-09-30 01:10:47 +00:00
|
|
|
version)
|
|
|
|
CLASS=org.apache.hadoop.util.VersionInfo
|
|
|
|
;;
|
2014-08-19 12:11:17 +00:00
|
|
|
zkfc)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS='org.apache.hadoop.hdfs.tools.DFSZKFailoverController'
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Appending HADOOP_ZKFC_OPTS onto HADOOP_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_ZKFC_OPTS}"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
CLASS="${COMMAND}"
|
2014-09-23 19:24:23 +00:00
|
|
|
if ! hadoop_validate_classname "${CLASS}"; then
|
|
|
|
hadoop_exit_with_usage 1
|
|
|
|
fi
|
2014-08-19 12:11:17 +00:00
|
|
|
;;
|
|
|
|
esac
|
2014-04-25 00:16:47 +00:00
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
if [[ -n "${secure_service}" ]]; then
|
|
|
|
HADOOP_SECURE_USER="${secure_user}"
|
2014-09-05 18:31:49 +00:00
|
|
|
hadoop_verify_secure_prereq
|
|
|
|
hadoop_setup_secure_service
|
2014-11-19 22:02:28 +00:00
|
|
|
priv_outfile="${HADOOP_LOG_DIR}/privileged-${HADOOP_IDENT_STRING}-${COMMAND}-${HOSTNAME}.out"
|
|
|
|
priv_errfile="${HADOOP_LOG_DIR}/privileged-${HADOOP_IDENT_STRING}-${COMMAND}-${HOSTNAME}.err"
|
|
|
|
priv_pidfile="${HADOOP_PID_DIR}/privileged-${HADOOP_IDENT_STRING}-${COMMAND}.pid"
|
2014-09-05 18:31:49 +00:00
|
|
|
daemon_outfile="${HADOOP_LOG_DIR}/hadoop-${HADOOP_SECURE_USER}-${HADOOP_IDENT_STRING}-${COMMAND}-${HOSTNAME}.out"
|
|
|
|
daemon_pidfile="${HADOOP_PID_DIR}/hadoop-${HADOOP_SECURE_USER}-${HADOOP_IDENT_STRING}-${COMMAND}.pid"
|
2011-06-12 22:00:51 +00:00
|
|
|
else
|
2014-08-19 12:11:17 +00:00
|
|
|
daemon_outfile="${HADOOP_LOG_DIR}/hadoop-${HADOOP_IDENT_STRING}-${COMMAND}-${HOSTNAME}.out"
|
|
|
|
daemon_pidfile="${HADOOP_PID_DIR}/hadoop-${HADOOP_IDENT_STRING}-${COMMAND}.pid"
|
2011-06-12 22:00:51 +00:00
|
|
|
fi
|
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
if [[ "${HADOOP_DAEMON_MODE}" != "default" ]]; then
|
|
|
|
# shellcheck disable=SC2034
|
|
|
|
HADOOP_ROOT_LOGGER="${HADOOP_DAEMON_ROOT_LOGGER}"
|
|
|
|
if [[ -n "${secure_service}" ]]; then
|
|
|
|
# shellcheck disable=SC2034
|
|
|
|
HADOOP_LOGFILE="hadoop-${HADOOP_SECURE_USER}-${HADOOP_IDENT_STRING}-${COMMAND}-${HOSTNAME}.log"
|
2011-06-12 22:00:51 +00:00
|
|
|
else
|
2014-08-19 12:11:17 +00:00
|
|
|
# shellcheck disable=SC2034
|
|
|
|
HADOOP_LOGFILE="hadoop-${HADOOP_IDENT_STRING}-${COMMAND}-${HOSTNAME}.log"
|
2012-03-13 03:38:57 +00:00
|
|
|
fi
|
2014-08-19 12:11:17 +00:00
|
|
|
fi
|
2013-03-05 22:37:04 +00:00
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
hadoop_finalize
|
2013-03-05 22:37:04 +00:00
|
|
|
|
2014-11-19 22:49:16 +00:00
|
|
|
if [[ -n "${supportdaemonization}" ]]; then
|
2014-08-19 12:11:17 +00:00
|
|
|
if [[ -n "${secure_service}" ]]; then
|
|
|
|
hadoop_secure_daemon_handler \
|
|
|
|
"${HADOOP_DAEMON_MODE}" "${COMMAND}" "${CLASS}"\
|
|
|
|
"${daemon_pidfile}" "${daemon_outfile}" \
|
|
|
|
"${priv_pidfile}" "${priv_outfile}" "${priv_errfile}" "$@"
|
2014-04-25 00:16:47 +00:00
|
|
|
else
|
2014-08-19 12:11:17 +00:00
|
|
|
hadoop_daemon_handler "${HADOOP_DAEMON_MODE}" "${COMMAND}" "${CLASS}"\
|
|
|
|
"${daemon_pidfile}" "${daemon_outfile}" "$@"
|
2014-04-25 00:16:47 +00:00
|
|
|
fi
|
2014-08-19 12:11:17 +00:00
|
|
|
exit $?
|
2011-06-12 22:00:51 +00:00
|
|
|
else
|
2014-08-19 12:11:17 +00:00
|
|
|
# shellcheck disable=SC2086
|
|
|
|
hadoop_java_exec "${COMMAND}" "${CLASS}" "$@"
|
2011-06-12 22:00:51 +00:00
|
|
|
fi
|