-
Notifications
You must be signed in to change notification settings - Fork 2
benblamey/hom-2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# HASTE-o-MATIC ############# Tiered, streamed, data management tool. See the demo: https://www.dropbox.com/s/lz5l35g7q9l6lli/haste-o-matic-demo-dec.mov?dl=0 Part of the HASTE Project. http://haste.research.it.uu.se/ # DEPLOYMENT INSTRUCTIONS FOR UBUNTU 21.04 ############# # Connect to the server forwarding ports to these ports on the server: # localhost:10443 (for the microK8s dash) # localhost:80 (for the HTTP services) # See: https://www.ibm.com/support/pages/what-are-ssh-tunnels-and-how-use-them sudo apt update sudo snap install microk8s --classic sudo microk8s enable dns sudo microk8s enable ingress # Access the Kubernetes admin dashboard (this keeps running so recommended open in a new session) sudo microk8s dashboard-proxy sudo apt -y install git git clone https://github.com/benblamey/hom-2.git # modify the persistent volume to match the current machine (check the host and path) # The lines are near the top: head -n 50 hom-2/kubernetes/k8.yaml sudo microk8s kubectl create namespace hom sudo microk8s kubectl config set-context --current --namespace=hom sudo microk8s kubectl apply -f hom-2/kubernetes/k8.yaml # See if everything is running: sudo microk8s kubectl get all --all-namespaces # port forward the web ingress to localhost (in the background) sudo microk8s kubectl port-forward --namespace=ingress daemonset.apps/nginx-ingress-microk8s-controller 80:80 & # If port forwarding is setup correctly, you can now access: # http://localhost/gui/ (the GUI) # http://localhost/notebook/ (Jupyer) The password is hej-hom-impl-foo (Note that access to all the web services, including the notebook, is protected by the SSH login) # (re)Start the demo application can restart/begin streaming data: sudo microk8s kubectl delete pod demo-data ; sudo microk8s kubectl run demo-data --image benblamey/hom-impl-2.stream-worker2 --attach='true' --stdin --command --image-pull-policy='Always' --restart=Always -- java -cp output.jar -Droot.log.level=DEBUG -Dcom.benblamey.hom.demodata.DemoDataProducer.log.level=DEBUG -Dorg.slf4j.simpleLogger.defaultLogLevel=debug -DKAFKA_BOOTSTRAP_SERVER=kafka-service:9092 com.benblamey.hom.demodata.DemoDataMain Go into the GUI and add an input tier for "haste-input-data". Go into Jupyter and run tier-0 notebook to analyze the sample tier, following the video tutorial. # Admin HowTos # Manually admin the underlying kafka topics: bin/kafka-topics.sh --bootstrap-server kafka-service:9092 --list bin/kafka-topics.sh --bootstrap-server kafka-service:9092 --delete --topic wiki_tier_0 bin/kafka-consumer-groups.sh --bootstrap-server kafka-service:9092 --describe --all-groups bin/kafka-consumer-groups.sh --bootstrap-server kafka-service:9092 --delete --group sampler bin/kafka-topics.sh --bootstrap-server kafka-service:9092 --list | grep hom-topic | xargs -L1 bin/kafka-topics.sh --bootstrap-server kafka-service:9092 --delete --topic sudo microk8s kubectl describe pods sudo microk8s kubectl delete -n hom pod kafka sudo microk8s kubectl delete --all deployment -n hom sudo microk8s kubectl delete --all pod -n hom
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published