YARN-5431. TimelineReader daemon start should allow to pass its own reader opts (Rohith Sharma K S via Varun Saxena)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/8d06bda3 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8d06bda3 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8d06bda3 Branch: refs/heads/HADOOP-12756 Commit: 8d06bda337db45e1c8d6a8982ef83355c86bec6a Parents: d2cbfd7 Author: Varun Saxena <varunsax...@apache.org> Authored: Thu Jul 28 08:36:09 2016 +0530 Committer: Varun Saxena <varunsax...@apache.org> Committed: Thu Jul 28 08:36:09 2016 +0530 ---------------------------------------------------------------------- hadoop-yarn-project/hadoop-yarn/bin/yarn | 2 ++ hadoop-yarn-project/hadoop-yarn/bin/yarn.cmd | 1 + hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh | 14 +++++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/8d06bda3/hadoop-yarn-project/hadoop-yarn/bin/yarn ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/bin/yarn b/hadoop-yarn-project/hadoop-yarn/bin/yarn index dbbaed3..bd91633 100755 --- a/hadoop-yarn-project/hadoop-yarn/bin/yarn +++ b/hadoop-yarn-project/hadoop-yarn/bin/yarn @@ -175,6 +175,8 @@ function yarncmd_case timelinereader) HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true" HADOOP_CLASSNAME='org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderServer' + hadoop_debug "Append YARN_TIMELINEREADER_OPTS onto HADOOP_OPTS" + HADOOP_OPTS="${HADOOP_OPTS} ${YARN_TIMELINEREADER_OPTS}" ;; timelineserver) HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true" http://git-wip-us.apache.org/repos/asf/hadoop/blob/8d06bda3/hadoop-yarn-project/hadoop-yarn/bin/yarn.cmd ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/bin/yarn.cmd b/hadoop-yarn-project/hadoop-yarn/bin/yarn.cmd index 4c36307..ca879f5 100644 --- a/hadoop-yarn-project/hadoop-yarn/bin/yarn.cmd +++ b/hadoop-yarn-project/hadoop-yarn/bin/yarn.cmd @@ -245,6 +245,7 @@ goto :eof :timelinereader set CLASSPATH=%CLASSPATH%;%YARN_CONF_DIR%\timelineserver-config\log4j.properties set CLASS=org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderServer + set YARN_OPTS=%YARN_OPTS% %YARN_TIMELINEREADER_OPTS% goto :eof :nodemanager http://git-wip-us.apache.org/repos/asf/hadoop/blob/8d06bda3/hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh b/hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh index 73aad83..d003adb 100644 --- a/hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh +++ b/hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh @@ -76,7 +76,7 @@ #export YARN_NODEMANAGER_OPTS= ### -# TimeLineServer specifc parameters +# TimeLineServer specific parameters ### # Specify the max heapsize for the timelineserver. If no units are @@ -95,6 +95,18 @@ #export YARN_TIMELINESERVER_OPTS= ### +# TimeLineReader specific parameters +### + +# Specify the JVM options to be used when starting the TimeLineReader. +# 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_TIMELINEREADER_OPTS= + +### # Web App Proxy Server specifc parameters ### --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org