Skip to content

Commit 13afe99

Browse files
committed
demo with Spark 3.4 (DE-600)
1 parent 01aaace commit 13afe99

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

demo/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ password `test`.
4242
Start Spark cluster:
4343

4444
```shell
45-
./docker/start_spark_3.3.sh
45+
./docker/start_spark_3.4.sh
4646
```
4747

4848
## Run embedded
@@ -79,9 +79,9 @@ docker run -it --rm \
7979
-v $(pwd):/demo \
8080
-v $(pwd)/docker/.ivy2:/opt/bitnami/spark/.ivy2 \
8181
--network arangodb \
82-
docker.io/bitnami/spark:3.3.2 \
82+
docker.io/bitnami/spark:3.4.0 \
8383
./bin/spark-submit --master spark://spark-master:7077 \
84-
--packages="com.arangodb:arangodb-spark-datasource-3.3_2.12:$ARANGO_SPARK_VERSION" \
84+
--packages="com.arangodb:arangodb-spark-datasource-3.4_2.12:$ARANGO_SPARK_VERSION" \
8585
--class Demo /demo/target/demo-$ARANGO_SPARK_VERSION.jar
8686
```
8787

demo/docker/start_spark_3.3.sh renamed to demo/docker/start_spark_3.4.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ docker run -d --network arangodb --ip 172.28.10.1 --name spark-master -h spark-m
99
-e SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no \
1010
-e SPARK_SSL_ENABLED=no \
1111
-v $(pwd)/docker/import:/import \
12-
docker.io/bitnami/spark:3.3.2
12+
docker.io/bitnami/spark:3.4.0
1313

1414
docker run -d --network arangodb --ip 172.28.10.11 --name spark-worker-1 -h spark-worker-1 \
1515
-e SPARK_MODE=worker \
@@ -21,7 +21,7 @@ docker run -d --network arangodb --ip 172.28.10.11 --name spark-worker-1 -h spar
2121
-e SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no \
2222
-e SPARK_SSL_ENABLED=no \
2323
-v $(pwd)/docker/import:/import \
24-
docker.io/bitnami/spark:3.3.2
24+
docker.io/bitnami/spark:3.4.0
2525

2626
docker run -d --network arangodb --ip 172.28.10.12 --name spark-worker-2 -h spark-worker-2 \
2727
-e SPARK_MODE=worker \
@@ -33,7 +33,7 @@ docker run -d --network arangodb --ip 172.28.10.12 --name spark-worker-2 -h spar
3333
-e SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no \
3434
-e SPARK_SSL_ENABLED=no \
3535
-v $(pwd)/docker/import:/import \
36-
docker.io/bitnami/spark:3.3.2
36+
docker.io/bitnami/spark:3.4.0
3737

3838
docker run -d --network arangodb --ip 172.28.10.13 --name spark-worker-3 -h spark-worker-3 \
3939
-e SPARK_MODE=worker \
@@ -45,4 +45,4 @@ docker run -d --network arangodb --ip 172.28.10.13 --name spark-worker-3 -h spar
4545
-e SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no \
4646
-e SPARK_SSL_ENABLED=no \
4747
-v $(pwd)/docker/import:/import \
48-
docker.io/bitnami/spark:3.3.2
48+
docker.io/bitnami/spark:3.4.0

demo/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@
6262
</profile>
6363
<profile>
6464
<id>spark-3.3</id>
65-
<activation>
66-
<activeByDefault>true</activeByDefault>
67-
</activation>
6865
<properties>
6966
<spark.version>3.3.2</spark.version>
7067
<spark.compat.version>3.3</spark.compat.version>
7168
</properties>
7269
</profile>
7370
<profile>
7471
<id>spark-3.4</id>
72+
<activation>
73+
<activeByDefault>true</activeByDefault>
74+
</activation>
7575
<properties>
7676
<spark.version>3.4.0</spark.version>
7777
<spark.compat.version>3.4</spark.compat.version>

demo/python-demo/demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def create_spark_session() -> SparkSession:
1818
spark = SparkSession.builder \
1919
.appName("ArangoDBPySparkDataTypesExample") \
2020
.master("local[*]") \
21-
.config("spark.jars.packages", f"com.arangodb:arangodb-spark-datasource-3.3_2.12:{arango_spark_version}") \
21+
.config("spark.jars.packages", f"com.arangodb:arangodb-spark-datasource-3.4_2.12:{arango_spark_version}") \
2222
.getOrCreate()
2323

2424
return spark

demo/python-demo/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyspark[pandas_on_spark]==3.3.2
1+
pyspark[pandas_on_spark]==3.4.0

0 commit comments

Comments
 (0)