GithubHelp home page GithubHelp logo

kunihito / bigkube Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nikkatalnikov/bigkube

0.0 1.0 0.0 702 KB

Minikube for big data with Scala and Spark

Scala 37.34% Shell 8.87% PowerShell 6.50% Dockerfile 2.77% Python 44.52%

bigkube's Introduction

Bigkube - effortless Spark applications deployment and testing in minikube.


Bigkube is about big data and Spark local development automation - automated deployments, well fitted components, integration testing with SBT right from IDE console.


Prerequisites

  1. Install Docker
  2. Install Minikube
  3. Get Helm
  4. Get Scala and SBT
  5. Make sure SBT version is not less than 1.2.8 and there's Scala 2.11 sdk is set for the project

Before deployment

  1. Make sure minikube has --cpus=4 --memory=8192 flags set. Make sure the appropriate vm-driver is set (use minikube config set).
  2. Run sbt assembly repo's base dir.

Deployment steps

  1. cd deployment - DON'T SKIP THIS
  2. ./bigkube.sh --serve-jar - read output instructions carefully, ensure jar serving host ip is substituted according instructions
  3. ./bigkube.sh --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.
  4. ./bigkube.sh --spark-init - inits Helm (with Tiller) and Spark operator.

Note: bigkube.sh resolves all service accounts issues, secrets, config maps and etc.

Run integration tests

  1. Write your own integration test using SparkController. Examples provided.
  2. 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.

GUI

  1. minikube dashboard
  2. Run minikube services list. You can go to namenode and presto UI with corresponding URLs.
  3. One can use Metabase, an open source tool for rapid access data. Works with Presto and SQLServer as well.

Delete deployments

Alongside with kubectl delete -f file.yaml you can use:

  1. ./bigkube.sh --delete - deletes all bigkube infrastructure
  2. ./bigkube.sh --spark-drop - deletes helmed spark operator

Airflow inside of the bigkube with custom Spark Operator

  1. cd deployment
  2. You need just run ./bigkube.sh --airflow-init and all necessary airflow staff should be up and running
  3. minikube service airflow will open your browser with Airflow UI

For more details, please visit this repository Airflow


Acknowledgments

Thanks to Nick Grigoriev for the idea and help. Thanks to Big Data Europe for Hadoop Docker images. Thanks to Valeira Katalnikova for Bigkube logo.

bigkube's People

Contributors

nikkatalnikov avatar grigorievnick avatar vitaliy-savkin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.