- This installation has been tested with SDK-Man and Java version
sdk upgrade
sdk install 16.0.1.hs-adpt
sdk use 16.0.1.hs-adpt
-
Cassandra resource consumption is very high and it competes with the RabbitMQ and Kafka streams of this demo. Considering common machines, you are expected to have an anonymous login able Cassandra installation on your machine
-
Cassandra for MAC-OS (Make sure that when you start Cassandra, that you do so in a Java 8 environment):
bash brew install cassandra cassandra
-
Hosts When making tests with spark agains the dockerized environment, Kafka will have to reply back. For that we need this mapping:
127.0.0.1 bl-bridge-01-server
Status: Under development
Option 1
$ brew tap caskroom/cask
$ brew install brew-cask-completion
$ brew install brew-cask
$ brew cask install virtualbox
Option 2
Go to: Download VirtualBox
You might need this:
$ sudo spctl --master-enable
Option 1
$ brew cask install docker $ docker-machine create dev
Option 2
$ docker build --rm=true -t bridge-logistics-image .
$ docker run -i -t -d -p 5432:5432 bridge-logistics-image
$ docker container ls --all
brew install apache-spark
spark-shell
NOTE: ONLY if everything else fails and you have Spark Consumers stuck in cache:
sudo rm -rf /private/var/folders
brew install zookeeper
brew upgrade zookeeper
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties
tail -f /usr/local/var/log/zookeeper/zookeeper.log
brew install kafka
brew upgrade kafka
kafka-server-start /usr/local/etc/kafka/server.properties
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic TEMPERATURE
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic HUMIDITY
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic WINDSPEED
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic WINDDIRECTION
pip install futures
pip install pebble
pip install pika
pip install coapthon
pip install paho-mqtt
pip install kafka-python
pip install requests
- Check logs
docker container logs --details bridge-logistics-bl-central-cassandra_1
- List running containers
docker ps --format '{{.ID}} - {{.Names}}'
- List all containers
docker ps -a --format '{{.ID}} - {{.Names}}'
- Stop all containers manually
docker ps --format '{{.ID}}' | xargs docker stop
cd /Library/PostgreSQL/11
cd /Library/PostgreSQL/13
open open uninstall-postgres.app