Centos7搭建CDH6.0.1(单机版)
一、前言。
学习大数据组件,最好的方式是直接参照官网。不过官网的教程也让我吃了一坑,在此记录一下。因在个人笔记本资源有限,在此安装为单机版安装
官网参考地址:https://docs.cloudera.com/documentation/enterprise/6/6.0/topics/install_cm_cdh.html
二、搭建。
1.1配置主机名
hostnamectl set-hostname cdh
1.2配置hosts文件
vi /etc/hosts之后进行编辑,加入本机的ip映射关系(非单机时,有多个ip时,均加进来)
192.168.159.133 cdh
1.3关闭selinux
setenforce 0
1.4关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
1.5配置免密登录
ssh-keygen (后面一路回车就行)
ssh-copy-id cdh(cdh为主机名,非单机时有多个ip时,则执行多次进行免密配置)
1.6配置时间同步(时间服务器使用已有的,在此不介绍时间服务器的搭建1)yum install nt2)vi /etc/ntp.conf加入以下内容server 0.pool.ntp.org
3)sudo systemctl start ntpd
4)sudo systemctl enable ntpd
5)ntpdate -u 0.pool.ntp.org
6)hwclock --systoh