Support Questions

Find answers, ask questions, and share your expertise

Ambari 2.2 Kafka broker.id missing?

avatar
Contributor

Installing Ambari 2.2, it seem that the kafka properties broker.id is missing, causing kafka broker not to start. Is this a bug? I had to add it to the config as a custom broker.

1 ACCEPTED SOLUTION

avatar
Contributor

Solution was to add the missing property, broker.id = 0

View solution in original post

9 REPLIES 9

avatar

What version of HDP are you deploying?

avatar
Contributor

HDP 2.3.2.

avatar
Master Mentor
@Hassan Faouaz

I don't see broker.id in ambari 2.1 and 2.2

avatar
Master Mentor

@Hassan Faouaz has this been resolved? Can you post your solution or accept best answer?

avatar
Contributor

Solution was to add the missing property, broker.id = 0

avatar
Master Mentor

@Hassan Faouaz when you vote for yourself you don't get points, I unaccepted and accepted your answer.

avatar
Super Collaborator

I think broker.id is not visible on Ambari, since it is automatically created upon kafka installation.

If you check your server.properties of all the brokers, you will see that they have different broker.id.

Btw, did anyone here put a value on host.name?

I saw on HDP docs that "Leave hostname empty to bind to default interface."

see here. https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/configu...

avatar
Contributor

Kafka stores the broker.id in a file at time install of meta.properties and it will be forever that number until you delete that file is located kafka logs.dir/meta.properties

#Thu Feb 04 11:50:40 EST 2016 version=0 broker.id=1003

Stop Kafka and Delete and it should recreate

avatar
Expert Contributor

this 'kafka logs.dir/meta.properties' was the info very much help for my task here. thank you @mthiele.