Bigkube is about big data and Spark local development automation - automated deployments, well fitted components, integration testing with SBT right from IDE console.
- Run
powershell
as Administrator. - Turn of Hyper-V.
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
- Install virtualbox
- Install Docker for windows
- Install choco
- Install Minikube
- Install kubernetes-ctl
- Install Helm
- Install JDK
- Install SBT
- Make sure SBT version is not less than 1.2.8 and there's Scala 2.11 sdk is set for the project
- Run
sbt assembly
repo's base dir. - Make sure
minikube start --cpus=4 --memory=8192 --mount
flags set.
cd deployment
- DON'T SKIP THIS.\bigkube.ps1 serve-jar
- read output instructions carefully, ensure jar serving host ip is substituted according instructions- Modify
Kafka.yaml
, change external kafka listener tominikube ip
.\bigkube.ps1 create
- creates all necessary infrastructure. Troubleshooting: don't worry if some pods are "red" right after deployment. All Hadoop deployments are smart enough to wait for each other to be stand by in appropriate sequence. Just give them some time..\bigkube.ps1 spark-init
- inits Helm (with Tiller) and Spark operator.
Note: bigkube.ps1
resolves all service accounts issues, secrets, config maps and etc.
0.Don't forget cd ..
. Come back to sbt folder.
- Write your own integration test using
SparkController
. Examples provided. - Change minkube ip and mssql, presto ports in
it.conf
. - Simply run
sbt it:test
from repo's base dir - and that's it, your Spark app is deployed into minikube and tests are executed locally on your host machine.
minikube dashboard
- Run
minikube service list
. You can go tonamenode
andpresto
UI with corresponding URLs. - One can use Metabase, an open source tool for rapid access data. Works with Presto and SQLServer as well.
Alongside with kubectl delete -f file.yaml
you can use:
.\bigkube.ps1 delete
- deletes all bigkube infrastructure.\bigkube.ps1 spark-drop
- deletes helmed spark operator
Thanks to Nik Katalnikov for linux & macos implementation. Thanks to Big Data Europe for Hadoop Docker images. Thanks to Valeira Katalnikova for Bigkube logo.