MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +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: yarn [--config confdir] [--daemon (start|stop|status)]"
|
|
|
|
echo " [--loglevel loglevel] COMMAND"
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
echo "where COMMAND is one of:"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " application prints application(s) report/kill application"
|
|
|
|
echo " applicationattempt prints applicationattempt(s) report"
|
|
|
|
echo " classpath prints the class path needed to get the"
|
|
|
|
echo " Hadoop jar and the required libraries"
|
|
|
|
echo " container prints container(s) report"
|
|
|
|
echo " daemonlog get/set the log level for each daemon"
|
|
|
|
echo " jar <jar> run a jar file"
|
|
|
|
echo " logs dump container logs"
|
|
|
|
echo " node prints node report(s)"
|
2014-07-22 01:30:36 +00:00
|
|
|
echo " nodemanager run a nodemanager on each slave"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " proxyserver run the web app proxy server"
|
2014-11-07 04:48:31 +00:00
|
|
|
echo " queue prints queue information"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " resourcemanager run the ResourceManager"
|
|
|
|
echo " resourcemanager -format-state-store deletes the RMStateStore"
|
2014-07-22 01:30:36 +00:00
|
|
|
echo " rmadmin admin tools"
|
2014-10-01 02:01:47 +00:00
|
|
|
echo " sharedcachemanager run the SharedCacheManager daemon"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo " timelineserver run the timeline server"
|
2014-07-22 01:30:36 +00:00
|
|
|
echo " version print the version"
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
echo " or"
|
2014-07-22 01:30:36 +00:00
|
|
|
echo " CLASSNAME run the class named CLASSNAME"
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
echo "Most commands print help when invoked w/o parameters."
|
2013-02-22 18:36:24 +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}/yarn-config.sh" ]]; then
|
|
|
|
. "${HADOOP_LIBEXEC_DIR}/yarn-config.sh"
|
|
|
|
else
|
|
|
|
echo "ERROR: Cannot execute ${HADOOP_LIBEXEC_DIR}/yarn-config.sh." 2>&1
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
# if no args specified, show usage
|
|
|
|
if [[ $# = 0 ]]; then
|
|
|
|
hadoop_exit_with_usage 1
|
|
|
|
fi
|
|
|
|
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
# get arguments
|
|
|
|
COMMAND=$1
|
|
|
|
shift
|
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
case "${COMMAND}" in
|
|
|
|
application|applicationattempt|container)
|
|
|
|
CLASS=org.apache.hadoop.yarn.client.cli.ApplicationCLI
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Append YARN_CLIENT_OPTS onto YARN_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_CLIENT_OPTS}"
|
2014-08-21 21:33:35 +00:00
|
|
|
set -- "${COMMAND}" "$@"
|
2014-08-19 12:11:17 +00:00
|
|
|
;;
|
|
|
|
classpath)
|
|
|
|
hadoop_finalize
|
|
|
|
echo "${CLASSPATH}"
|
2013-02-22 18:36:24 +00:00
|
|
|
exit
|
2014-08-19 12:11:17 +00:00
|
|
|
;;
|
|
|
|
daemonlog)
|
|
|
|
CLASS=org.apache.hadoop.log.LogLevel
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Append YARN_CLIENT_OPTS onto YARN_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_CLIENT_OPTS}"
|
|
|
|
;;
|
|
|
|
jar)
|
|
|
|
CLASS=org.apache.hadoop.util.RunJar
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Append YARN_CLIENT_OPTS onto YARN_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_CLIENT_OPTS}"
|
|
|
|
;;
|
|
|
|
historyserver)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
echo "DEPRECATED: Use of this command to start the timeline server is deprecated." 1>&2
|
|
|
|
echo "Instead use the timelineserver command for it." 1>&2
|
|
|
|
echo "Starting the History Server anyway..." 1>&2
|
|
|
|
CLASS='org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer'
|
|
|
|
;;
|
|
|
|
logs)
|
2014-09-12 17:35:41 +00:00
|
|
|
CLASS=org.apache.hadoop.yarn.client.cli.LogsCLI
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Append YARN_CLIENT_OPTS onto YARN_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_CLIENT_OPTS}"
|
|
|
|
;;
|
|
|
|
node)
|
|
|
|
CLASS=org.apache.hadoop.yarn.client.cli.NodeCLI
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Append YARN_CLIENT_OPTS onto YARN_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_CLIENT_OPTS}"
|
|
|
|
;;
|
|
|
|
nodemanager)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS='org.apache.hadoop.yarn.server.nodemanager.NodeManager'
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Append YARN_NODEMANAGER_OPTS onto YARN_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_NODEMANAGER_OPTS}"
|
|
|
|
if [[ -n "${YARN_NODEMANAGER_HEAPSIZE}" ]]; then
|
|
|
|
JAVA_HEAP_MAX="-Xmx${YARN_NODEMANAGER_HEAPSIZE}m"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
proxyserver)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS='org.apache.hadoop.yarn.server.webproxy.WebAppProxyServer'
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Append YARN_PROXYSERVER_OPTS onto YARN_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_PROXYSERVER_OPTS}"
|
|
|
|
if [[ -n "${YARN_PROXYSERVER_HEAPSIZE}" ]]; then
|
|
|
|
JAVA_HEAP_MAX="-Xmx${YARN_PROXYSERVER_HEAPSIZE}m"
|
|
|
|
fi
|
|
|
|
;;
|
2014-11-07 04:48:31 +00:00
|
|
|
queue)
|
|
|
|
CLASS=org.apache.hadoop.yarn.client.cli.QueueCLI
|
|
|
|
hadoop_debug "Append YARN_CLIENT_OPTS onto YARN_OPTS"
|
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_CLIENT_OPTS}"
|
|
|
|
;;
|
2014-08-19 12:11:17 +00:00
|
|
|
resourcemanager)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS='org.apache.hadoop.yarn.server.resourcemanager.ResourceManager'
|
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_RESOURCEMANAGER_OPTS}"
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Append YARN_RESOURCEMANAGER_OPTS onto YARN_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
if [[ -n "${YARN_RESOURCEMANAGER_HEAPSIZE}" ]]; then
|
|
|
|
JAVA_HEAP_MAX="-Xmx${YARN_RESOURCEMANAGER_HEAPSIZE}m"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
rmadmin)
|
|
|
|
CLASS='org.apache.hadoop.yarn.client.cli.RMAdminCLI'
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Append YARN_CLIENT_OPTS onto YARN_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_CLIENT_OPTS}"
|
|
|
|
;;
|
|
|
|
timelineserver)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-08-19 12:11:17 +00:00
|
|
|
CLASS='org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer'
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Append YARN_TIMELINESERVER_OPTS onto YARN_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_TIMELINESERVER_OPTS}"
|
|
|
|
if [[ -n "${YARN_TIMELINESERVER_HEAPSIZE}" ]]; then
|
|
|
|
JAVA_HEAP_MAX="-Xmx${YARN_TIMELINESERVER_HEAPSIZE}m"
|
|
|
|
fi
|
|
|
|
;;
|
2014-10-01 02:01:47 +00:00
|
|
|
sharedcachemanager)
|
2014-11-19 22:49:16 +00:00
|
|
|
supportdaemonization="true"
|
2014-10-01 02:01:47 +00:00
|
|
|
CLASS='org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager'
|
|
|
|
YARN_OPTS="$YARN_OPTS $YARN_SHAREDCACHEMANAGER_OPTS"
|
|
|
|
;;
|
2014-08-19 12:11:17 +00:00
|
|
|
version)
|
|
|
|
CLASS=org.apache.hadoop.util.VersionInfo
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Append YARN_CLIENT_OPTS onto YARN_OPTS"
|
2014-08-19 12:11:17 +00:00
|
|
|
YARN_OPTS="${YARN_OPTS} ${YARN_CLIENT_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
|
|
|
;;
|
2013-02-22 18:36:24 +00:00
|
|
|
esac
|
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
# set HADOOP_OPTS to YARN_OPTS so that we can use
|
|
|
|
# finalize, etc, without doing anything funky
|
2014-08-28 17:37:23 +00:00
|
|
|
hadoop_debug "Resetting HADOOP_OPTS=YARN_OPTS"
|
|
|
|
# shellcheck disable=SC2034
|
2014-08-19 12:11:17 +00:00
|
|
|
HADOOP_OPTS="${YARN_OPTS}"
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
|
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"
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
if [[ "${HADOOP_DAEMON_MODE}" != "default" ]]; then
|
|
|
|
# shellcheck disable=SC2034
|
|
|
|
HADOOP_ROOT_LOGGER="${HADOOP_DAEMON_ROOT_LOGGER}"
|
|
|
|
YARN_ROOT_LOGGER="${HADOOP_DAEMON_ROOT_LOGGER}"
|
|
|
|
HADOOP_LOGFILE="hadoop-${HADOOP_IDENT_STRING}-${COMMAND}-${HOSTNAME}.log"
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
fi
|
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
hadoop_add_param HADOOP_OPTS Xmx "${JAVA_HEAP_MAX}"
|
2011-10-17 02:14:10 +00:00
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
# Add YARN custom options to comamnd line in case someone actaully
|
|
|
|
# used these.
|
|
|
|
#
|
|
|
|
# Note that we are replacing ' ' with '\ ' so that when we exec
|
|
|
|
# stuff it works
|
|
|
|
#
|
|
|
|
hadoop_add_param HADOOP_OPTS yarn.log.dir "-Dyarn.log.dir=${HADOOP_LOG_DIR/ /\ }"
|
|
|
|
hadoop_add_param HADOOP_OPTS yarn.log.file "-Dyarn.log.file=${HADOOP_LOGFILE/ /\ }"
|
|
|
|
hadoop_add_param HADOOP_OPTS yarn.home.dir "-Dyarn.home.dir=${HADOOP_YARN_HOME/ /\ }"
|
|
|
|
hadoop_add_param HADOOP_OPTS yarn.root.logger "-Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
|
2014-08-19 12:11:17 +00:00
|
|
|
hadoop_finalize
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +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-02-27 02:18:34 +00:00
|
|
|
else
|
2014-08-19 12:11:17 +00:00
|
|
|
hadoop_daemon_handler "${HADOOP_DAEMON_MODE}" "${COMMAND}" "${CLASS}" \
|
|
|
|
"${daemon_pidfile}" "${daemon_outfile}" "$@"
|
2014-02-27 02:18:34 +00:00
|
|
|
fi
|
2014-08-19 12:11:17 +00:00
|
|
|
exit $?
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
else
|
2014-08-19 12:11:17 +00:00
|
|
|
hadoop_java_exec "${COMMAND}" "${CLASS}" "$@"
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
fi
|