YARN-5808. Add gc log options to the yarn daemon script when starting services-api. Contributed by Billie Rinaldi
This commit is contained in:
parent
d1ee95981e
commit
2c4e0f33e9
@ -49,7 +49,7 @@ function hadoop_usage
|
|||||||
hadoop_add_subcommand "router" daemon "run the Router daemon"
|
hadoop_add_subcommand "router" daemon "run the Router daemon"
|
||||||
hadoop_add_subcommand "schedulerconf" client "Updates scheduler configuration"
|
hadoop_add_subcommand "schedulerconf" client "Updates scheduler configuration"
|
||||||
hadoop_add_subcommand "scmadmin" admin "SharedCacheManager admin tools"
|
hadoop_add_subcommand "scmadmin" admin "SharedCacheManager admin tools"
|
||||||
hadoop_add_subcommand "services-api" "run slider services api"
|
hadoop_add_subcommand "servicesapi" "run slider services api"
|
||||||
hadoop_add_subcommand "sharedcachemanager" daemon "run the SharedCacheManager daemon"
|
hadoop_add_subcommand "sharedcachemanager" daemon "run the SharedCacheManager daemon"
|
||||||
hadoop_add_subcommand "slider" "run a slider app"
|
hadoop_add_subcommand "slider" "run a slider app"
|
||||||
hadoop_add_subcommand "timelinereader" client "run the timeline reader server"
|
hadoop_add_subcommand "timelinereader" client "run the timeline reader server"
|
||||||
@ -151,20 +151,20 @@ function yarncmd_case
|
|||||||
scmadmin)
|
scmadmin)
|
||||||
HADOOP_CLASSNAME='org.apache.hadoop.yarn.client.SCMAdmin'
|
HADOOP_CLASSNAME='org.apache.hadoop.yarn.client.SCMAdmin'
|
||||||
;;
|
;;
|
||||||
services-api)
|
servicesapi)
|
||||||
HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true"
|
HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true"
|
||||||
hadoop_add_classpath "${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR}/slider"'/*'
|
hadoop_add_classpath "${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR}/slider"'/*'
|
||||||
hadoop_add_classpath "${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR}/services-api"'/*'
|
hadoop_add_classpath "${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR}/services-api"'/*'
|
||||||
HADOOP_CLASSNAME='org.apache.hadoop.yarn.services.webapp.ApplicationApiWebApp'
|
HADOOP_CLASSNAME='org.apache.hadoop.yarn.services.webapp.ApplicationApiWebApp'
|
||||||
hadoop_debug "Append YARN_CLIENT_OPTS onto HADOOP_OPTS"
|
local sld="${HADOOP_YARN_HOME}/${YARN_DIR},\
|
||||||
HADOOP_OPTS="${HADOOP_OPTS} ${YARN_CLIENT_OPTS} \
|
|
||||||
-Dslider.libdir=${HADOOP_YARN_HOME}/${YARN_DIR},\
|
|
||||||
${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR},\
|
${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR},\
|
||||||
${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR}/slider,\
|
${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR}/slider,\
|
||||||
${HADOOP_HDFS_HOME}/${HDFS_DIR},\
|
${HADOOP_HDFS_HOME}/${HDFS_DIR},\
|
||||||
${HADOOP_HDFS_HOME}/${HDFS_LIB_JARS_DIR},\
|
${HADOOP_HDFS_HOME}/${HDFS_LIB_JARS_DIR},\
|
||||||
${HADOOP_COMMON_HOME}/${HADOOP_COMMON_DIR},\
|
${HADOOP_COMMON_HOME}/${HADOOP_COMMON_DIR},\
|
||||||
${HADOOP_COMMON_HOME}/${HADOOP_COMMON_LIB_JARS_DIR}"
|
${HADOOP_COMMON_HOME}/${HADOOP_COMMON_LIB_JARS_DIR}"
|
||||||
|
hadoop_translate_cygwin_path sld
|
||||||
|
hadoop_add_param HADOOP_OPTS slider.libdir "-Dslider.libdir=${sld}"
|
||||||
;;
|
;;
|
||||||
sharedcachemanager)
|
sharedcachemanager)
|
||||||
HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true"
|
HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true"
|
||||||
@ -173,15 +173,15 @@ ${HADOOP_COMMON_HOME}/${HADOOP_COMMON_LIB_JARS_DIR}"
|
|||||||
slider)
|
slider)
|
||||||
hadoop_add_classpath "${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR}/slider"'/*'
|
hadoop_add_classpath "${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR}/slider"'/*'
|
||||||
HADOOP_CLASSNAME='org.apache.slider.Slider'
|
HADOOP_CLASSNAME='org.apache.slider.Slider'
|
||||||
hadoop_debug "Append YARN_CLIENT_OPTS onto HADOOP_OPTS"
|
local sld="${HADOOP_YARN_HOME}/${YARN_DIR},\
|
||||||
HADOOP_OPTS="${HADOOP_OPTS} ${YARN_CLIENT_OPTS} \
|
|
||||||
-Dslider.libdir=${HADOOP_YARN_HOME}/${YARN_DIR},\
|
|
||||||
${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR},\
|
${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR},\
|
||||||
${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR}/slider,\
|
${HADOOP_YARN_HOME}/${YARN_LIB_JARS_DIR}/slider,\
|
||||||
${HADOOP_HDFS_HOME}/${HDFS_DIR},\
|
${HADOOP_HDFS_HOME}/${HDFS_DIR},\
|
||||||
${HADOOP_HDFS_HOME}/${HDFS_LIB_JARS_DIR},\
|
${HADOOP_HDFS_HOME}/${HDFS_LIB_JARS_DIR},\
|
||||||
${HADOOP_COMMON_HOME}/${HADOOP_COMMON_DIR},\
|
${HADOOP_COMMON_HOME}/${HADOOP_COMMON_DIR},\
|
||||||
${HADOOP_COMMON_HOME}/${HADOOP_COMMON_LIB_JARS_DIR}"
|
${HADOOP_COMMON_HOME}/${HADOOP_COMMON_LIB_JARS_DIR}"
|
||||||
|
hadoop_translate_cygwin_path sld
|
||||||
|
hadoop_add_param HADOOP_OPTS slider.libdir "-Dslider.libdir=${sld}"
|
||||||
;;
|
;;
|
||||||
timelinereader)
|
timelinereader)
|
||||||
HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true"
|
HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true"
|
||||||
|
@ -148,3 +148,15 @@
|
|||||||
# See ResourceManager for some examples
|
# See ResourceManager for some examples
|
||||||
#
|
#
|
||||||
#export YARN_ROUTER_OPTS=
|
#export YARN_ROUTER_OPTS=
|
||||||
|
|
||||||
|
###
|
||||||
|
# Services API specific parameters
|
||||||
|
###
|
||||||
|
# Specify the JVM options to be used when starting the services API.
|
||||||
|
#
|
||||||
|
# These options will be appended to the options specified as HADOOP_OPTS
|
||||||
|
# and therefore may override any similar flags set in HADOOP_OPTS
|
||||||
|
#
|
||||||
|
# See ResourceManager for some examples
|
||||||
|
#
|
||||||
|
#export YARN_SERVICESAPI_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -Xloggc:${HADOOP_LOG_DIR}/gc-servicesapi.log-$(date +'%Y%m%d%H%M')"
|
||||||
|
Loading…
Reference in New Issue
Block a user