Skip to content

Commit

Permalink
Fixed number ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfordcp committed Sep 26, 2019
1 parent c3789f4 commit 022d890
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions kafka-connector-cdc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
3. Download kafaka-connect-dse-2.0.0-20190925-LABS.jar from [DataStax Labs]() and place it within this directory.

## Start the components
3. Start up the stack `docker-compose up -d`
1. Start up the stack `docker-compose up -d`

If for some reason a component does not come up due a dependency being down try running this command again.

## Configure DSE
4. Configure DSE schema
1. Configure DSE schema

```
docker-compose exec dse cqlsh
Expand All @@ -25,35 +27,35 @@
);
```

5. Enable DSE Advanced Replication Destination for Kafka
2. Enable DSE Advanced Replication Destination for Kafka

```
docker-compose exec dse dse advrep destination create --name demo_destination --transmission-enabled true
docker-compose exec dse dse advrep destination list
```

6. Enable DSE Advanced Replication Channel for `demo_ks.demo_table`
3. Enable DSE Advanced Replication Channel for `demo_ks.demo_table`

```
docker-compose exec dse dse advrep channel create --data-center-id dc1 --source-keyspace demo_ks --source-table demo_table --destination demo_destination --transmission-enabled true --collection-enabled true
docker-compose exec dse dse advrep channel status
```

## Configure Kafka and the Connector
7. Connect to the Confluent Control Panel http://localhost:9021/
8. Select the only cluster
9. Click "Topics" in the left sidebar
10. Click "Add a topic" in the top right corner
11. Enter the following parameters then click "Create with defaults"
1. Connect to the Confluent Control Panel http://localhost:9021/
2. Select the only cluster
3. Click "Topics" in the left sidebar
4. Click "Add a topic" in the top right corner
5. Enter the following parameters then click "Create with defaults"

Topic name: demo-topic
Number of partitions: 1

12. Open "Connect" in the left sidebar
13. Click "connect-default"
14. Click "Add Connector"
15. Click "Connect" under "DseSourceConnector"
16. Enter the following parameters and click "Continue"
6. Open "Connect" in the left sidebar
7. Click "connect-default"
8. Click "Add Connector"
9. Click "Connect" under "DseSourceConnector"
10. Enter the following parameters and click "Continue"

Name: demo-connector
Tasks max: 1
Expand All @@ -62,10 +64,10 @@
topic: demo-topic
destination: demo_destination
contact_points: dse
17. Verify configuration parameters and click "Launch"
11. Verify configuration parameters and click "Launch"

## Insert data to be replicated
18. Start `cqlsh` and insert data
1. Start `cqlsh` and insert data

```
docker-compose exec dse cqlsh
Expand Down

0 comments on commit 022d890

Please sign in to comment.