You can also make a copy of the server.properties file anywhere in your computer and edit that file instead, and reference it in the Zookeeper start command shown above. This article may require cleanup to meet GameBrews quality standards. Start Zookeeper using the update server.properties file as shown above You can also make a copy of the zoo.cfg file anywhere in your computer and edit that file instead, and reference it in the Zookeeper start command shown aboveĮdit the server.properties file at /usr/local/etc/kafka/server.properties and set the following to your heart's desire log.dirs=/your/path/to/data/kafka ![]() Start Zookeeper using the update zoo.cfg file as shown above Install OpenJDK brew install -cask temurin Install a specific version brew tap homebrew/cask-versions sudo softwareupdate -install-rosetta brew install -cask temurin8 brew install -cask temurin11 Verify if Java is installed The package installer will put the JDK into this location: /Library/Java/JavaVirtualMachines/temurin-17. Kafka is now started, congratulations! Optional: Changing the Kafka and Zookeeper data storage directory when using HomebrewĮdit the zoo.cfg file at /usr/local/etc/zookeeper/zoo.cfg and set the following to your heart's desire dataDir=/your/path/to/data/zookeeper brew install -cask temurin11 Configure JAVAHOME in your shell with the default version of Java. echo eval '(/opt/homebrew/bin/brew shellenv)' > /Users/vishal/.zprofile eval '(/opt/homebrew/bin/brew shellenv)' Test if Homebrew is in your PATH. After the installation is complete, Configure the. brew tap adoptopenjdk/openjdk brew cask install adoptopenjdk8. ![]() For the many use cases depending on an older version (commonly Java 8), the AdoptOpenJDK project makes it possible with an extra step. Ensure to keep both terminal windows opened, otherwise you will shut down Kafka or Zookeeper. Install Java Environment Open the terminal and enter java -version to check the current Java version. Using brew install Java JDK 8 Use Homebrew to install, the version is the latest version of OpenJDK (Java 14): brew install java.
0 Comments
Leave a Reply. |