# 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](https://github.com/sequenceiq/cloudbreak).
## Install Docker
Follow the description at the docker getting started page for your appropriate OS: ([Linux](http://docs.docker.com/linux/started/), [Mac](http://docs.docker.com/mac/started/), [Windows](http://docs.docker.com/windows/started/))
### 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](https://cwiki.apache.org/confluence/display/AMBARI/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](http://hortonworks.com/hadoop/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
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论





格式:docx 资源大小:2.3MB 页数:32



格式:pdf 资源大小:114.7KB 页数:2















格式:mp4 资源大小:22.3MB


格式:txt 资源大小:147.0B 页数:1






收起资源包目录






























共 21 条
- 1
资源评论

- 普通网友2018-04-23根本不能用 骗子骗子

xiaoj08
- 粉丝: 1
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 大数据时代下审计工作的变革与影响.docx
- 李文景Flash的引导层动画制作课件.ppt
- 微指令实现模型机 硬布线实现模型机. Course design of computer composition in SDU implementation on Quartus II (山东大学计算
- 百万公众网络学习工程.docx
- 职业学院计算机教学的相关方法探究.docx
- 软件工程师KPI表.xls
- 传媒类实验室信息化建设的设计与实践学位.doc
- 基于大学校园网的网络课堂教学模式的研究-远程教育论文.docx
- 施工项目管理条例.doc
- 大学生网络使用及舆情认知情况调研分析.docx
- 大数据背景下机场旅客的特征浅析.docx
- 数字集群移动通信网络体制分析.docx
- 计算机技术在数字监控系统中的应用分析.docx
- 《基于网络平台的高中生日语自主学习方式探究》课题初探.docx
- 网络与计算中心服务器(虚拟机)申请表.doc
- 中国光磁通信元器件行业竞争态势及进入壁垒.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
