云计算课程实验
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.1 KiB

  1. @echo off
  2. @rem Licensed to the Apache Software Foundation (ASF) under one or more
  3. @rem contributor license agreements. See the NOTICE file distributed with
  4. @rem this work for additional information regarding copyright ownership.
  5. @rem The ASF licenses this file to You under the Apache License, Version 2.0
  6. @rem (the "License"); you may not use this file except in compliance with
  7. @rem the License. You may obtain a copy of the License at
  8. @rem
  9. @rem http://www.apache.org/licenses/LICENSE-2.0
  10. @rem
  11. @rem Unless required by applicable law or agreed to in writing, software
  12. @rem distributed under the License is distributed on an "AS IS" BASIS,
  13. @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. @rem See the License for the specific language governing permissions and
  15. @rem limitations under the License.
  16. @rem User for YARN daemons
  17. if not defined HADOOP_YARN_USER (
  18. set HADOOP_YARN_USER=%yarn%
  19. )
  20. if not defined YARN_CONF_DIR (
  21. set YARN_CONF_DIR=%HADOOP_YARN_HOME%\conf
  22. )
  23. if defined YARN_HEAPSIZE (
  24. @rem echo run with Java heapsize %YARN_HEAPSIZE%
  25. set JAVA_HEAP_MAX=-Xmx%YARN_HEAPSIZE%m
  26. )
  27. if not defined YARN_LOG_DIR (
  28. set YARN_LOG_DIR=%HADOOP_YARN_HOME%\logs
  29. )
  30. if not defined YARN_LOGFILE (
  31. set YARN_LOGFILE=yarn.log
  32. )
  33. @rem default policy file for service-level authorization
  34. if not defined YARN_POLICYFILE (
  35. set YARN_POLICYFILE=hadoop-policy.xml
  36. )
  37. if not defined YARN_ROOT_LOGGER (
  38. set YARN_ROOT_LOGGER=%HADOOP_LOGLEVEL%,console
  39. )
  40. set YARN_OPTS=%YARN_OPTS% -Dhadoop.log.dir=%YARN_LOG_DIR%
  41. set YARN_OPTS=%YARN_OPTS% -Dyarn.log.dir=%YARN_LOG_DIR%
  42. set YARN_OPTS=%YARN_OPTS% -Dhadoop.log.file=%YARN_LOGFILE%
  43. set YARN_OPTS=%YARN_OPTS% -Dyarn.log.file=%YARN_LOGFILE%
  44. set YARN_OPTS=%YARN_OPTS% -Dyarn.home.dir=%HADOOP_YARN_HOME%
  45. set YARN_OPTS=%YARN_OPTS% -Dyarn.id.str=%YARN_IDENT_STRING%
  46. set YARN_OPTS=%YARN_OPTS% -Dhadoop.home.dir=%HADOOP_YARN_HOME%
  47. set YARN_OPTS=%YARN_OPTS% -Dhadoop.root.logger=%YARN_ROOT_LOGGER%
  48. set YARN_OPTS=%YARN_OPTS% -Dyarn.root.logger=%YARN_ROOT_LOGGER%
  49. if defined JAVA_LIBRARY_PATH (
  50. set YARN_OPTS=%YARN_OPTS% -Djava.library.path=%JAVA_LIBRARY_PATH%
  51. )
  52. set YARN_OPTS=%YARN_OPTS% -Dyarn.policy.file=%YARN_POLICYFILE%