- 新しい順
- 投票が多い順
- コメントが多い順
It appears you are encountering an error with data serialization in your Kafka connector. The error message "Unknown magic byte!" typically indicates an issue with the deserializer configuration or a mismatch between the producer's serialization and the connector's deserialization.
MSK connectors rely on the Apache Kafka Connect framework, which supports a variety of data types and serialization formats. The list of supported data types is not explicitly tied to MSK but rather depends on the serializers and deserializers used in your Kafka Connect configuration.
To resolve this issue, please ensure the following:
- Verify that your Kafka producer and MSK connector configurations match in terms of serialization and deserialization. For example, if your producer is using the
org.apache.kafka.common.serialization.ByteArraySerializer
, your MSK connector should use theorg.apache.kafka.common.serialization.ByteArrayDeserializer
. - Double-check the configurations in your Kafka Connect worker and connector properties files. Ensure that the
key.converter
andvalue.converter
properties are set correctly. For instance:
key.converter=org.apache.kafka.connect.converters.ByteArrayConverter
value.converter=org.apache.kafka.connect.converters.ByteArrayConverter
- If you are using a schema registry, ensure that the registry's URL is configured correctly in your Kafka Connect worker and connector properties files.
By confirming these settings, you should be able to resolve the serialization issue in your Kafka connector. Remember that the list of supported data formats depends on the serializers and deserializers you use in your Kafka Connect configuration, and is not limited by MSK itself.
関連するコンテンツ
- AWS公式更新しました 1年前