forked from kyu-sz/LaS-VPE-Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspark-defaults.conf
76 lines (61 loc) · 3.25 KB
/
spark-defaults.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Default system properties included when running spark-submit.
# This is useful for setting default environmental settings.
# Example:
# spark.master spark://master:7077
# spark.eventLog.enabled true
# spark.eventLog.dir hdfs://namenode:8021/directory
# spark.serializer org.apache.spark.serializer.KryoSerializer
# spark.driver.memory 5g
# spark.executor.extraJavaOptions -XX:+PrintGCDetails -Dkey=value -Dnumbers="one two three"
#spark.driver.extraJavaOptions -XX:MaxPermSize=6G -XX:+UseConcMarkSweepGC -Dlog4j.configuration=log4j.properties
spark.driver.cores 1
spark.driver.memory 2G
spark.dynamicAllocation.enabled false
spark.dynamicAllocation.minExecutors 2
spark.dynamicAllocation.maxExecutors 10
# spark.executor.extraJavaOptions -XX: +UseConcMarkSweepGC -Dlog4j.configuration=log4j.properties
# The number of executors for static allocation. With spark.dynamicAllocation.enabled, the initial set of executors
# will be at least this large.
spark.executor.instances 2
spark.executor.memory 8G
# Maximum allowable size of Kryo serialization buffer.
# This must be larger than any object ou attempt to serialize.
# Increase this if you get a "buffer limit exceeded" exception inside Kryo.
spark.kryoserializer.buffer.max 64m
spark.locality.wait 100ms
spark.rdd.compress true
spark.scheduler.mode FAIR
spark.scheduler.pool vpe
spark.serializer org.apache.spark.serializer.KryoSerializer
spark.shuffle.consolidateFiles true
spark.shuffle.service.enabled true
spark.sql.tungsten.enabled false
spark.sql.codegen false
spark.sql.unsafe.enabled false
spark.streaming.backpressure.enabled true
spark.streaming.blockInterval 100ms
spark.streaming.dynamicAllocation.enabled false
spark.streaming.dynamicAllocation.minExecutors 2
spark.streaming.dynamicAllocation.maxExecutors 10
spark.streaming.dynamicAllocation.debug true
spark.streaming.dynamicAllocation.delay.rounds 10
spark.streaming.driver.writeAheadLog.closeFileAfterWrite true
spark.streaming.receiver.writeAheadLog.enable true
spark.streaming.receiver.writeAheadLog.closeFileAfterWrite true
spark.ui.showConsoleProgress false