Skip to content

Commit beca2f5

Browse files
authored
ticdc: remove canal protocol document (#16773) (#16797)
1 parent a48fef9 commit beca2f5

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

ticdc/manage-ticdc.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ The following are descriptions of parameters and parameter values that can be co
215215
| `max-message-bytes` | The maximum size of data that is sent to Kafka broker each time (optional, `10MB` by default). From v5.0.6 and v4.0.6, the default value has changed from 64MB and 256MB to 10MB. |
216216
| `replication-factor` | The number of Kafka message replicas that can be saved (optional, `1` by default) |
217217
| `compression` | The compression algorithm used when sending messages (value options are `none`, `lz4`, `gzip`, `snappy`, and `zstd`; `none` by default). |
218-
| `protocol` | The protocol with which messages are output to Kafka. The value options are `canal-json`, `open-protocol`, `canal`, `avro` and `maxwell`. |
218+
| `protocol` | The protocol with which messages are output to Kafka. The value options are `canal-json`, `open-protocol`, `avro` and `maxwell`. |
219219
| `auto-create-topic` | Determines whether TiCDC creates the topic automatically when the `topic-name` passed in does not exist in the Kafka cluster (optional, `true` by default) |
220220
| `enable-tidb-extension` | Optional. `false` by default. When the output protocol is `canal-json`, if the value is `true`, TiCDC sends Resolved events and adds the TiDB extension field to the Kafka message. From v6.1.0, this parameter is also applicable to the `avro` protocol. If the value is `true`, TiCDC adds three TiDB extension fields to the Kafka message. |
221221
| `max-batch-size` | New in v4.0.9. If the message protocol supports outputting multiple data changes to one Kafka message, this parameter specifies the maximum number of data changes in one Kafka message. It currently takes effect only when Kafka's `protocol` is `open-protocol`. (optional, `16` by default) |
@@ -341,7 +341,7 @@ The following are descriptions of parameters that can be configured for the sink
341341
| `auth.tls` | Uses the TLS mode to verify the downstream Pulsar (optional). For example, `auth=tls&auth.tlsCertFile=/path/to/cert&auth.tlsKeyFile=/path/to/key`. |
342342
| `auth.token` | Uses the token mode to verify the downstream Pulsar (optional). For example, `auth=token&auth.token=secret-token` or `auth=token&auth.file=path/to/secret-token-file`. |
343343
| `name` | The name of Pulsar producer in TiCDC (optional) |
344-
| `protocol` | The protocol with which messages are output to Pulsar. The value options are `canal-json`, `open-protocol`, `canal`, `avro`, and `maxwell`. |
344+
| `protocol` | The protocol with which messages are output to Pulsar. The value options are `canal-json`, `open-protocol`, `avro`, and `maxwell`. |
345345
| `maxPendingMessages` | Sets the maximum size of the pending message queue, which is optional and defaults to 1000. For example, pending for the confirmation message from Pulsar. |
346346
| `disableBatching` | Disables automatically sending messages in batches (optional) |
347347
| `batchingMaxPublishDelay` | Sets the duration within which the messages sent are batched (default: 10ms) |
@@ -650,7 +650,7 @@ worker-num = 16
650650
# {matcher = ['test6.*'], partition = "ts"}
651651
# ]
652652
# For the sink of MQ type, you can specify the protocol format of the message.
653-
# Currently the following protocols are supported: canal-json, open-protocol, canal, avro, and maxwell.
653+
# Currently the following protocols are supported: canal-json, open-protocol, avro, and maxwell.
654654
# protocol = "canal-json"
655655
```
656656

ticdc/ticdc-faq.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,20 @@ If you use the `cdc cli changefeed create` command without specifying the `-conf
106106
- Enables the Old Value feature
107107
- Skips replicating tables that do not contain [valid indexes](/ticdc/ticdc-overview.md#restrictions)
108108

109-
## Does TiCDC support outputting data changes in the Canal format?
109+
## Does TiCDC support outputting data changes in the Canal protocol?
110110

111-
Yes. To enable Canal output, specify the protocol as `canal` in the `--sink-uri` parameter. For example:
111+
Yes. Note that for the Canal protocol, TiCDC only supports the JSON output format, while the protobuf format is not officially supported yet. To enable Canal output, specify `protocol` as `canal-json` in the `--sink-uri` configuration. For example:
112112

113113
{{< copyable "shell-regular" >}}
114114

115115
```shell
116-
cdc cli changefeed create --pd=http://10.0.10.25:2379 --sink-uri="kafka://127.0.0.1:9092/cdc-test?kafka-version=2.4.0&protocol=canal" --config changefeed.toml
116+
cdc cli changefeed create --pd=http://10.0.10.25:2379 --sink-uri="kafka://127.0.0.1:9092/cdc-test?kafka-version=2.4.0&protocol=canal-json" --config changefeed.toml
117117
```
118118

119119
> **Note:**
120120
>
121121
> * This feature is introduced in TiCDC 4.0.2.
122-
> * TiCDC currently supports outputting data changes in the Canal format only to MQ sinks such as Kafka and Pulsar.
122+
> * TiCDC currently supports outputting data changes in the Canal-JSON format only to MQ sinks such as Kafka and Pulsar.
123123
124124
For more information, refer to [Create a replication task](/ticdc/manage-ticdc.md#create-a-replication-task).
125125

ticdc/ticdc-open-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ The configuration parameters of sink are as follows:
159159

160160
`matcher`: The matching syntax of matcher is the same as the filter rule syntax.
161161

162-
`protocol`: For the sink of MQ type, you can specify the protocol format of the message. Currently the following protocols are supported: `canal-json`, `open-protocol`, `canal`, `avro`, and `maxwell`.
162+
`protocol`: For the sink of MQ type, you can specify the protocol format of the message. Currently the following protocols are supported: `canal-json`, `open-protocol`, `avro`, and `maxwell`.
163163

164164
### Example
165165

ticdc/troubleshoot-ticdc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Since v4.0.9, you can try to enable the unified sorter feature in your replicati
142142

143143
## After I upgrade the TiCDC cluster to v4.0.8, the `[CDC:ErrKafkaInvalidConfig]Canal requires old value to be enabled` error is reported when I execute a changefeed. What should I do?
144144

145-
Since v4.0.8, if the `canal-json`, `canal` or `maxwell` protocol is used for output in a changefeed, TiCDC enables the old value feature automatically. However, if you have upgraded TiCDC from an earlier version to v4.0.8 or later, when the changefeed uses the `canal-json`, `canal` or `maxwell` protocol and the old value feature is disabled, this error is reported.
145+
Since v4.0.8, if the `canal-json` or `maxwell` protocol is used for output in a changefeed, TiCDC enables the old value feature automatically. However, if you have upgraded TiCDC from an earlier version to v4.0.8 or later, when the changefeed uses the `canal-json` or `maxwell` protocol and the old value feature is disabled, this error is reported.
146146

147147
To fix the error, take the following steps:
148148

0 commit comments

Comments
 (0)