1. 准备6和7的 YUM源包
1.1 centos 下载后解压到同一个目录
http://mirrors.163.com/centos/6/isos/x86_64/CentOS-6.9-x86_64-bin-DVD1.iso
http://mirrors.163.com/centos/6/isos/x86_64/CentOS-6.9-x86_64-bin-DVD2.iso
mount -o loop CentOS-6.9-x86_64-bin-DVD1.iso /mnt
/bin/cp -r /mnt/* /data/mirrors/centos69/
umount /mnt
mount -o loop CentOS-6.9-x86_64-bin-DVD2.iso /mnt
/bin/cp -r /mnt/* /data/mirrors/centos69/
http://mirrors.163.com/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-1611.iso
1.2 epel
https://mirrors.aliyun.com/epel/6/x86_64/
https://mirrors.aliyun.com/epel/7/x86_64/
http://centos.ustc.edu.cn/epel/6/x86_64/
http://centos.ustc.edu.cn/epel/7/x86_64/

1.3 ambari
1.4 hdp
见hdp6.repo 和 hdp7.repo
1.5 hdp_utils
见hdp6.repo 和 hdp7.repo

2. 下载yum源包到本地
mkdir mirrors
yum repolist
reposync -r epel6_x86_64

3. 环境准备
3.0 hosts setup
3.1 ssh-keygen
3.2 ssh-copy-id
3.3 iptables
chkconfig iptables off
3.4 NetworkManager
chkconfig NetworkManager off
3.5 selinux
cat /etc/sysconfig/selinux
3.6 关闭THP
3.7 设置最大打开文件
/etc/security/limits.conf
* soft nofile = 65536
* hard nofile = 65536
root soft nofile 65536
root hard nofile 65536

/etc/profile
ulimit -n 65536

3.8 JDK 自动下载即可
3.9 NTP
chkconfig ntpd on;service ntpd restart
3.10 安装httpd服务,架设yum源
service httpd start
ln -s /data/mirrors /var/www/html/mirrors
yum clean all
yum makecache
yum repolist
3.11 安装base包
yum install yum-utils createrepo mysql-connector-java httpd links openssh wget vim openssh-clients openssl gcc openssh-server mysql-connector-odbc -y

4. ambari 安装

5. HDP安装
4.1 HA安装

引用:
http://www.yp14.cn/2016/12/09/Centos7-2%E5%AE%89%E8%A3%85Ambari2-4-2-HDP2-5-3%E6%90%AD%E5%BB%BAHadoop%E9%9B%86%E7%BE%A4/
https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-installation/content/hdp_25_repositories.html
http://mirrors.163.com/centos/
http://mirrors.aliyun.com/
ftp://gmcc:gmcc@www.wangyougx.com
ftp://gmcc:gmcc@www.wangyougx.com/sdi1/hadoop%B0%B2%D7%B0%B0%FC/ambari-2.5.1.0-centos6.tar.gz

http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.4.2.0/ambari-2.4.2.0-centos6.tar.gz
http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.4.2.0/ambari-2.4.2.0-centos7.tar.gz
http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.3.0/HDP-2.5.3.0-centos6-rpm.tar.gz
http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos6/HDP-UTILS-1.1.0.21-centos6.tar.gz
http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.5.3.0/HDP-2.5.3.0-centos7-rpm.tar.gz
http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7/HDP-UTILS-1.1.0.21-centos7.tar.gz
http://centos.ustc.edu.cn/epel/6/x86_64/

centos安装hdp的更多相关文章

  1. CentOS安装gitlab,gerrit,jenkins并配置ci流程

    CentOS安装gitlab,gerrit,jenkins并配置ci流程 By Wenbin juandx@163.com 2016/4/9 这是我参考了网上很多的文档,配置了这三个软件在一个机器上, ...

  2. 【推荐】CentOS安装Subversion-1.8.11+HTTP协议支持配置

    注:以下所有操作均在CentOS 6.5 x86_64位系统下完成. 我们需要搭建一个自己的SVN服务器. 此外,搭建好的SVN服务器除了需要支持svn协议外,最好还需要支持HTTP协议和HTTPS协 ...

  3. 【推荐】CentOS安装PHP-5.6.4+扩展安装+安全配置+性能配置

    注:以下所有操作均在CentOS 6.5 x86_64位系统下完成. #准备工作# 前段时间PHP官方发布了一个重要的安全升级公告,修复了两个unserialize函数的严重漏洞,目前受影响的版本有: ...

  4. CentOS安装Apache-2.4.10+安全配置

    注:以下所有操作均在CentOS 6.5 x86_64位系统下完成. #准备工作# 在安装Nginx之前,请确保已经使用yum安装了各基础组件,并且配置了www用户和用户组,具体见<CentOS ...

  5. CentOS安装Nginx-1.6.2+安全配置

    注:以下所有操作均在CentOS 6.5 x86_64位系统下完成. #准备工作# 在安装Nginx之前,请确保已经使用yum安装了pcre等基础组件,具体见<CentOS安装LNMP环境的基础 ...

  6. CentOS安装MySQL-5.6.10+安全配置

    注:以下所有操作均在CentOS 6.5 x86_64位系统下完成. #准备工作# 在安装MySQL之前,请确保已经使用yum安装了各类基础组件,具体见<CentOS安装LNMP环境的基础组件& ...

  7. 转: CentOS 安装 SVN1.8 客户端

     from: http://blog.csdn.net/clementad/article/details/46898091 CentOS 安装SVN客户端 标签: subversionrpmcent ...

  8. CentOS安装gitLab服务器

    首先利用gitlab-install-el6.sh安装,比较简单: (出处:http://www.linuxidc.com/Linux/2013-06/85754.htm) 1:如果有条件,提供一台全 ...

  9. 【推荐】CentOS安装Tomcat-7.0.57+启动配置+安全配置+性能配置

    注:以下所有操作均在CentOS 6.5 x86_64位系统下完成. #准备工作# 在安装Tomcat之前,请确保已经安装了JDK-1.7环境,具体见<CentOS安装JDK-1.7>. ...

随机推荐

  1. Vue.之.项目开发工具选用

    Vue.之.项目开发工具选用 上篇文章记录了创建项目,这篇文件记录,如何对创建的项目进行开发.这里选择一个工具:Visual Studio Code (请自行下载安装) 1. 打开VSCode工具,并 ...

  2. java根据list中的对象某个属性排序

    1. Collections.sort public class Test { public static void main(String[] args) throws Exception { Ci ...

  3. day38 10-Spring的Bean的属性的注入

    后处理bean,如果是返回bean,那么什么都不做直接把这个类原封不动地给你返回回去. 在它执行一些逻辑方法的时候对它进行逻辑增强,比如说进行时间监控,权限管理,日志的记录等等. 要做肯定是对正常的类 ...

  4. BZOJ2069: [POI2004]ZAW

    2069: [POI2004]ZAW Time Limit: 10 Sec  Memory Limit: 64 MBSubmit: 303  Solved: 138[Submit][Status][D ...

  5. js获取时间差值

    function GetTime(firstDate, secondDate) { // 1.对事件进行处理 var firsttime = Date.parse(firstDate + " ...

  6. 建立DbLink 时报ORA-01017/ORA-02063分析及解决

    今天在11G的oracle数据库上创建DBlink连接10g的库时, 出现: ORA-01017: invalid username/password; logon denied ORA-02063: ...

  7. 利用Factory-boy和sqlalchemy来批量生成数据库表数据

    测试过程中免不了要构造测试数据,如果是单条数据,还比较简单,但如果是批量数据,就比较麻烦了. 最近看到Factory_boy这个python第三方库,它通过SQLAlchemyModelFactory ...

  8. pytest相关资源收集

    pytest官网 https://docs.pytest.org/en/latest/getting-started.html 官网推荐的plugin https://docs.pytest.org/ ...

  9. android非硬件加速绘制简单流程

    这里的硬件加速是指openGL + GPU 如果不适用硬件加速: 1 ViewRootImpl.java draw:if (!dirty.isEmpty() || mIsAnimating || ac ...

  10. Directx11教程(52) 实例(instancing)的简单应用

    原文:Directx11教程(52) 实例(instancing)的简单应用 有些时候,我们需要在场景中渲染大量的重复的物体,比如体育场中的观众,森林里面的树木等等,这些物体具有相似的形状,比如很多树 ...