Skip to content

Commit 06cc507

Browse files
authored
Merge pull request #170 from rzvoncek/radovan/fix-readme
Fix class names in README examples + Make target ks.t not required
2 parents 5d20f4a + 53297a7 commit 06cc507

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ tar -xvzf spark-3.3.1-bin-hadoop3.tgz
3636
./spark-submit --properties-file cdm.properties /
3737
--conf spark.cdm.schema.origin.keyspaceTable="<keyspace-name>.<table-name>" /
3838
--master "local[*]" /
39-
--class datastax.cdm.job.Migrate cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
39+
--class com.datastax.cdm.job.Migrate cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
4040
```
4141

4242
Note:
@@ -46,18 +46,18 @@ Note:
4646
./spark-submit --properties-file cdm.properties /
4747
--conf spark.cdm.schema.origin.keyspaceTable="<keyspace-name>.<table-name>" /
4848
--master "local[*]" --driver-memory 25G --executor-memory 25G /
49-
--class datastax.cdm.job.Migrate cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
49+
--class com.datastax.cdm.job.Migrate cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
5050
```
5151

5252
# Steps for Data-Validation:
5353

54-
- To run the job in Data validation mode, use class option `--class datastax.cdm.job.DiffData` as shown below
54+
- To run the job in Data validation mode, use class option `--class com.datastax.cdm.job.DiffData` as shown below
5555

5656
```
5757
./spark-submit --properties-file cdm.properties /
5858
--conf spark.cdm.schema.origin.keyspaceTable="<keyspace-name>.<table-name>" /
5959
--master "local[*]" /
60-
--class datastax.cdm.job.DiffData cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
60+
--class com.datastax.cdm.job.DiffData cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
6161
```
6262

6363
- Validation job will report differences as “ERRORS” in the log file as shown below
@@ -83,12 +83,12 @@ Note:
8383
- The validation job will never delete records from target i.e. it only adds or updates data on target
8484

8585
# Migrating specific partition ranges
86-
- You can also use the tool to migrate specific partition ranges using class option `--class datastax.cdm.job.MigratePartitionsFromFile` as shown below
86+
- You can also use the tool to migrate specific partition ranges using class option `--class com.datastax.cdm.job.MigratePartitionsFromFile` as shown below
8787
```
8888
./spark-submit --properties-file cdm.properties /
8989
--conf spark.cdm.schema.origin.keyspaceTable="<keyspace-name>.<table-name>" /
9090
--master "local[*]" /
91-
--class datastax.cdm.job.MigratePartitionsFromFile cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
91+
--class com.datastax.cdm.job.MigratePartitionsFromFile cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
9292
```
9393

9494
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
@@ -107,12 +107,12 @@ This mode is specifically useful to processes a subset of partition-ranges that
107107
grep "ERROR CopyJobSession: Error with PartitionRange" /path/to/logfile_name.txt | awk '{print $13","$15}' > partitions.csv
108108
```
109109
# Data validation for specific partition ranges
110-
- You can also use the tool to validate data for a specific partition ranges using class option `--class datastax.cdm.job.DiffPartitionsFromFile` as shown below,
110+
- You can also use the tool to validate data for a specific partition ranges using class option `--class com.datastax.cdm.job.DiffPartitionsFromFile` as shown below,
111111
```
112112
./spark-submit --properties-file cdm.properties /
113113
--conf spark.origin.keyspaceTable="<keyspace-name>.<table-name>" /
114114
--master "local[*]" /
115-
--class datastax.cdm.job.DiffPartitionsFromFile cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
115+
--class com.datastax.cdm.job.DiffPartitionsFromFile cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
116116
```
117117

118118
When running in above mode the tool assumes a `partitions.csv` file to be present in the current folder.
@@ -124,7 +124,7 @@ When running in above mode the tool assumes a `partitions.csv` file to be presen
124124
--conf spark.origin.keyspaceTable="<keyspace-name>.<table-name>" /
125125
--conf spark.cdm.feature.guardrail.colSizeInKB=10000 /
126126
--master "local[*]" /
127-
--class datastax.cdm.job.GuardrailCheck cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
127+
--class com.datastax.cdm.job.GuardrailCheck cassandra-data-migrator-4.x.x.jar &> logfile_name_$(date +%Y%m%d_%H_%M).txt
128128
```
129129

130130
# Features

src/main/java/com/datastax/cdm/properties/KnownProperties.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public enum PropertyType {
8787

8888
static {
8989
types.put(TARGET_KEYSPACE_TABLE, PropertyType.STRING);
90-
required.add(TARGET_KEYSPACE_TABLE);
9190
}
9291

9392
//==========================================================================

0 commit comments

Comments
 (0)