Support Questions

Find answers, ask questions, and share your expertise

Ambari 2.2 Kafka broker.id missing?

Explorer

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

Explorer

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

View solution in original post

9 REPLIES 9

What version of HDP are you deploying?

Explorer

HDP 2.3.2.

@Hassan Faouaz

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

Mentor

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

Explorer

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

Mentor

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

Expert Contributor

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...

Explorer

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

Contributor

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