-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathspark-history-s3-ucr.json
75 lines (75 loc) · 3.33 KB
/
spark-history-s3-ucr.json
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
{
"id": "/dev/spark/history",
"cpus": 1,
"mem": 2048,
"user": "nobody",
"cmd": "SPARK_HISTORY_OPTS=\"-Dspark.history.ui.port=${PORT_HISTORY} ${SPARK_HISTORY_OPTS} -Dspark.history.fs.logDirectory=${HISTORY_LOG_DIRECTORY}\" ./bin/spark-class org.apache.spark.deploy.history.HistoryServer",
"container": {
"type": "MESOS",
"docker": {
"forcePullImage": true,
"image": "vishnumohan/spark-dcos"
}
},
"env": {
"APPLICATION_WEB_PROXY_BASE": "/service/dev/spark/history",
"HISTORY_LOG_DIRECTORY": "s3a://vishnu-mohan/spark/history",
"AWS_ACCESS_KEY_ID": {
"secret": "secret0"
},
"AWS_SECRET_ACCESS_KEY": {
"secret": "secret1"
},
"SPARK_HISTORY_OPTS": "-Dspark.history.fs.cleaner.enabled=true -Dspark.history.fs.cleaner.interval=1d -Dspark.history.fs.cleaner.maxAge=7d"
},
"secrets": {
"secret0": {
"source": "/dev/AWS_ACCESS_KEY_ID"
},
"secret1": {
"source": "/dev/AWS_SECRET_ACCESS_KEY"
}
},
"labels": {
"DCOS_PACKAGE_IS_FRAMEWORK": "false",
"DCOS_PACKAGE_METADATA": "eyJwYWNrYWdpbmdWZXJzaW9uIjoiMy4wIiwibmFtZSI6InNwYXJrLWhpc3RvcnkiLCJ2ZXJzaW9uIjoiMi4xLjAtMSIsIm1haW50YWluZXIiOiJzdXBwb3J0QG1lc29zcGhlcmUuaW8iLCJkZXNjcmlwdGlvbiI6IlRoZSBBcGFjaGUgU3BhcmsgSGlzdG9yeSBTZ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G9hZHMubWVzb3NwaGVyZS5pby9zcGFyay9hc3NldHMvaWNvbi1zZXJ2aWNlLXNwYXJrLWxhcmdlLnBuZyJ9fQo=",
"DCOS_PACKAGE_NAME": "spark-history",
"DCOS_PACKAGE_REGISTRY_VERSION": "3.0",
"DCOS_PACKAGE_RELEASE": "0",
"DCOS_PACKAGE_SOURCE": "https://universe.mesosphere.com/repo",
"DCOS_PACKAGE_VERSION": "2.1.0-2.2.1-1",
"DCOS_SERVICE_NAME": "/dev/spark/history",
"DCOS_SERVICE_PORT_INDEX": "0",
"DCOS_SERVICE_SCHEME": "http",
"MARATHON_SINGLE_INSTANCE_APP": "true"
},
"portDefinitions": [
{
"protocol": "tcp",
"port": 0,
"name": "history",
"labels": {
"VIP_0": "/dev/spark/history:18080"
}
}
],
"healthChecks": [
{
"protocol": "MESOS_HTTP",
"path": "/",
"portIndex": 0,
"gracePeriodSeconds": 60,
"intervalSeconds": 20,
"timeoutSeconds": 10,
"maxConsecutiveFailures": 3
}
],
"upgradeStrategy": {
"maximumOverCapacity": 0,
"minimumHealthCapacity": 0
},
"unreachableStrategy": {
"expungeAfterSeconds": 0,
"inactiveAfterSeconds": 0
}
}