|
| 1 | +# Template for a Spark Job Server configuration file |
| 2 | +# When deployed these settings are loaded when job server starts |
| 3 | +# |
| 4 | +# Spark Cluster / Job Server configuration |
| 5 | +spark { |
| 6 | + # Spark Master will be automatically learned via the DSE |
| 7 | + # spark.master will be passed to each job's JobContext |
| 8 | + # master = "local[4]" |
| 9 | + # master = "mesos://vm28-hulk-pub:5050" |
| 10 | + # master = "yarn-client" |
| 11 | + |
| 12 | + # Default # of CPUs for jobs to use for Spark standalone cluster |
| 13 | + job-number-cpus = 4 |
| 14 | + |
| 15 | + jobserver { |
| 16 | + port = 8090 |
| 17 | + jar-store-rootdir = /tmp/jobserver/jars |
| 18 | + |
| 19 | + jobdao = spark.jobserver.io.JobFileDAO |
| 20 | + |
| 21 | + filedao { |
| 22 | + rootdir = /tmp/spark-job-server/filedao/data |
| 23 | + } |
| 24 | + } |
| 25 | + |
| 26 | + # predefined Spark contexts |
| 27 | + # contexts { |
| 28 | + # my-low-latency-context { |
| 29 | + # num-cpu-cores = 1 # Number of cores to allocate. Required. |
| 30 | + # memory-per-node = 512m # Executor memory per node, -Xmx style eg 512m, 1G, etc. |
| 31 | + # } |
| 32 | + # # define additional contexts here |
| 33 | + # } |
| 34 | + |
| 35 | + # universal context configuration. These settings can be overridden, see README.md |
| 36 | + context-settings { |
| 37 | + num-cpu-cores = 2 # Number of cores to allocate. Required. |
| 38 | + memory-per-node = 512m # Executor memory per node, -Xmx style eg 512m, #1G, etc. |
| 39 | + |
| 40 | + # in case spark distribution should be accessed from HDFS (as opposed to being installed on every mesos slave) |
| 41 | + # spark.executor.uri = "hdfs://namenode:8020/apps/spark/spark.tgz" |
| 42 | + |
| 43 | + # uris of jars to be loaded into the classpath for this context. Uris is a string list, or a string separated by commas ',' |
| 44 | + # dependent-jar-uris = ["file:///some/path/present/in/each/mesos/slave/somepackage.jar"] |
| 45 | + |
| 46 | + # If you wish to pass any settings directly to the sparkConf as-is, add them here in passthrough, |
| 47 | + # such as hadoop connection settings that don't use the "spark." prefix |
| 48 | + passthrough { |
| 49 | + #es.nodes = "192.1.1.1" |
| 50 | + } |
| 51 | + } |
| 52 | + |
| 53 | + # This needs to match SPARK_HOME for cluster SparkContexts to be created successfully |
| 54 | + # home = "/home/spark/spark" |
| 55 | +} |
| 56 | + |
| 57 | +# Note that you can use this file to define settings not only for job server, |
| 58 | +# but for your Spark jobs as well. Spark job configuration merges with this configuration file as defaults. |
0 commit comments