Best I got for ya, using https://github.com/r4um/jmx-dump
$ broker_hostname=localhost $ jmx_port=9999 $ java -jar jmx-dump-0.4.2-standalone.jar -h $broker_hostname -p $jmx_port -m | grep ‘kafka.server:id=.*type=app-info’ kafka.server:id=12,type=app-info This will only work if a JMX port is configured. You can enable this by setting -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=$jmx_port when starting your broker. On Thu, Feb 16, 2017 at 5:23 AM, Manikumar <manikumar.re...@gmail.com> wrote: > If broker id is not set, then a unique broker id will be generated. > This is stored in meta.properties file of data logs directory. > This is id is also available through JMX mbean. > > On Thu, Feb 16, 2017 at 12:32 PM, Stevo Slavić <ssla...@gmail.com> wrote: > > > You can just grep it from broker's config/server.properties > > > > On Thu, Feb 16, 2017 at 7:42 AM, kay James <myvide...@gmail.com> wrote: > > > > > Is there any command can be used to get broker.id on one of broker > with > > > command? > > > I can check zookeeper or check the broker starting log to find > broker.id > > , > > > but I wander whether there is any command to get the broker.id? > > > > > >