Skip to content

Commit ae01f87

Browse files
author
Fabrizio Spataro
committed
added otelcol
1 parent 0ab68b2 commit ae01f87

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ The following steps will make you run your spark cluster's containers.
2929

3030
```sh
3131
docker build -t cluster-apache-spark:3.4.0 .
32+
33+
docker build --platform "linux/amd64" -f Dockerfile.otelcol -t otelcol:1.0.0 .
3234
```
3335

3436
## Run the docker-compose
@@ -82,7 +84,8 @@ Host Mount|Container Mount|Purposse
8284
---|---|---
8385
apps|/opt/spark-apps|Used to make available your app's jars on all workers & master
8486
data|/opt/spark-data| Used to make available your app's data on all workers & master
85-
events|/tmp/spark-events| Used to save spark events
87+
events/spark|/tmp/spark-events| Used to save spark events
88+
events/ot|/tmp/ot| Used to save open telemetry collector files
8689

8790
This is basically a dummy DFS created from docker Volumes...(maybe not...)
8891

docker-compose.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ services:
3232
volumes:
3333
- ./apps:/opt/spark-apps
3434
- ./data:/opt/spark-data
35-
- ./events:/tmp/spark-events
35+
- ./events/spark:/tmp/spark-events
3636
spark-worker-b:
3737
image: cluster-apache-spark:3.4.0
3838
hostname: "spark-worker-b"
@@ -52,7 +52,7 @@ services:
5252
volumes:
5353
- ./apps:/opt/spark-apps
5454
- ./data:/opt/spark-data
55-
- ./events:/tmp/spark-events
55+
- ./events/spark:/tmp/spark-events
5656
spark-history:
5757
image: cluster-apache-spark:3.4.0
5858
hostname: "spark-history"
@@ -61,7 +61,7 @@ services:
6161
volumes:
6262
- ./apps:/opt/spark-apps
6363
- ./data:/opt/spark-data
64-
- ./events:/tmp/spark-events
64+
- ./events/spark:/tmp/spark-events
6565
environment:
6666
- SPARK_LOCAL_IP=spark-history
6767
- SPARK_WORKLOAD=history
@@ -71,4 +71,16 @@ services:
7171
- "5432:5432"
7272
environment:
7373
- POSTGRES_PASSWORD=casa1234
74+
otelcol:
75+
image: otelcol:1.0.0
76+
platform: "linux/amd64"
77+
volumes:
78+
- ./OT/config.yaml:/tmp/config.yaml
79+
- ./events/ot:/tmp/ot
80+
depends_on:
81+
- spark-master
82+
- spark-worker-a
83+
- spark-worker-b
84+
- spark-history
85+
7486

0 commit comments

Comments
 (0)