Skip to content

Commit

Permalink
Update io-cdc-canal.md (apache#5266)
Browse files Browse the repository at this point in the history
* Update io-cdc-canal.md

Fixed a couple of things:
Pulsar 2.3.0 connectors gives a 404 error.
pulsar-admin does not support a "sources" command, but a "source"/

Updated version 2.4.1 to proper version.
  • Loading branch information
tomix1337 authored and jiazhai committed Sep 30, 2019
1 parent 45921c8 commit da04dbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions site2/docs/io-cdc-canal.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ Here is an example of storing MySQL data using the configuration file as above.

```bash
$ docker exec -it pulsar-standalone /bin/bash
$ wget http://apache.01link.hk/pulsar/pulsar-2.3.0/connectors/pulsar-io-canal-2.3.0.nar -P connectors
$ ./bin/pulsar-admin sources localrun \
$ wget https://archive.apache.org/dist/pulsar/pulsar-2.3.0/connectors/pulsar-io-canal-2.3.0.nar -P connectors
$ ./bin/pulsar-admin source localrun \
--archive ./connectors/pulsar-io-canal-2.3.0.nar \
--classname org.apache.pulsar.io.canal.CanalStringSource \
--tenant public \
Expand Down
8 changes: 4 additions & 4 deletions site2/website/versioned_docs/version-2.4.1/io-cdc-canal.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ docker run -d -it --link pulsar-mysql -e canal.auto.scan=false -e canal.destinat
- Start pulsar standalone

```$bash
docker pull apachepulsar/pulsar:2.3.0
docker run -d -it --link pulsar-canal-server -p 6650:6650 -p 8080:8080 -v $PWD/data:/pulsar/data --name pulsar-standalone apachepulsar/pulsar:2.3.0 bin/pulsar standalone
docker pull apachepulsar/pulsar:2.4.1
docker run -d -it --link pulsar-canal-server -p 6650:6650 -p 8080:8080 -v $PWD/data:/pulsar/data --name pulsar-standalone apachepulsar/pulsar:2.4.1 bin/pulsar standalone
```

- Start pulsar-io in standalone
Expand Down Expand Up @@ -144,8 +144,8 @@ docker cp pulsar-client.py pulsar-standalone:/pulsar/
- Download canal connector and start canal connector
```$bash
docker exec -it pulsar-standalone /bin/bash
wget http://apache.01link.hk/pulsar/pulsar-2.3.0/connectors/pulsar-io-canal-2.3.0.nar -P connectors
./bin/pulsar-admin sources localrun --archive ./connectors/pulsar-io-canal-2.3.0.nar --classname org.apache.pulsar.io.canal.CanalStringSource --tenant public --namespace default --name canal --destination-topic-name my-topic --source-config-file /pulsar/conf/canal-mysql-source-config.yaml --parallelism 1
wget http://apache.01link.hk/pulsar/pulsar-2.4.1/connectors/pulsar-io-canal-2.4.1.nar -P connectors
./bin/pulsar-admin sources localrun --archive ./connectors/pulsar-io-canal-2.4.1.nar --classname org.apache.pulsar.io.canal.CanalStringSource --tenant public --namespace default --name canal --destination-topic-name my-topic --source-config-file /pulsar/conf/canal-mysql-source-config.yaml --parallelism 1
```

- Consumption data
Expand Down

0 comments on commit da04dbe

Please sign in to comment.