Pulling down the kafka code and grepping through is one way to do it: grep -r "def main(" .
Mostly you'll be looking in these two directories: core/src/main/scala/kafka/tools/ core/src/main/scala/kafka/admin/ However, to echo what Christian said, it's probably worth deciding what you want to do before looking for the tool to do it in this case as the kafka-run-class.sh script is really just a way to launch these classes generically. Hope that helps. Dustin On Fri, May 6, 2016 at 2:12 PM, Mudit Kumar <mudit.ku...@askme.in> wrote: > Thanks chris but i am specifically looking for all Main Classes. > > > On May 6, 2016, at 11:07 PM, Christian Posta <christian.po...@gmail.com> > wrote: > > > > Well, to find the ones that are used by the Kafka tools: > > > > find ./bin -type f | xargs grep kafka-run-class.sh | awk ' { print $4 }' > > > > > > kafka-run-class.sh basically just sets up the JVM classpath to call any > of > > the Main classes inside kafka. What exactly are you looking to do? > > > > On Fri, May 6, 2016 at 9:41 AM, Mudit Kumar <mudit.ku...@askme.in> > wrote: > > > >> How can i get the list for all the class names i can run through > >> ./kafka-run-class.sh [class-name] command? > >> > >> Thanks, > >> Mudit > > > > > > > > > > -- > > *Christian Posta* > > twitter: @christianposta > > http://www.christianposta.com/blog > > http://fabric8.io > > -- Dustin Cote confluent.io