Git Product home page Git Product logo

k8s-bigdata's Introduction

k8s-bigdata

Apache Spark with HDFS cluster within Kubernetes.

Overview

As the description says, this repository is an Apache Spark with an HDFS cluster within Kubernetes. Although it contains Intel HiBench benchmark suite for testing CPU, IO, and network usage, the cluster can run as a regular one.

Supported HiBench Workloads

  • Micro
  • Machine Learning
  • Websearch

Building k8s-bigdata

You can just execute the build.sh file.

$ ./build.sh

Submitting the cluster

To submit the cluster and prepare it, you must type the following ./scripts/init-cluster.sh <WORKLOAD> <BENCHMARK> <INPUT_SIZE> Where:

  1. WORKLOAD represents a workload from HiBench
  2. BENCHMARK represents the benchmark
  3. INPUT_SIZE means the size of the workload for the benchmark

Running HiBench

To run a HiBench benchmark, you can run ./scripts/run.sh <WORKLOAD> <BENCHMARK> The report saved will be in the base directory with the name hibench.report.

Features

  • k8s-bigdata currently uses Apache Spark 2.4 with Hadoop 2.7 binary
  • No need to register manually each datanode
  • Kubernetes will create a datanode for each node registered in the cluster
  • Can specify which node namenode, resourcemanager, and historyserver will be launched by assigning the label type=master. If you are new to Kubernetes, type kubectl label nodes YOUR NODE type=master

Future works

  • ๐Ÿ—ด Support data streaming frameworks such as Apache Kafka
  • โœ“ Switch static to dynamic environment variables for containers (avoid building on every change in ./hadoop/base/hadoop.env file)
  • โœ“ Implement a configuration parser to run HiBench without changing run.sh
  • โœ“ Implement a solution to change the size of input data for HiBench benchmarks without accessing namenode pod directly

Architecture

Based on the locality of reference, HiBench, Hadoop Namenode, and Spark Master are within the same container as processes. Also, HiBench needs the Hadoop and Spark directories located at the namenode pod.

Alt text

References

k8s-bigdata's People

Contributors

hrchlhck 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.