Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache kafka - windows, How to avoid prefixing every command in CLI

Recently, the Kafka windows scripts moved to "windows" folder under bin. As of now, the way I am executing the command is to navigate to Kafka installation directory and run the commands, something like

PS C:\Users\admin> cd ..
PS C:\Users> cd ..
PS C:> cd .\confluent-5.5.0\
PS C:\confluent-5.5.0> .\bin\windows\kafka-consumer-groups.bat

Isn't there anyway to run the commands directly like ( BTW, I tried adding full path to environment variables, it didnt work )

PS C:\Users\admin>kafka-consumer-groups.bat
like image 673
Nag Avatar asked Feb 15 '26 18:02

Nag


1 Answers

Add C:\confluent-5.5.0\bin\windows to your PATH. It must work. You'll probably need to re-start your shell or session to see that changes.

like image 191
madhead - StandWithUkraine Avatar answered Feb 18 '26 09:02

madhead - StandWithUkraine



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!