kafka-tools icon indicating copy to clipboard operation
kafka-tools copied to clipboard

Support kafka executables without shell extension?

Open simplesteph opened this issue 9 years ago • 2 comments

Hi,

Is it possible to have the kafka-tools support kafka-reassign-partitions instead of kafka-reassign-partitions.sh ? For example, the confluent Kafka images do an apt-get install which go and places the shell scripts directly in the /usr/bin folder, but they don't have the .sh extension.

It'd be great if kafka-tools could support either.

Thoughts on this? I can try to do a PR but it might be messy

Regards, Stephane

simplesteph avatar Dec 14 '16 00:12 simplesteph

Seems like a good idea. Perhaps we should have an env var for KAFKA_DIST_BIN that points to the prefix for the local installation of Kafka. If that variable isn't set, then it just tries a few common locations before giving up.

bringhurst avatar Feb 09 '17 16:02 bringhurst

@bringhurst have you seen https://github.com/linkedin/kafka-tools/pull/51 ?

simplesteph avatar Feb 09 '17 22:02 simplesteph