livy-env.sh 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env bash
  2. #
  3. # Licensed to Cloudera, Inc. under one
  4. # or more contributor license agreements. See the NOTICE file
  5. # distributed with this work for additional information
  6. # regarding copyright ownership. Cloudera, Inc. licenses this file
  7. # to you under the Apache License, Version 2.0 (the
  8. # "License"); you may not use this file except in compliance
  9. # with the License. You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS,
  15. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. # See the License for the specific language governing permissions and
  17. # limitations under the License.
  18. #
  19. # LIVY ENVIRONMENT VARIABLES
  20. #
  21. # - JAVA_HOME Java runtime to use. By default use "java" from PATH.
  22. # - HADOOP_CONF_DIR Directory containing the Hadoop / YARN configuration to use.
  23. # - SPARK_HOME Spark which you would like to use in Livy.
  24. # - SPARK_CONF_DIR Optional directory where the Spark configuration lives.
  25. # (Default: $SPARK_HOME/conf)
  26. # - LIVY_LOG_DIR Where log files are stored. (Default: ${LIVY_HOME}/logs)
  27. # - LIVY_PID_DIR Where the pid file is stored. (Default: /tmp)
  28. # - LIVY_SERVER_JAVA_OPTS Java Opts for running livy server (You can set jvm related setting here,
  29. # like jvm memory/gc algorithm and etc.)
  30. # - LIVY_IDENT_STRING A name that identifies the Livy server instance, used to generate log file
  31. # names. (Default: name of the user starting Livy).
  32. # - LIVY_MAX_LOG_FILES Max number of log file to keep in the log directory. (Default: 5.)
  33. # - LIVY_NICENESS Niceness of the Livy server process when running in the background. (Default: 0.)