Skip to content

Commit 948938c

Browse files
committed
Merge branch 'master' of github.com:cockroachlabs/workshop_labs into master
2 parents e023e73 + a9ff334 commit 948938c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lab1_student_instructions_changefeed.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ https://github.com/glennfawcett/roachcrib
3030
```bash
3131

3232
# Start Consumer for Avro
33-
./bin/kafka-avro-console-consumer --bootstrap-server localhost:9092 --topic student99_pets
33+
./bin/kafka-avro-console-consumer --bootstrap-server localhost:9092 --topic student2_pets
3434

3535
# List Topics
3636
./bin/kafka-topics --list --bootstrap-server localhost:9092
3737

3838
# Delete Topics
39-
./bin/kafka-topics --bootstrap-server localhost:9092 --delete --topic student99_pets
39+
./bin/kafka-topics --bootstrap-server localhost:9092 --delete --topic student2_pets
4040

4141
```
4242

@@ -67,14 +67,14 @@ CREATE TABLE pets (
6767
```sql
6868
-- Connect to your Database
6969
--
70-
use student99;
70+
use student2;
7171

7272
-- Create CHANGEFEED... set topic_prefix to your database name!!
7373
--
7474
CREATE CHANGEFEED FOR TABLE pets
75-
INTO 'kafka://10.142.0.109:9092?topic_prefix=student99_'
75+
INTO 'kafka://10.142.0.33:9092?topic_prefix=student2_'
7676
WITH updated, resolved='20s',
77-
confluent_schema_registry = 'http://10.142.0.109:8081',
77+
confluent_schema_registry = 'http://10.142.0.33:8081',
7878
format = 'experimental_avro',
7979
diff,
8080
schema_change_policy=backfill;
@@ -87,9 +87,9 @@ CREATE CHANGEFEED FOR TABLE pets
8787
```bash
8888
## Start a Avro consumer in a SHELL on the kafka cluster
8989
##
90-
ssh -i ./bench-ssh-key bench@35.243.252.96
90+
ssh -i ./bench-ssh-key bench@glenn-confluent-0001.roachprod.crdb.io
9191
cd confluent-5.5.0
92-
./bin/kafka-avro-console-consumer --bootstrap-server localhost:9092 --topic student99_pets
92+
./bin/kafka-avro-console-consumer --bootstrap-server localhost:9092 --topic student2_pets
9393
```
9494

9595
**From another window, connect to the database and insert some values into the table you created:**

0 commit comments

Comments
 (0)