• Stars
    star
    292
  • Rank 142,152 (Top 3 %)
  • Language
    Shell
  • Created over 10 years ago
  • Updated almost 7 years ago

Reviews

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

Repository Details

Docker image with Ambari

Ambari on Docker

This projects aim is to help you to get started with Ambari.

Please note that this project is not officially supported by Hortonworks and may not be suitable for production use. It can be used to experiment with Hadoop on Docker but for a complete and supported solution please check out Cloudbreak.

Install Docker

Follow the description at the docker getting started page for your appropriate OS: (Linux, Mac, Windows)

OSX

Ambari containers started by ambari-function are using bridge networking. This means that you will not be able to communicate with containers directly from host unless you specify the route to containers. You can do this with:

# Getting the IP of docker-machine or boot2docker
docker-machine ip <name-of-docker-vm>
# or
boot2docker ip

# Setting up the
sudo route add -net 172.17.0.0/16 <docker-machine or boot2docker>
# e.g:
sudo route add -net 172.17.0.0/16 192.168.99.100

Note: the above mentioned route command will not survive a reboot and you need to execute again after reboot of your machine.

Starting containers

This will start (and download if you never used it before) an image based on Centos 7 with pre-installed Ambari 2.2.0 ready to install HDP 2.3.

This git repository also contains an ambari-functions script which will launch all the necessary containers to create a fully functional cluster. Download the file and source it:

. ambari-functions or source ambari-functions

Now you can issue commands with amb-prefix like:

amb-settings

To start a 3 node cluster:

amb-start-cluster 3

It will launch containers like this (1 Ambari server 2 agents 1 consul server):

CONTAINER ID        IMAGE                          COMMAND                  STATUS              NAMES
52b563756d26        hortonworks/ambari-agent       "/usr/sbin/init syste"   Up 9 seconds        amb2
ddfc8f00d30a        hortonworks/ambari-agent       "/usr/sbin/init syste"   Up 10 seconds       amb1
ca87a0fb6306        hortonworks/ambari-server      "/usr/sbin/init syste"   Up 12 seconds       amb-server
7d18cc35a6b0        sequenceiq/consul:v0.5.0-v6   "/bin/start -server -"    Up 17 seconds       amb-consul

Now you can reach the Ambari UI on the amb-server container's 8080 port. Type the amb-settings for IP:

amb-settings
...
AMBARI_SERVER_IP=172.17.0.17

Cluster deployment via blueprint

Once the container is running, you can deploy a cluster. Instead of going to the webui, we can use ambari-shell, which can interact with ambari via cli, or perform automated provisioning. We will use the automated way, and of course there is a docker image, with prepared ambari-shell in it:

amb-shell

Ambari-shell uses Ambari's Blueprints capability. It posts a cluster definition JSON to the ambari REST api, and 1 more json for cluster creation, where you specify which hosts go to which hostgroup.

Ambari shell will show the progress in the upper right corner.

Multi-node Hadoop cluster

For the multi node Hadoop cluster instructions please take a look at Cloudbreak.

If you don't want to check out the project from github, then just dowload the ambari-fuctions script, source it and deploy a an Ambari cluster:

curl -Lo .amb j.mp/docker-ambari && source .amb && amb-deploy-cluster

More Repositories

1

hadoop-docker

Hadoop docker image
Dockerfile
1,208
star
2

docker-spark

Shell
763
star
3

sequenceiq-samples

SequenceIQ Hadoop examples
Java
116
star
4

docker-alpine-dig

Makefile
53
star
5

docker-kylin

Kylin running in a Docker cluster
Shell
46
star
6

docker-ngrokd

dockerized selfhosted ngrok deamon
Shell
41
star
7

docker-liquibase

Docker image with Liquibase
Shell
40
star
8

periscope

Periscope brings SLA policy based autoscaling to Hadoop
Java
36
star
9

docker-serf

Serf on Docker containers
Shell
34
star
10

docker-pam

33
star
11

docker-hadoop-ubuntu

A Hadoop image on Ubuntu
Shell
32
star
12

docker-phoenix

SQL on HBase with Apache Phoenix in Docker
Shell
30
star
13

yarn-monitoring

Hadoop YARN monitoring with R
R
19
star
14

cloudbreak-shell

CLI shell for the Cloudbreak project
16
star
15

docker-kerberos

KDC for Cloudbreak provisioned Hadoop clusters
Shell
15
star
16

docker-spark-native-yarn

13
star
17

docker-dnsmasq

dnsmasq on Docker containers
Shell
13
star
18

uluwatu

Uluwatu is a web UI for Cloudbreak - a cloud agnostic Hadoop as a Service API.
13
star
19

docker-baywatch-client

Logstash client for baywatch
Shell
12
star
20

docker-hadoop-build

Docker contaier to build Apache Hadoop
Shell
12
star
21

docker-baywatch

Elasticsearch and Kibana
Nginx
12
star
22

docker-tez

Create an official docker.io image with Hadoop 2.5, and Tez 0.5.0
Shell
10
star
23

vagrant-boxes

Ruby
9
star
24

docker-zedapp

Shell
9
star
25

docker-drill

Apache Drill Docker container
Shell
9
star
26

docker-ambari-shell

docker image to run ambari-shell
Shell
6
star
27

docker-busybox

dev tools on busybox
5
star
28

ambari-vagrant

Ambari on vagrant
Shell
5
star
29

cloudbreak-rest-client

Groovy client library for the Cloudbreak project
5
star
30

docker-enter

5
star
31

munchausen

docker
Go
5
star
32

hbase-client

SequenceIQ HBase utility/client library
Java
5
star
33

docker-hoya

A docker file to create an official docker.io image with Hadoop 2.3, Hortonworks Hoya 0.13 and HBase 0.98
Shell
4
star
34

azure-rest-client

Groovy client library for the Azure cloud
Groovy
4
star
35

docker-dind

Docker in Docker
Shell
4
star
36

bintray-cli

3
star
37

sequenceiq.github.io

sequenceiq GH page: http://sequenceiq.github.io/ offcial page:
HTML
3
star
38

docker-java

3
star
39

sultans

Centralized user management for SequenceIQ apps
HTML
3
star
40

docker-mkdocs

Docker container to generate nice documentation
CSS
3
star
41

consul-plugins-gcp-p12

Plugin to save a base64 encoded p12 file from Consul's KV store to a file
Shell
3
star
42

consul-plugins-gcs-connector

Plugin to download the Google Cloud Storage Connector for Hadoop
Shell
2
star
43

gunroot

modules for https://github.com/gliderlabs/glidergun
Shell
2
star
44

job-runner

Scala
2
star
45

docker-tag

Shell
2
star
46

cb-experimental

SQLPL
2
star
47

hadoop-cloud-scripts

Helper scripts to provision Hadoop in the cloud.
Shell
2
star
48

consul-plugins-spark

Shell
2
star
49

docker-ssh

Docker image with SSH server
Shell
2
star
50

docker-s3upload

Shell
2
star
51

docker-consul-watch-plugn

Shell
2
star
52

consul-plugins-titan

Shell
1
star
53

consul-plugins-install

Plugin to install a new plugin from a Github repository
Shell
1
star
54

docker-dev

Base dev Docker image
1
star
55

slider

Python
1
star
56

docker-knox

Hadoop 2.3 and Apache Knox 0.3.0 on Docker
Shell
1
star
57

ambari-formation

Python
1
star
58

aws-domain

Shell
1
star
59

docker-events

Shell
1
star
60

blog

company blog available at: blog.sequenceiq.com
JavaScript
1
star
61

docker-cloudbreak-releaser

Shell
1
star
62

docker-hipchatbot

CoffeeScript
1
star
63

cloudbreak-deployment

1
star