尝鲜系列之手把手教你搭建Ambari2.0.0(在线环境)
来源:互联网 发布:控制网络的技术特点 编辑:程序博客网 时间:2024/05/29 15:33
1. 资源准备:
1.1下载ambari repository
http://public-repo-1.hortonworks.com/ambari/centos6/ambari-2.0.0-centos6.tar.gz
1.2下载Hortonworks repository
http://public-repo-1.hortonworks.com/HDP/centos6/HDP-2.2.0.0-centos6-rpm.tar.gz
http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6/HDP-UTILS-1.1.0.20-centos6.tar.gz
1.3下载其它资源
http://public-repo-1.hortonworks.com/ARTIFACTS/UnlimitedJCEPolicyJDK7.zip
http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-7u67-linux-x64.tar.gz
2. 环境准备
2.1本机环境
HostName
IP
OS
Cluster01.hadoop
192.168.56.101
Centos X64 6.5
2.2升级Openssl
由于cenos 6.5 openssl有bug,需升级openssl,否则在后面自检时报错。升级时需保证外网可用。
# yum update openssl
# vim /etc/hosts
增加:
192.168.56.101 cluster01.hadoop
# hostname cluster01.hadoop
# vim /etc/sysconfig/network
HOSTNAME=localhost.localdomain
修改为:
HOSTNAME=cluster01.hadoop
2.4配置无密码连接
# ssh-keygen #一路回车
# cd ./.ssh
# cat id_rsa.pub >> authorized_keys
多台服务器时,在每一台服务器上运行一遍ssh-keygen,并将本authorized_keys复制到其它目标服务器的~/.ssh目录。
测试无密码连接:
# ssh cluster01.hadoop
同时测试其它所有服务器连接
# exit
2.5关闭iptables服务
查看iptables状态:
# service iptables status
关闭iptables服务:
# chkconfig iptables off (重启后生效)
# service iptables stop (临时关闭)
查看iptables状态:
2.6关闭selinux服务
查看selinux状态:
# /usr/sbin/sestatus -v
关闭selinux:
# vim /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled,重启后生效
# setenforce 0 (临时生效)
2.7启动Httpd服务
yum -y install httpd
chkconfig --levels 235 httpd on
service httpd start
# chkconfig httpd on (重启后生效)
#service httpd start 立即生效,重起服务器后须重新启动服务
3.安装ambari
3.1上传软件包
在/home目录下新建hortonworks文件夹
将安装所需软件上传至该文件夹内,显示该文件夹内所有文件:
# ls /home/hortonworks
3.2解压软件到 /var/www/html
# cd /var/www/html
# tar -zxvf /home/hortonworks/ambari-2.0.0-centos6.tar.gz
# tar -zxvf /home/hortonworks/HDP-2.2.4.2-centos6-rpm.tar.gz
# tar -zxvf /home/hortonworks/HDP-UTILS-1.1.0.20-centos6.tar.gz
3.3将ambari.repo和hdp.repo文件拷贝到本地yum源下
# cd /etc/yum.repos.d
# ls
# cp /var/www/html/ambari/centos6/2.x/updates/2.0.0/ambari.repo /etc/yum.repos.d/
# cp /var/www/html/HDP/centos6/2.x/updates/2.2.4.2/hdp.repo /etc/yum.repos.d/
安装yum-plugin-priorities包
# yum -y install yum-plugin-priorities(是的repo中的priority优先级生效,如果有想用自己重新编译的ambari的话会用到)
3.4清除原yum列表
# yum clean all
3.5更新查看yum列表是否有ambari
# yum list|grep ambari
4. 安装ambari
4.1安装ambari-server
# yum -y install ambari-server
4.2配置ambari 服务
将jdk-7u67-linux-x64.tar.gz和UnlimitedJCEPolicyJDK7.zip上传到目录/var/lib/ambari-server/resources
# cp /home/hortonworks/jdk-7u67-linux-x64.tar.gz /var/lib/ambari-server/resources
# cp /home/hortonworks/UnlimitedJCEPolicyJDK7.zip /var/lib/ambari-server/resources
# ls /var/lib/ambari-server/resources
# ambari-server setup (一路选择默认值)postgresql数据库
4.3批量安装Centos Development Tools
# yum -y groupinstall "Development tools"
4.4登入ambari管理页面
# ambari-server start
5. Transparent Huge Pages 禁用
echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag
echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag
http://192.168.56.101:8080/ 账户:admin 密码:admin
搭建完成!
- 尝鲜系列之手把手教你搭建Ambari2.0.0(在线环境)
- 尝鲜系列之手把手教你搭建Ambari2.2.0(全分布离线环境)
- 尝鲜系列之手把手教你使用Ambari2.0.0
- 尝鲜系列之手把手教你汉化Ambari2.0.0
- 尝鲜系列之手把手教你安装使用solr
- 手把手教你搭建ucenter环境
- 手把手教你appium_mac上环境搭建
- 手把手教你搭建 Selenuim 自动化环境
- 手把手教你搭建Java开发环境
- 手把手教你搭建 vue 环境
- 手把手系列之十七——手把手教你做蛋挞
- 手把手系列之三十四——手把手教你做蛋饺
- 手把手系列之四十——手把手教你做双皮奶
- 手把手系列之四十八—手把手教你做寿司
- 手把手搭建教你搭建vim的IDE环境
- 手把手教你系列
- 手把手教你系列
- 手把手教你系列
- SharePoint Framework系列(八)-部署client-site web part到SharePoint环境中
- 制作个人简历
- webView的基本属性设置以及遇到的一些坑
- asp.net网站项目开发,删除文件夹后Session丢失问题解决
- 理解RESTful架构
- 尝鲜系列之手把手教你搭建Ambari2.0.0(在线环境)
- js与jQuery选择器
- 常用代码
- Tachyon(现名:Alluxio):Spark生态系统中的分布式内存文件系统
- Android上传文件到Web服务器,PHP接收文件(一)
- 理解python:@classmethod 和@staticmethod
- 使用Fiddler进行iOS APP的HTTP/HTTPS抓包
- 【框架基础】:Java反射机制详解(三)
- 笔记:oracle表设置主键自增长