@@ -4,16 +4,16 @@ curl -OL https://downloads.datastax.com/enterprise/cqlsh-astra.tar.gz
4
4
wget https://archive.apache.org/dist/spark/spark-3.3.1/spark-3.3.1-bin-hadoop3.tgz
5
5
6
6
// Migrate
7
- spark-submit --properties-file /<path>/cdm.properties --conf spark.origin.keyspaceTable="keyspace.table" --master "local[*]" --class datastax.astra.migrate.Migrate /<path>/cassandra-data-migrator-3.4.*.jar
8
- spark-submit --properties-file /<path>/cdm.properties --conf spark.origin.keyspaceTable="keyspace.table" --master "local[*]" --driver-memory 25G --executor-memory 25G --class datastax.astra.migrate.Migrate /<path>/cassandra-data-migrator-3.4.*.jar &> table_out .log
7
+ spark-submit --properties-file /<path>/cdm.properties --conf spark.origin.keyspaceTable="keyspace.table" --master "local[*]" --class datastax.astra.migrate.Migrate /<path>/cassandra-data-migrator-3.4.*.jar &> log_name_$(date +%Y%m%d_%H_%M).log
8
+ spark-submit --properties-file /<path>/cdm.properties --conf spark.origin.keyspaceTable="keyspace.table" --master "local[*]" --driver-memory 25G --executor-memory 25G --class datastax.astra.migrate.Migrate /<path>/cassandra-data-migrator-3.4.*.jar &> table_out_$(date +%Y%m%d_%H_%M) .log
9
9
// If target keyspace oand/or table name is different than origin, then add --conf spark.target.keyspaceTable="keyspace2.table2"
10
10
// Add option --verbose for verbose output
11
11
12
12
// Random Partitioner Run Command
13
- spark-submit --properties-file /<path>/cdm.properties --conf spark.origin.keyspaceTable="keyspace.table" --master "local[*]" --conf spark.origin.minPartition=-1 --conf spark.origin.maxPartition=170141183460469231731687303715884105728 --class datastax.astra.migrate.Migrate /<path>/cassandra-data-migrator-3.4.*.jar
13
+ spark-submit --properties-file /<path>/cdm.properties --conf spark.origin.keyspaceTable="keyspace.table" --master "local[*]" --conf spark.origin.minPartition=-1 --conf spark.origin.maxPartition=170141183460469231731687303715884105728 --class datastax.astra.migrate.Migrate /<path>/cassandra-data-migrator-3.4.*.jar &> log_name_$(date +%Y%m%d_%H_%M).log
14
14
15
15
// Validate
16
- spark-submit --properties-file /<path>/cdm.properties --conf spark.origin.keyspaceTable="keyspace.table" --master "local[*]" --driver-memory 25G --executor-memory 25G --class datastax.astra.migrate.DiffData /<path>/cassandra-data-migrator-3.4.*.jar &> table_out .log
16
+ spark-submit --properties-file /<path>/cdm.properties --conf spark.origin.keyspaceTable="keyspace.table" --master "local[*]" --driver-memory 25G --executor-memory 25G --class datastax.astra.migrate.DiffData /<path>/cassandra-data-migrator-3.4.*.jar &> table_out_$(date +%Y%m%d_%H_%M) .log
17
17
18
18
// Guardrail check (identify large fields)
19
- spark-submit --properties-file /<path>/cdmGuardrail.properties --conf spark.origin.keyspaceTable="keyspace.table" --master "local[*]" --driver-memory 25G --executor-memory 25G --class datastax.astra.migrate.Guardrail /<path>/cassandra-data-migrator-3.4.*.jar &> table_out .log
19
+ spark-submit --properties-file /<path>/cdmGuardrail.properties --conf spark.origin.keyspaceTable="keyspace.table" --master "local[*]" --driver-memory 25G --executor-memory 25G --class datastax.astra.migrate.Guardrail /<path>/cassandra-data-migrator-3.4.*.jar &> table_out_$(date +%Y%m%d_%H_%M) .log
0 commit comments