Examine server.properties and see which port you're using in there On Thu, Sep 15, 2016 at 3:52 PM, kant kodali <kanth...@gmail.com> wrote:
> which port should I use 9091 or 9092 or 2181 to send messages through kafka > when using a client Library? > I start kafka as follows: > sudo bin/zookeeper-server-start.sh config/zookeeper.propertiessudo > ./bin/kafka-server-start.sh config/server.properties > > and I dont see any process running on 9091 or 9092 however lot of client > library > examples have a consumer client pointing to 9092. for example here > https://github.com/apache/kafka/blob/trunk/examples/src/main > /java/kafka/examples/Producer.java#L34 > shouldn't both producer and consumer point to zookeeper port 2181? which I > am > assuming will do the lookup? > Thanks,Kant