Nick Pirocanac created KAFKA-10361:
--------------------------------------
Summary: Windows batch files that use
/bin/windows/kafka-run-class.bat fail with a class path error on fresh
installation
Key: KAFKA-10361
URL: https://issues.apache.org/jira/browse/KAFKA-10361
Project: Kafka
Issue Type: Bug
Components: tools
Affects Versions: 2.6.0
Reporter: Nick Pirocanac
Attachments: kafka-run-class.bat
To reproduce:
# Use a windows OS
# Download latest Confluent Kafka Platform from:
[https://www.confluent.io/download/] (Select Self Managed Platform)
# Confluent Platform v5.5.1 will be downloaded.
# Unzip platform to directory
# Change to directory\bin\windows
# Attempt to run any batch file in the directory. (kafka-consumer-groups.bat
for example)
# Batch file fails with error: Classpath is empty. Please build the project
first e.g. by running 'gradlew jarAll'
# Follow directions on webpage:
[https://medium.com/@praveenkumarsingh/confluent-kafka-on-windows-how-to-fix-classpath-is-empty-cf7c31d9c787]
## Modify kafka-run-class.bat to include this block:
###
{code:visualbasic}
rem classpath addition for LSB style path
if exist %BASE_DIR%\share\java\kafka\* (
call:concat %BASE_DIR%\share\java\kafka\*
)
{code}
# Attempt to run any batch file in the directory. (kafka-consumer-groups.bat
for example)
# All tools work as expected.
This has been an issue for several versions now. It would be great to add this
as a permenant fix so that I don't have to keep repeating the work around on
each new confluent version.
Attached is the modified kafka-run-class.bat with the required change.
Thanks!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)