cppkafka
cppkafka copied to clipboard
produer success but kafka shell consumer all "null"
Configuration config = { { "metadata.broker.list", kafka_servers} }; Producer pp(config); MessageBuilder builder("***"); builder.partition(8); builder.payload("1999"); pp.produce(builder); pp.flush();
my code is like this.
producer success. consumer got one message. but it is null.
consumer is kafka shell consumer.
thanks for you time.
Same here. Did you find a way to solve this problem?