Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari 2.2 Kafka broker.id missing?

Solved Go to solution

Ambari 2.2 Kafka broker.id missing?

New 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

Accepted Solutions

Re: Ambari 2.2 Kafka broker.id missing?

New Contributor

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

9 REPLIES 9

Re: Ambari 2.2 Kafka broker.id missing?

What version of HDP are you deploying?

Re: Ambari 2.2 Kafka broker.id missing?

New Contributor

HDP 2.3.2.

Re: Ambari 2.2 Kafka broker.id missing?

@Hassan Faouaz

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

Re: Ambari 2.2 Kafka broker.id missing?

Mentor

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

Re: Ambari 2.2 Kafka broker.id missing?

New Contributor

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

Re: Ambari 2.2 Kafka broker.id missing?

Mentor

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

Re: Ambari 2.2 Kafka broker.id missing?

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

Highlighted

Re: Ambari 2.2 Kafka broker.id missing?

New 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

Re: Ambari 2.2 Kafka broker.id missing?

Contributor

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