diff --git hadoop-yarn-project/hadoop-yarn/conf/yarn-env.cmd hadoop-yarn-project/hadoop-yarn/conf/yarn-env.cmd index d863c1e..55445ba 100644 --- hadoop-yarn-project/hadoop-yarn/conf/yarn-env.cmd +++ hadoop-yarn-project/hadoop-yarn/conf/yarn-env.cmd @@ -28,6 +28,47 @@ if defined YARN_HEAPSIZE ( set JAVA_HEAP_MAX=-Xmx%YARN_HEAPSIZE%m ) +@rem Resource Manager specific parameters + +@rem Specify the max Heapsize for the ResourceManager using a numerical value +@rem in the scale of MB. For example, to specify an jvm option of -Xmx1000m, set +@rem the value to 1000. +@rem This value will be overridden by an Xmx setting specified in either YARN_OPTS +@rem and/or YARN_RESOURCEMANAGER_OPTS. +@rem If not specified, the default value will be picked from either YARN_HEAPMAX +@rem or JAVA_HEAP_MAX with YARN_HEAPMAX as the preferred option of the two. +@rem set YARN_RESOURCEMANAGER_HEAPSIZE=1000 + +@rem Specify the max Heapsize for the HistoryManager using a numerical value +@rem in the scale of MB. For example, to specify an jvm option of -Xmx1000m, set +@rem the value to 1000. +@rem This value will be overridden by an Xmx setting specified in either YARN_OPTS +@rem and/or YARN_HISTORYSERVER_OPTS. +@rem If not specified, the default value will be picked from either YARN_HEAPMAX +@rem or JAVA_HEAP_MAX with YARN_HEAPMAX as the preferred option of the two. +@rem set YARN_HISTORYSERVER_HEAPSIZE=1000 + +@rem Specify the JVM options to be used when starting the ResourceManager. +@rem These options will be appended to the options specified as YARN_OPTS +@rem and therefore may override any similar flags set in YARN_OPTS +@rem set YARN_RESOURCEMANAGER_OPTS= + +@rem Node Manager specific parameters + +@rem Specify the max Heapsize for the NodeManager using a numerical value +@rem in the scale of MB. For example, to specify an jvm option of -Xmx1000m, set +@rem the value to 1000. +@rem This value will be overridden by an Xmx setting specified in either YARN_OPTS +@rem and/or YARN_NODEMANAGER_OPTS. +@rem If not specified, the default value will be picked from either YARN_HEAPMAX +@rem or JAVA_HEAP_MAX with YARN_HEAPMAX as the preferred option of the two. +@rem set YARN_NODEMANAGER_HEAPSIZE=1000 + +@rem Specify the JVM options to be used when starting the NodeManager. +@rem These options will be appended to the options specified as YARN_OPTS +@rem and therefore may override any similar flags set in YARN_OPTS +@rem set YARN_NODEMANAGER_OPTS= + if not defined YARN_LOG_DIR ( set YARN_LOG_DIR=%HADOOP_YARN_HOME%\logs )