Skip to content

Commit 1ae9f18

Browse files
committed
Bump compiler to 3.12.1
Upgrade Spark to 3.4.2 Update GHAs to use JDK11 Update Dockerfile image version to 11-jammy Temporary Docker image to support JDK11
1 parent 07ef7eb commit 1ae9f18

File tree

9 files changed

+31
-22
lines changed

9 files changed

+31
-22
lines changed

.github/workflows/cdm-integrationtest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
CDM-Integration-Test:
1515
strategy:
1616
matrix:
17-
jdk: [ 8 ]
17+
jdk: [ 11, 17, 21 ]
1818
os: [ ubuntu-latest ]
1919
runs-on: ${{ matrix.os }}
2020
steps:
2121
- uses: actions/checkout@v3
22-
- name: Set up JDK 8
22+
- name: Set up JDK
2323
uses: actions/setup-java@v3
2424
with:
2525
java-version: ${{ matrix.jdk }}

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v3
21-
- name: Set up JDK 8
21+
- name: Set up JDK
2222
uses: actions/setup-java@v3
2323
with:
24-
java-version: '8'
24+
java-version: '11'
2525
distribution: 'temurin'
2626
cache: maven
2727
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ jobs:
2323
build:
2424
strategy:
2525
matrix:
26-
jdk: [ 8 ]
26+
jdk: [ 11, 17, 21 ]
2727
os: [ ubuntu-latest ]
2828

2929
runs-on: ${{ matrix.os }}
3030

3131
steps:
3232
- uses: actions/checkout@v3
33-
- name: Set up JDK 8
33+
- name: Set up JDK
3434
uses: actions/setup-java@v3
3535
with:
3636
java-version: ${{ matrix.jdk }}

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:8-jammy
1+
FROM eclipse-temurin:11-jammy
22

33
# Download all migration dependencies
44
RUN mkdir -p /assets/ && cd /assets && \
@@ -9,9 +9,9 @@ RUN mkdir -p /assets/ && cd /assets && \
99
curl -OL https://downloads.datastax.com/enterprise/cqlsh-astra.tar.gz && \
1010
tar -xzf ./cqlsh-astra.tar.gz && \
1111
rm ./cqlsh-astra.tar.gz && \
12-
curl -OL https://archive.apache.org/dist/spark/spark-3.4.1/spark-3.4.1-bin-hadoop3-scala2.13.tgz && \
13-
tar -xzf ./spark-3.4.1-bin-hadoop3-scala2.13.tgz && \
14-
rm ./spark-3.4.1-bin-hadoop3-scala2.13.tgz
12+
curl -OL https://archive.apache.org/dist/spark/spark-3.4.2/spark-3.4.2-bin-hadoop3-scala2.13.tgz && \
13+
tar -xzf ./spark-3.4.2-bin-hadoop3-scala2.13.tgz && \
14+
rm ./spark-3.4.2-bin-hadoop3-scala2.13.tgz
1515

1616
RUN apt-get update && apt-get install -y openssh-server vim python3 --no-install-recommends && \
1717
rm -rf /var/lib/apt/lists/* && \
@@ -46,7 +46,7 @@ RUN chmod +x ./get-latest-maven-version.sh && \
4646
rm -rf "$USER_HOME_DIR/.m2"
4747

4848
# Add all migration tools to path
49-
ENV PATH="${PATH}:/assets/dsbulk/bin/:/assets/cqlsh-astra/bin/:/assets/spark-3.4.1-bin-hadoop3-scala2.13/bin/"
49+
ENV PATH="${PATH}:/assets/dsbulk/bin/:/assets/cqlsh-astra/bin/:/assets/spark-3.4.2-bin-hadoop3-scala2.13/bin/"
5050

5151
EXPOSE 22
5252

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Migrate and Validate Tables between Origin and Target Cassandra Clusters.
99

10-
> :warning: Please note this job has been tested with spark version [3.4.1](https://archive.apache.org/dist/spark/spark-3.4.1/)
10+
> :warning: Please note this job has been tested with spark version [3.4.2](https://archive.apache.org/dist/spark/spark-3.4.2/)
1111
1212
## Install as a Container
1313
- Get the latest image that includes all dependencies from [DockerHub](https://hub.docker.com/r/datastax/cassandra-data-migrator)
@@ -17,11 +17,11 @@ Migrate and Validate Tables between Origin and Target Cassandra Clusters.
1717
- Download the latest jar file from the GitHub [packages area here](https://github.com/datastax/cassandra-data-migrator/packages/1832128)
1818

1919
### Prerequisite
20-
- Install Java8 as spark binaries are compiled with it.
21-
- Install Spark version [3.4.1](https://archive.apache.org/dist/spark/spark-3.4.1/spark-3.4.1-bin-hadoop3-scala2.13.tgz) on a single VM (no cluster necessary) where you want to run this job. Spark can be installed by running the following: -
20+
- Install **Java11** (minimum) as Spark binaries are compiled with it.
21+
- Install Spark version [`3.4.2`](https://archive.apache.org/dist/spark/spark-3.4.2/spark-3.4.2-bin-hadoop3-scala2.13.tgz) on a single VM (no cluster necessary) where you want to run this job. Spark can be installed by running the following: -
2222
```
23-
wget https://archive.apache.org/dist/spark/spark-3.4.1/spark-3.4.1-bin-hadoop3-scala2.13.tgz
24-
tar -xvzf spark-3.4.1-bin-hadoop3-scala2.13.tgz
23+
wget https://archive.apache.org/dist/spark/spark-3.4.2/spark-3.4.2-bin-hadoop3-scala2.13.tgz
24+
tar -xvzf spark-3.4.2-bin-hadoop3-scala2.13.tgz
2525
```
2626

2727
> :warning: If the above Spark and Scala version is not properly installed, you'll then see a similar exception like below when running the CDM jobs,

RELEASE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Release Notes
2+
## [4.1.12] - 2024-01-22
3+
- Upgraded to use Spark `3.4.2`.
4+
- Added Java `11` as the minimally required pre-requisite to run CDM jobs.
5+
26
## [4.1.9 to 4.1.11] - 2023-12-11
37
- Code test & coverage changes
48

SIT/environment.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ fi
6969
# These variables are hard-coded for now
7070
SUBNET=$(echo ${CIDR} | cut -d. -f1-3)
7171
CASS_VERSION=4
72-
CDM_VERSION=latest
72+
#CDM_VERSION=latest
73+
CDM_VERSION=ms-jdk17
7374
#==============================================================================================================================
7475
# Helper Functions
7576
#==============================================================================================================================

pom.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<mockito.version>4.11.0</mockito.version>
1818
<java-driver.version>4.17.0</java-driver.version>
1919
<log4j.version>2.21.0</log4j.version>
20+
<maven.compiler.source>11</maven.compiler.source>
21+
<maven.compiler.target>11</maven.compiler.target>
22+
<maven.compiler.release>11</maven.compiler.release>
2023
</properties>
2124

2225
<distributionManagement>
@@ -182,7 +185,7 @@
182185
<connection>scm:git:[email protected]:datastax/cassandra-data-migrator.git</connection>
183186
<developerConnection>scm:git:[email protected]:datastax/cassandra-data-migrator.git</developerConnection>
184187
<url>https://github.com/datastax/cassandra-data-migrator</url>
185-
<tag>4.1.8</tag>
188+
<tag>4.1.11</tag>
186189
</scm>
187190

188191
<build>
@@ -246,10 +249,11 @@
246249
<plugin>
247250
<groupId>org.apache.maven.plugins</groupId>
248251
<artifactId>maven-compiler-plugin</artifactId>
249-
<version>3.10.1</version>
252+
<version>3.12.1</version>
250253
<configuration>
251-
<source>1.8</source>
252-
<target>1.8</target>
254+
<source>${maven.compiler.source}</source>
255+
<target>${maven.compiler.target}</target>
256+
<release>${maven.compiler.release}</release>
253257
</configuration>
254258
</plugin>
255259

src/resources/migrate_data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
###########################################################################################################################
3636

3737
# Path to spark-submit
38-
SPARK_SUBMIT=/home/ubuntu/spark-3.4.1-bin-hadoop3-scala2.13/bin/spark-submit
38+
SPARK_SUBMIT=/home/ubuntu/spark-3.4.2-bin-hadoop3-scala2.13/bin/spark-submit
3939

4040
# Path to spark configuration for the table
4141
PROPS_FILE=/home/ubuntu/sparkConf.properties

0 commit comments

Comments
 (0)