NOte: ctivemq-apollo 0/1 ContainerCreating 0 57s
mkdir indicar
cd indycar
git clone https://github.com/DSC-SPIDAL/IndyCar.git
export INDYCAR=`pwd`
- Install Minicube https://minikube.sigs.k8s.io/docs/start/
- Install kubectl https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-using-native-package-management
sudo apt install maven
maven install
ls ~/.m2
git clone https://github.com/numenta/htm.java-examples.git
# git clone git@github.com:laszewsk/htm.java-examples.git
cp -r htm.java-examples/libs/algorithmfoundry ~/.m2/repository
cd containerize
mkdir ../data
cd ../data
# old link
# gopen https://drive.google.com/u/0/uc?id=1GMOyNnIOnq-P_TAR7iKtR7l-FraY8B76&export=download
gopen https://drive.google.com/file/d/11sKWJMjzvhfMZbH7S8Yf4sGBYO3I5s_O/view?usp=sharing?export=download
cd ../containerize
minikube delete
minikube config set memory 10000
minikube config set cpus 8
minikube start driver=docker
cd $INDYCAR/containerize
touch TOKEN.txt
./setup_k8.sh
Repeat the command to see the progress
kubectl get services; kubectl get pods
terminal 1:
$ ssh machine machine$ vncserver
terminal 2:
$ ssh ssh -L 5901:localhost:5901 -N USER@REMOTE_IP
$ vncviewer localhost:1
terminal 3:
In terminal that we use on machine
export DISPLAY=:1
kubectl create -f storm/zookeeper.json kubectl create -f storm/zookeeper-service.json
Options to monitor
- get services; kubectl get pods
- watch -n 2 kubectl logs zookeeper
- kubectl logs zookeeper | tail
kubectl create -f storm/storm-nimbus.json kubectl create -f storm/storm-nimbus-service.json
Options to monitor
- get services; kubectl get pods
- watch -n 2 kubectl logs nimbus
- kubectl logs nimbus | tail
kubectl create -f storm/storm-ui.json kubectl create -f storm/storm-ui-service.json
Open teh Storm GUI
kubectl get services
STORM_PORT=`kubectl get services | fgrep storm | sed 's/:/\t/' |sed 's/\//\t/' | awk '{ print $6 }'`
gopen http://`minikube ip`:$STORM_PORT
kubectl create -f storm/storm-worker-controller.json
kubectl create -f activemq-apollo.json kubectl create -f activemq-apollo-service.json
cd
sh minikube-setup.sh
emacs -nw socket-server.yaml
kubectl create -f socket-server.yaml
minikube ssh "sudo chmod -R 777 /nfs/indycar" kubectl create -f storm/jupyter.yaml kubectl get services | fgrep jupyter-notebook minikube ssh "sudo chmod -R 777 /nfs/indycar"
NOTEBOOK_PORT=kubectl get services | fgrep jupyter | sed 's/:/\t/' |sed 's/\//\t/' | awk '{ print $6 }'
gopen http://minikube ip
:$NOTEBOOK_PORT
-
Presentation with install instructions https://docs.google.com/presentation/d/1qr9vKhVsf3mvZtyRtnAdATi6qmyEOosnmD953_1V-_g/edit#slide=id.g8bab96273d_6_921
Live demo is currently powered by Apollo MQTT Broker.
cd utils/record-streamer
mvn clean install
Update socket-server/src/main/java/iu/edu/indycar/ServerConstants.java
with required configurations.
cd socket-server
mvn clean install
mvn install:install-file -DcreateChecksum=true -Dpackaging=jar -Dfile=streaming/src/main/resources/htm.java-0.6.13-all.jar -DgroupId=org.numenta.nupic -DartifactId=htm-java -Dversion=0.6.13
cd streaming
mvn clean install
Flux template for 33 cars is available at streaming/intel_indycar.yaml
storm jar Indycar500-33-HTMBaseline-1.0-SNAPSHOT.jar org.apache.storm.flux.Flux --remote intel_indycar.yaml
java -jar web-socket-1.0-SNAPSHOT-jar-with-dependencies.jar <path_to_indycar_log>