Skip to content

Commit 47f5846

Browse files
authored
Merge pull request #15 from datastax/feature/spark313_upgrade
Upgraded to Spark 3.3.1 and Scala 2.12
2 parents bf40068 + e9e9c89 commit 47f5846

File tree

5 files changed

+18
-449
lines changed

5 files changed

+18
-449
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Migrate and Validate Tables between Origin and Target Cassandra Clusters.
44

5-
> :warning: Please note this job has been tested with spark version [2.4.8](https://archive.apache.org/dist/spark/spark-2.4.8/)
5+
> :warning: Please note this job has been tested with spark version [3.3.1](https://archive.apache.org/dist/spark/spark-3.3.1/)
66
77
## Container Image
88
- Get the latest image that includes all dependencies from [DockerHub](https://hub.docker.com/r/datastax/cassandra-data-migrator)
@@ -16,15 +16,15 @@ Migrate and Validate Tables between Origin and Target Cassandra Clusters.
1616
- Install single instance of spark on a node where you want to run this job. Spark can be installed by running the following: -
1717

1818
```
19-
wget https://downloads.apache.org/spark/spark-2.4.8/
19+
wget https://archive.apache.org/dist/spark/spark-3.3.1/spark-3.3.1-bin-hadoop3.tgz
2020
tar -xvzf <spark downloaded file name>
2121
```
2222

2323
### Build
2424
1. Clone this repo
2525
2. Move to the repo folder `cd cassandra-data-migrator`
2626
3. Run the build `mvn clean package`
27-
4. The fat jar (`cassandra-data-migrator-2.x.x.jar`) file should now be present in the `target` folder
27+
4. The fat jar (`cassandra-data-migrator-3.x.x.jar`) file should now be present in the `target` folder
2828

2929
# Steps for Data-Migration:
3030

@@ -36,7 +36,7 @@ tar -xvzf <spark downloaded file name>
3636
```
3737
./spark-submit --properties-file sparkConf.properties /
3838
--master "local[*]" /
39-
--class datastax.astra.migrate.Migrate cassandra-data-migrator-2.x.x.jar &> logfile_name.txt
39+
--class datastax.astra.migrate.Migrate cassandra-data-migrator-3.x.x.jar &> logfile_name.txt
4040
```
4141

4242
Note: Above command also generates a log file `logfile_name.txt` to avoid log output on the console.
@@ -49,7 +49,7 @@ Note: Above command also generates a log file `logfile_name.txt` to avoid log ou
4949
```
5050
./spark-submit --properties-file sparkConf.properties /
5151
--master "local[*]" /
52-
--class datastax.astra.migrate.DiffData cassandra-data-migrator-2.x.x.jar &> logfile_name.txt
52+
--class datastax.astra.migrate.DiffData cassandra-data-migrator-3.x.x.jar &> logfile_name.txt
5353
```
5454

5555
- Validation job will report differences as “ERRORS” in the log file as shown below
@@ -78,7 +78,7 @@ spark.target.autocorrect.mismatch true|false
7878
```
7979
./spark-submit --properties-file sparkConf.properties /
8080
--master "local[*]" /
81-
--class datastax.astra.migrate.MigratePartitionsFromFile cassandra-data-migrator-2.x.x.jar &> logfile_name.txt
81+
--class datastax.astra.migrate.MigratePartitionsFromFile cassandra-data-migrator-3.x.x.jar &> logfile_name.txt
8282
```
8383

8484
When running in above mode the tool assumes a `partitions.csv` file to be present in the current folder in the below format, where each line (`min,max`) represents a partition-range

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
<groupId>datastax.astra.migrate</groupId>
55
<artifactId>cassandra-data-migrator</artifactId>
6-
<version>2.11.2</version>
6+
<version>3.0.0</version>
77
<packaging>jar</packaging>
88

99
<properties>
1010
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11-
<scala.version>2.11.8</scala.version>
12-
<scala.main.version>2.11</scala.main.version>
13-
<spark.version>2.4.8</spark.version>
11+
<scala.version>2.12.17</scala.version>
12+
<scala.main.version>2.12</scala.main.version>
13+
<spark.version>3.3.1</spark.version>
1414
<scalatest.version>3.2.12</scalatest.version>
15-
<connector.version>2.5.2</connector.version>
16-
<cassandra.version>4.1.0</cassandra.version>
15+
<connector.version>3.2.0</connector.version>
16+
<cassandra.version>3.11.13</cassandra.version>
1717
<junit.version>4.13.2</junit.version>
1818
</properties>
1919

0 commit comments

Comments
 (0)