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
**Connectors and their tasks must have a RUNNING state**
81
-
82
-
3. You can also check the state of the connectors and their tasks at http://localhost:8086
83
117
118
+
On Kafka Connect UI, you should see
84
119

85
120
86
121
4. If there is any problem, you can check `kafka-connect` container logs.
87
122
```
88
123
docker logs kafka-connect -f
89
124
```
90
125
91
-
5. Source connectors use `JSONConverter` to serialize data from MySQL to Kafka. The same way, sink connectors use
92
-
`JSONConverter` to deserialize messages from Kafka to Elasticsearch.
126
+
5. Connectors use *Converters* for data serialization and deserialization. If you are configuring `For JSON SerDes`, the
127
+
converter used is `JsonConverter`. On the other hand, if the configuration is `For Avro SerDes`, the converter used is
128
+
`AvroConverter`.
129
+
130
+
**IMPORTANT**: if the Source Connector Converter serializes data, for instance, from `JSON` to `Bytes` (using
131
+
`JsonConverter`), then the Sink Connector Converter must also use `JsonConverter` to deserialize the `Bytes`,
132
+
otherwise an error will be thrown. The document
133
+
[Kafka Connect Deep Dive – Converters and Serialization Explained](https://www.confluent.io/blog/kafka-connect-deep-dive-converters-serialization-explained)
134
+
explains it very well.
93
135
94
136
### Start store-streams
95
137
96
138
1. Open a new terminal
97
139
98
140
2. In `/springboot-kafka-connect-streams/store-streams` folder, run
141
+
142
+
**For JSON SerDes**
99
143
```
100
144
mvn spring-boot:run
101
145
```
102
146
103
-
3. It runs on port `9081`. The `health` endpoint is http://localhost:9081/actuator/health
0 commit comments