Ask Your Question
4

How can Kafka be started on a Mac when the classpath is empty? Should the project be built first by executing the command './gradlew jar -PscalaVersion=2.13.10'?

asked 2022-12-02 11:00:00 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-08-25 19:00:00 +0000

scrum gravatar image

To start Kafka on a Mac when the classpath is empty, you can use the following command:

./bin/kafka-server-start.sh config/server.properties

This assumes that you have already downloaded the Kafka binary files and have set the KAFKA_HOME environment variable to the Kafka installation directory.

No, you do not need to build the project before starting Kafka. The ./gradlew jar -PscalaVersion=2.13.10 command is used to build the Kafka project, which generates the Kafka jar files that can be included in your own Java applications. It is not necessary for running Kafka itself.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-12-02 11:00:00 +0000

Seen: 27 times

Last updated: Aug 25 '22