Kafka

Setting Kafka Directory Path

Setting Kafka Directory Path

You can use the Kafka commands within the Kafka directory but if you wish to use them from anywhere, you need to set up the path for Kafka. Here are the steps to do that -

 

  • In Local C drive, Open Kafka folder>bin>windows. Copy this address.
  • Go to My Computer, right-click and go to System Properties. 
  • Click Advanced system settings > Environment Variables.
  • Click on the ‘Path’ variable and edit it by pasting the address that you copied earlier. Click OK.
  • In the command prompt, use 'kafka-topics.bat'. If it displays an output, it means that the path is set correctly. The Kafka command can be executed from anywhere.