Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

produer success but kafka shell consumer all "null" #296

Open
HuBlanker opened this issue Jun 10, 2022 · 1 comment
Open

produer success but kafka shell consumer all "null" #296

HuBlanker opened this issue Jun 10, 2022 · 1 comment

Comments

@HuBlanker
Copy link

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.

@kreuzerkrieg
Copy link

Same here. Did you find a way to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants