You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,28 @@ Migrate and Validate Tables between Origin and Target Cassandra Clusters.
4
4
5
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/)
6
6
7
-
## Build
8
-
1. Clone this repo
9
-
2. Move to the repo folder `cd cassandra-data-migrator`
10
-
3. Run the build `mvn clean package`
11
-
4. The fat jar (`cassandra-data-migrator-2.x.jar`) file should now be present in the `target` folder
7
+
## Container Image
8
+
- Get the latest image that includes all dependencies from [DockerHub](https://hub.docker.com/r/datastax/cassandra-data-migrator)
9
+
- If you use this route, all migration tools (`cassandra-data-migrator` + `dsbulk` + `cqlsh`) would be available in the `/assets/` folder of the container
10
+
- OR follow the below build steps (and Prerequisite) to build the jar locally
12
11
13
-
## Prerequisite
12
+
###Prerequisite
14
13
15
-
Install Java8 as spark binaries are compiled with it.
16
-
Install single instance of spark on a node where you want to run this job. Spark can be installed by running the following: -
14
+
- Install Java8 as spark binaries are compiled with it.
15
+
- Install Maven 3.8.x
16
+
- Install single instance of spark on a node where you want to run this job. Spark can be installed by running the following: -
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
@@ -88,7 +94,8 @@ This mode is specifically useful to processes a subset of partition-ranges that
- Preserve [writetimes](https://docs.datastax.com/en/dse/6.8/cql/cql/cql_reference/cql_commands/cqlSelect.html#cqlSelect__retrieving-the-datetime-a-write-occurred-p) and [TTL](https://docs.datastax.com/en/dse/6.8/cql/cql/cql_reference/cql_commands/cqlSelect.html#cqlSelect__ref-select-ttl-p)
0 commit comments