- Start the terminal and type the following commands
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python3
- Again, start the terminal and type the following commands
brew cask install java
brew cask install homebrew/cask-versions/adoptopenjdk8
brew install kafka
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties
- In a 2nd terminal window run
kafka-server-start /usr/local/etc/kafka/server.properties
- In a 3rd terminal window run
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic <name of the topic>
- Again, start the terminal and type the following commands
sudo mkdir -p /data/db
sudo chown -R
id -un/data/db
mongod
- In a 2nd terminal window run
mongo