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
Tests are implemented in the `tests` sbt submodule. They simulate the submission of a Spark job as described in the README. Therefore, before running the tests you need to build the migrator fat-jar and to set up a stack with a Spark cluster and databases to read data from and to write to.
6
+
7
+
1. Build the migrator fat-jar and its dependencies
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Create a `config.yaml` for your migration using the template `config.yaml.exampl
13
13
14
14
The Scylla Migrator is built against Spark 2.4.4, so you'll need to run that version on your cluster.
15
15
16
-
After running `build.sh`, copy the jar from `./target/scala-2.11/scylla-migrator-assembly-0.0.1.jar` and the `config.yaml` you've created to the Spark master server.
16
+
After running `build.sh`, copy the jar from `./migrator/target/scala-2.11/scylla-migrator-assembly-0.0.1.jar` and the `config.yaml` you've created to the Spark master server.
17
17
18
18
Then, run this command on the Spark master server:
19
19
```shell
@@ -51,18 +51,18 @@ To run in the local Docker-based setup:
51
51
52
52
1. First start the environment:
53
53
```shell
54
-
docker-compose up -d
54
+
dockercompose up -d
55
55
```
56
56
57
57
2. Launch `cqlsh` in Cassandra's container and create a keyspace and a table with some data:
58
58
```shell
59
-
docker-compose exec cassandra cqlsh
59
+
dockercompose exec cassandra cqlsh
60
60
<create stuff>
61
61
```
62
62
63
63
3. Launch `cqlsh` in Scylla's container and create the destination keyspace and table with the same schema as the source table:
The `spark-master` container mounts the `./target/scala-2.11` dir on `/jars` and the repository root on `/app`. To update the jar with new code, just run `build.sh` and then run `spark-submit` again.
82
+
The `spark-master` container mounts the `./migrator/target/scala-2.11` dir on `/jars` and the repository root on `/app`. To update the jar with new code, just run `build.sh` and then run `spark-submit` again.
0 commit comments