Details
Description
KafkaSink#init should set ack to 1 to make sure the message has been written to the broker at least.
current code list below:
props.put("request.required.acks", "0");
Update
find another bug about this class, key.serializer used org.apache.kafka.common.serialization.ByteArraySerializer, however, the key properties of Producer is Integer, codes list below:
props.put("key.serializer", "org.apache.kafka.common.serialization.ByteArraySerializer"); …………… producer = new KafkaProducer<Integer, byte[]>(props);
Attachments
Attachments
Issue Links
- relates to
-
HADOOP-10949 metrics2 sink plugin for Apache Kafka
- Resolved