• Stars
    star
    117
  • Rank 301,828 (Top 6 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created about 10 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Kubernetes-YARN

A version of Kubernetes using Apache Hadoop YARN as the scheduler. Integrating Kubernetes with YARN lets users run Docker containers packaged as pods (using Kubernetes) and YARN applications (using YARN), while ensuring common resource management across these (PaaS and data) workloads.

Kubernetes-YARN is currently in the protoype/alpha phase

This integration is under development. Please expect bugs and significant changes as we work towards making things more stable and adding additional features.

Getting started

Dev Environment

Kubernetes and Kubernetes-YARN are written in Go. Currently, vagrant and ansible based setup mechanims are supported. The instructions below are for creating a vagrant based cluster. For ansible instructions, see here.

Please ensure you have boot2docker, Go (at least 1.3), Vagrant (at least 1.6), VirtualBox (at least 4.3.x) and git installed. Run boot2docker to bring up a VM with a running docker daemon (this is used for building release binaries for Kubernetes).

$ $(boot2docker shellinit) #sets up docker env vars
$ echo $GOPATH
/home/user/goproj
$ mkdir -p $GOPATH/src/github.com/hortonworks/
$ cd $GOPATH/src/github.com/hortonworks/
$ git clone [email protected]:hortonworks/kubernetes-yarn.git
$ cd kubernetes-yarn
$ build/release.sh #builds kubernetes release binaries 
$ hack/build-go.sh #builds kubernetes client binaries
$ cluster/kube-up.sh #brings up kubernetes cluster

Following these steps will bring up a multi-VM cluster (1 master and 3 minions, by default) running Kubernetes and YARN. Please note that, depending on your local hardware and available bandwidth, bringing the cluster up could take a while to complete.

YARN Dashboard

By default, the kubernetes master is assigned the IP 10.245.1.2. The YARN resource manager runs on the name host. Once the vagrant cluster is running, the YARN dashboard accessible at http://10.245.1.2:8088/

HDFS Dashboard

The HDFS dashboard is accessible at http://10.245.1.2:50070/

Interacting with the Kubernetes-YARN cluster

Creating pods/running Docker containters

For instructions on creating pods, running containers and other interactions with the cluster, please see Kubernetes' vagrant instructions here

Running a test map-reduce job

In order to run a test map-reduce job, log into the cluster (ensure that you are in the kubernetes-yarn directory) and run the included test script.

$ vagrant ssh master
[vagrant@kubernetes-master ~]$ cd hadoop/install/hadoop-2.6.0-SNAPSHOT/
[vagrant@kubernetes-master hadoop-2.6.0-SNAPSHOT]$ sudo su #you need to be root to run this test script
[root@kubernetes-master hadoop-2.6.0-SNAPSHOT]# ./test-pi-yarn.sh

More Repositories

1

hive-testbench

Java
373
star
2

cloudbreak

CDP Public Cloud is an integrated analytics and data management platform deployed on cloud services. It offers broad data analytics and artificial intelligence functionality along with secure user access and data governance features.
Java
353
star
3

gohadoop

Go
309
star
4

data-tutorials

Hortonworks tutorials
Shell
283
star
5

ansible-hortonworks

Ansible playbooks for deploying Hortonworks Data Platform and DataFlow using Ambari Blueprints
Python
248
star
6

simple-yarn-app

Simple YARN application
Java
167
star
7

streamline

StreamLine - Streaming Analytics
Java
164
star
8

ambari-shell

CLI for Apache Ambari
Java
89
star
9

structor

Vagrant files creating multi-node virtual Hadoop clusters with or without security.
HTML
67
star
10

HDP-Public-Utilities

Shell
65
star
11

hoya

Deploys and manages applications within a YARN cluster
Java
64
star
12

hadoop-icons

58
star
13

hive-json

A rough prototype of a tool for discovering Apache Hive schemas from JSON documents.
Java
42
star
14

cloudbreak-deployer

Cloudbreak Deployer Tool
Shell
35
star
15

hortonworks-sandbox

hortonworks-sandbox
Python
34
star
16

spark-native-yarn

Tez port for Spark API
Scala
32
star
17

docker-e2e-protractor

This project is going to be retired soon, please use the successor at https://github.com/hortonworks/docker-e2e-cloud
Shell
24
star
18

cloud-haunter

Cloud agnostic resource monitoring and janitor tool
Go
22
star
19

docker-logrotate

Logrotation for docker containers
Shell
22
star
20

mini-dev-cluster

Mini YARN/DFS cluster for developing and testing YARN-based applications (e.g., Tez)
Java
20
star
21

ambari-rest-client

Groovy client library for Apache Ambari's REST API
Groovy
20
star
22

docker-socat

Shell
20
star
23

docker-cloudbreak-uaa

Docker container to run a UAA identity server
Dockerfile
19
star
24

dstream

Java
18
star
25

data_analytics_studio

16
star
26

cloudbreak-images

Saltstack scripts to bake amazon/gcc/azure/openstack images suitable for Cloudbreak
Shell
14
star
27

registry

Schema Registry
Java
13
star
28

cb-cli

Go
13
star
29

docker-cloudbreak

Docker image for Cloudbreak
Shell
12
star
30

cloudbreak-openstack-ansible

Setting up a production ready OpenStack installation
Shell
12
star
31

efm

Java
11
star
32

templeton

New Templeton Repository
Java
10
star
33

docker-protractor

Ubuntu Docker Image for Protractor
Shell
8
star
34

nifi-android-s2s

Java
7
star
35

hadoop0

A Docker sandbox with Hadoop 0.0 (aka Nutch 0.8-dev) and word count example.
Shell
7
star
36

HBaseReplicationBridgeServer

HBase Replication Bridge Server
Java
7
star
37

fieldeng-nifi-druid-integration

Java
7
star
38

docker-cloudbreak-autoscale

Docker image with Periscope
Shell
7
star
39

cloudbreak-docs

Cloudbreak 1.x documentation repo
JavaScript
6
star
40

spark-native-yarn-samples

Scala
5
star
41

fieldeng-scythe

Time Series Library
Scala
5
star
42

fieldeng-modern-clickstream

Shell
5
star
43

fluid-bootstrap-theme

FLUID product design system theme for Bootstrap.
HTML
5
star
44

cloudbreak-documentation

Cloudbreak 2.0 - 2.7.x documentation repo. Cloudbreak 2.8+ docs are stored in the https://github.com/hortonworks/dita-docs repo
CSS
5
star
45

cbd-quickstart

Shell
5
star
46

nifi-ios-s2s

Repository for an iOS client library for Apache NiFi
Objective-C
5
star
47

bman

Bman - An Apache Hadoop cluster manager
Python
4
star
48

salt-bootstrap

Tool for bootstrapping VMs launched by Cloudbreak
Go
4
star
49

docker-haveged

Haveged container to increase entropy
Makefile
4
star
50

pso-hdp-local-repo

Scripts used to create a Local Repo for installations.
Shell
4
star
51

fieldeng-pyscythe

Python Time Series Library
Python
2
star
52

minifi-java

Java
2
star
53

fieldeng-device-manager-demo

Java
2
star
54

docker-cloudbreak-shell

Shell
2
star
55

HA-Monitor

Java
2
star
56

fieldeng-cronus

Industrial IoT NiFi Layer
Java
2
star
57

isa-l-release

Public isa_l release repository
1
star
58

cloudbreak-service-registration

Go
1
star
59

fieldeng-ad-server

JavaScript
1
star
60

fieldeng-biologics-manufacturing-demo

Shell
1
star
61

docker-cloudbreak-autoscale-db

Shell
1
star
62

dp-cli-common

Go
1
star
63

docker-cloudbreak-server-db

Shell
1
star
64

fieldeng-nifi-atlas-lineage-reporter

Java
1
star
65

hue-release

Public hue release repository
1
star
66

fieldeng-data-simulators

Java
1
star
67

fieldeng-retail-store-monitor-demo

Java
1
star
68

fieldeng-nifi-livy-integration

Java
1
star
69

DGC-aetna

JavaScript
1
star
70

ccp-chain-parsing

Java
1
star
71

vega-lite-ui

JavaScript
1
star
72

fieldeng-credit-card-transaction-monitor-mobile-app

Java
1
star
73

azure-cbd-quickstart

Shell
1
star
74

docker-mybatis-migrations

Shell
1
star
75

minifi-cpp

C++
1
star
76

fieldeng-rhea

Industrial IoT UI Layer
CSS
1
star
77

iop-solr-stack

Ambari Solr mpack for helping BI/HDP migration
Python
1
star