zeppelin-env.cmd 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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
  17. REM set JAVA_HOME=
  18. REM set MASTER= REM Spark master url. eg. spark://master_addr:7077. Leave empty if you want to use local mode.
  19. REM set ZEPPELIN_JAVA_OPTS REM Additional jvm options. for example, set ZEPPELIN_JAVA_OPTS="-Dspark.executor.memory=8g -Dspark.cores.max=16"
  20. REM set ZEPPELIN_MEM REM Zeppelin jvm mem options Default -Xms1024m -Xmx1024m -XX:MaxPermSize=512m
  21. REM set ZEPPELIN_INTP_MEM REM zeppelin interpreter process jvm mem options. Default -Xmx1024m -Xms1024m -XX:MaxPermSize=512m
  22. REM set ZEPPELIN_INTP_JAVA_OPTS REM zeppelin interpreter process jvm options.
  23. REM set ZEPPELIN_LOG_DIR REM Where log files are stored. PWD by default.
  24. REM set ZEPPELIN_PID_DIR REM The pid files are stored. /tmp by default.
  25. REM set ZEPPELIN_WAR_TEMPDIR REM The location of jetty temporary directory.
  26. REM set ZEPPELIN_NOTEBOOK_DIR REM Where notebook saved
  27. REM set ZEPPELIN_NOTEBOOK_HOMESCREEN REM Id of notebook to be displayed in homescreen. ex) 2A94M5J1Z
  28. REM set ZEPPELIN_NOTEBOOK_HOMESCREEN_HIDE REM hide homescreen notebook from list when this value set to "true". default "false"
  29. REM set ZEPPELIN_NOTEBOOK_S3_BUCKET REM Bucket where notebook saved
  30. REM set ZEPPELIN_NOTEBOOK_S3_USER REM User in bucket where notebook saved. For example bucket/user/notebook/2A94M5J1Z/note.json
  31. REM set ZEPPELIN_NOTEBOOK_S3_ENDPOINT REM Endpoint of the bucket
  32. REM set ZEPPELIN_NOTEBOOK_S3_KMS_KEY_ID REM AWS KMS key ID
  33. REM set ZEPPELIN_NOTEBOOK_S3_KMS_KEY_REGION REM AWS KMS key region
  34. REM set ZEPPELIN_IDENT_STRING REM A string representing this instance of zeppelin. $USER by default.
  35. REM set ZEPPELIN_NICENESS REM The scheduling priority for daemons. Defaults to 0.
  36. REM set ZEPPELIN_INTERPRETER_LOCALREPO REM Local repository for interpreter's additional dependency loading
  37. REM set ZEPPELIN_INTERPRETER_DEP_MVNREPO REM Maven principal repository for interpreter's additional dependency loading
  38. REM set ZEPPELIN_HELIUM_NPM_REGISTRY REM Remote Npm registry for Helium dependency loader
  39. REM set ZEPPELIN_NOTEBOOK_STORAGE REM Refers to pluggable notebook storage class, can have two classes simultaneously with a sync between them (e.g. local and remote).
  40. REM set ZEPPELIN_NOTEBOOK_ONE_WAY_SYNC REM If there are multiple notebook storages, should we treat the first one as the only source of truth?
  41. REM Spark interpreter configuration
  42. REM Use provided spark installation
  43. REM defining SPARK_HOME makes Zeppelin run spark interpreter process using spark-submit
  44. REM
  45. REM set SPARK_HOME REM (required) When it is defined, load it instead of Zeppelin embedded Spark libraries
  46. REM set SPARK_SUBMIT_OPTIONS REM (optional) extra options to pass to spark submit. eg) "--driver-memory 512M --executor-memory 1G".
  47. REM set SPARK_APP_NAME REM (optional) The name of spark application.
  48. REM Use embedded spark binaries
  49. REM without SPARK_HOME defined, Zeppelin still able to run spark interpreter process using embedded spark binaries.
  50. REM however, it is not encouraged when you can define SPARK_HOME
  51. REM
  52. REM Options read in YARN client mode
  53. REM set HADOOP_CONF_DIR REM yarn-site.xml is located in configuration directory in HADOOP_CONF_DIR.
  54. REM Pyspark (supported with Spark 1.2.1 and above)
  55. REM To configure pyspark, you need to set spark distribution's path to 'spark.home' property in Interpreter setting screen in Zeppelin GUI
  56. REM set PYSPARK_PYTHON REM path to the python command. must be the same path on the driver(Zeppelin) and all workers.
  57. REM set PYTHONPATH
  58. REM Spark interpreter options
  59. REM
  60. REM set ZEPPELIN_SPARK_USEHIVECONTEXT REM Use HiveContext instead of SQLContext if set true. true by default.
  61. REM set ZEPPELIN_SPARK_CONCURRENTSQL REM Execute multiple SQL concurrently if set true. false by default.
  62. REM set ZEPPELIN_SPARK_IMPORTIMPLICIT REM Import implicits, UDF collection, and sql if set true. true by default.
  63. REM set ZEPPELIN_SPARK_MAXRESULT REM Max number of Spark SQL result to display. 1000 by default.
  64. REM ZeppelinHub connection configuration
  65. REM
  66. REM set ZEPPELINHUB_API_ADDRESS REM Refers to the address of the ZeppelinHub service in use
  67. REM set ZEPPELINHUB_API_TOKEN REM Refers to the Zeppelin instance token of the user
  68. REM set ZEPPELINHUB_USER_KEY REM Optional, when using Zeppelin with authentication.