I’ve got the following setup:
- MySQL → Striim → Kafka + CSR and avro encoding
The table that I’m replicating is pretty simple:
items | CREATE TABLE `items` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`category` varchar(100) DEFAULT NULL,
`price` decimal(7,2) DEFAULT NULL,
`inventory` int DEFAULT NULL,
`inventory_updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2001 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
However the bigint
seems to be causing the following error when Striim starts ingesting messages:
Message: KafkaWriter is unable to produce events to shop. Component Name: Kafka_2_1_0_mysql_kafka_csr_Target. Component Type: TARGET. Cause: KafkaWriter is unable to produce events to shop. Cause: Suitable Avro type not found for field - ID with java.math.BigInteger
As a test if I use a schema that does not use `bigint` it works as expected.