Skip to content

Commit 5530060

Browse files
author
mikedickey
authored
Merge pull request #205 from splunk/support-dfs-configuration
Adding docker-compose test scenario for Splunk Enterprise with DFS.
2 parents b31fbea + 897b06d commit 5530060

File tree

1 file changed

+101
-0
lines changed

1 file changed

+101
-0
lines changed

test_scenarios/1sh1idx_dfs.yaml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
version: "3.6"
2+
3+
networks:
4+
splunknet:
5+
driver: bridge
6+
attachable: true
7+
8+
volumes:
9+
mnt-spark:
10+
mnt-jdk:
11+
12+
services:
13+
init:
14+
image: ${SPARK_IMAGE:-splunk/spark:latest}
15+
entrypoint: [ "sh", "-c" ]
16+
command: [ "cp -r /opt/jdk /mnt && cp -r /opt/spark /mnt" ]
17+
hostname: init
18+
container_name: init
19+
networks:
20+
splunknet:
21+
aliases:
22+
- init
23+
volumes:
24+
- mnt-spark:/mnt/spark
25+
- mnt-jdk:/mnt/jdk
26+
27+
sh1:
28+
networks:
29+
splunknet:
30+
aliases:
31+
- sh1
32+
image: ${SPLUNK_IMAGE:-splunk/splunk:latest}
33+
command: start
34+
hostname: sh1
35+
container_name: sh1
36+
environment:
37+
- SPLUNK_START_ARGS=--accept-license
38+
- SPLUNK_SEARCH_HEAD_URL=sh1
39+
- SPLUNK_INDEXER_URL=idx1
40+
- SPLUNK_ROLE=splunk_search_head
41+
- SPLUNK_LICENSE_URI
42+
- SPLUNK_PASSWORD
43+
- DEBUG=true
44+
- SPLUNK_ENABLE_DFS=true
45+
- SPARK_MASTER_HOST=spark-master
46+
- SPARK_MASTER_WEBUI_PORT=8009
47+
- JAVA_HOME=/mnt/jdk
48+
- SPARK_HOME=/mnt/spark
49+
- SPLUNK_DFW_NUM_SLOTS_ENABLED=false
50+
ports:
51+
- 8000
52+
- 8089
53+
depends_on:
54+
- init
55+
volumes:
56+
- mnt-spark:/mnt/spark
57+
- mnt-jdk:/mnt/jdk
58+
59+
idx1:
60+
networks:
61+
splunknet:
62+
aliases:
63+
- idx1
64+
image: ${SPLUNK_IMAGE:-splunk/splunk:latest}
65+
command: start
66+
hostname: idx1
67+
container_name: idx1
68+
environment:
69+
- SPLUNK_START_ARGS=--accept-license
70+
- SPLUNK_SEARCH_HEAD_URL=sh1
71+
- SPLUNK_INDEXER_URL=idx1
72+
- SPLUNK_ROLE=splunk_indexer
73+
- SPLUNK_LICENSE_URI
74+
- SPLUNK_PASSWORD
75+
- DEBUG=true
76+
ports:
77+
- 8000
78+
- 8089
79+
80+
spark-master:
81+
image: ${SPARK_IMAGE:-splunk/spark:latest}
82+
hostname: spark-master
83+
container_name: spark-master
84+
networks:
85+
splunknet:
86+
aliases:
87+
- spark-master
88+
environment:
89+
- SPLUNK_ROLE=splunk_spark_master
90+
91+
spark-worker:
92+
image: ${SPARK_IMAGE:-splunk/spark:latest}
93+
hostname: spark-worker
94+
container_name: spark-worker
95+
networks:
96+
splunknet:
97+
aliases:
98+
- spark-worker
99+
environment:
100+
- SPLUNK_ROLE=splunk_spark_worker
101+
- SPARK_MASTER_HOSTNAME=spark-master

0 commit comments

Comments
 (0)