-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspark.conf
45 lines (34 loc) · 1.61 KB
/
spark.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Spark home
hibench.spark.home /usr/lib/spark
# Spark master
# standalone mode: spark://xxx:7077
# YARN mode: yarn-client
hibench.spark.master yarn-client
# executor number and cores when running on Yarn
hibench.yarn.executor.num 64
hibench.yarn.executor.cores 4
# executor and driver memory in standalone & YARN mode
spark.executor.memory 14g
spark.driver.memory 14g
# set spark parallelism property according to hibench's parallelism value
spark.default.parallelism ${hibench.default.map.parallelism}
# set spark sql's default shuffle partitions according to hibench's parallelism value
spark.sql.shuffle.partitions ${hibench.default.shuffle.parallelism}
#======================================================
# Spark Streaming
#======================================================
# Spark streaming Batchnterval in millisecond (default 100)
hibench.streambench.spark.batchInterval 100
# Number of nodes that will receive kafka input (default: 4)
hibench.streambench.spark.receiverNumber 4
# Indicate RDD storage level. (default: 2)
# 0 = StorageLevel.MEMORY_ONLY
# 1 = StorageLevel.MEMORY_AND_DISK_SER
# other = StorageLevel.MEMORY_AND_DISK_SER_2
hibench.streambench.spark.storageLevel 2
# indicate whether to test the write ahead log new feature (default: false)
hibench.streambench.spark.enableWAL false
# if testWAL is true, this path to store stream context in hdfs shall be specified. If false, it can be empty (default: /var/tmp)
hibench.streambench.spark.checkpointPath /var/tmp
# whether to use direct approach or not (dafault: true)
hibench.streambench.spark.useDirectMode true