YARN-6691. Update YARN daemon startup/shutdown scripts to include Router service. (Giovanni Matteo Fumarola via asuresh).
(cherry picked from commit 790cba7ab9
)
This commit is contained in:
parent
70b1a757f1
commit
433ee44b58
|
@ -46,6 +46,7 @@ function hadoop_usage
|
|||
hadoop_add_subcommand "queue" "prints queue information"
|
||||
hadoop_add_subcommand "resourcemanager" "run the ResourceManager"
|
||||
hadoop_add_subcommand "rmadmin" "admin tools"
|
||||
hadoop_add_subcommand "router" "run the Router daemon"
|
||||
hadoop_add_subcommand "scmadmin" "SharedCacheManager admin tools"
|
||||
hadoop_add_subcommand "sharedcachemanager" "run the SharedCacheManager daemon"
|
||||
hadoop_add_subcommand "timelinereader" "run the timeline reader server"
|
||||
|
@ -137,6 +138,10 @@ function yarncmd_case
|
|||
rmadmin)
|
||||
HADOOP_CLASSNAME='org.apache.hadoop.yarn.client.cli.RMAdminCLI'
|
||||
;;
|
||||
router)
|
||||
HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true"
|
||||
HADOOP_CLASSNAME='org.apache.hadoop.yarn.server.router.Router'
|
||||
;;
|
||||
scmadmin)
|
||||
HADOOP_CLASSNAME='org.apache.hadoop.yarn.client.SCMAdmin'
|
||||
;;
|
||||
|
|
|
@ -130,6 +130,10 @@ if "%1" == "--loglevel" (
|
|||
set CLASSPATH=%CLASSPATH%;%HADOOP_YARN_HOME%\yarn-server\yarn-server-applicationhistoryservice\target\classes
|
||||
)
|
||||
|
||||
if exist %HADOOP_YARN_HOME%\yarn-server\yarn-server-router\target\classes (
|
||||
set CLASSPATH=%CLASSPATH%;%HADOOP_YARN_HOME%\yarn-server\yarn-server-router\target\classes
|
||||
)
|
||||
|
||||
if exist %HADOOP_YARN_HOME%\build\test\classes (
|
||||
set CLASSPATH=%CLASSPATH%;%HADOOP_YARN_HOME%\build\test\classes
|
||||
)
|
||||
|
@ -151,7 +155,7 @@ if "%1" == "--loglevel" (
|
|||
|
||||
set yarncommands=resourcemanager nodemanager proxyserver rmadmin version jar ^
|
||||
application applicationattempt container node queue logs daemonlog historyserver ^
|
||||
timelineserver timelinereader classpath
|
||||
timelineserver timelinereader router classpath
|
||||
for %%i in ( %yarncommands% ) do (
|
||||
if %yarn-command% == %%i set yarncommand=true
|
||||
)
|
||||
|
@ -248,6 +252,12 @@ goto :eof
|
|||
set YARN_OPTS=%YARN_OPTS% %YARN_TIMELINEREADER_OPTS%
|
||||
goto :eof
|
||||
|
||||
:router
|
||||
set CLASSPATH=%CLASSPATH%;%YARN_CONF_DIR%\router-config\log4j.properties
|
||||
set CLASS=org.apache.hadoop.yarn.server.router.Router
|
||||
set YARN_OPTS=%YARN_OPTS% %HADOOP_ROUTER_OPTS%
|
||||
goto :eof
|
||||
|
||||
:nodemanager
|
||||
set CLASSPATH=%CLASSPATH%;%YARN_CONF_DIR%\nm-config\log4j.properties
|
||||
set CLASS=org.apache.hadoop.yarn.server.nodemanager.NodeManager
|
||||
|
@ -317,6 +327,7 @@ goto :eof
|
|||
@echo where COMMAND is one of:
|
||||
@echo resourcemanager run the ResourceManager
|
||||
@echo nodemanager run a nodemanager on each slave
|
||||
@echo router run the Router daemon
|
||||
@echo timelineserver run the timeline server
|
||||
@echo timelinereader run the timeline reader server
|
||||
@echo rmadmin admin tools
|
||||
|
|
|
@ -136,3 +136,15 @@
|
|||
# See ResourceManager for some examples
|
||||
#
|
||||
#export YARN_SHAREDCACHEMANAGER_OPTS=
|
||||
|
||||
###
|
||||
# Router specific parameters
|
||||
###
|
||||
|
||||
# Specify the JVM options to be used when starting the Router.
|
||||
# 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_ROUTER_OPTS=
|
||||
|
|
Loading…
Reference in New Issue