国内网速很慢,有条件的可以翻墙
安装前准备
修改hosts,如下
~$ sudo vim /etc/hosts
192.168.1.115 zhdan-cdh-1
192.168.1.116 zhdan-cdh-2
192.168.1.117 zhdan-cdh-3
启动cm时报错 ScmActive: Unable to retrieve non-local non-loopback IP address. Seeing address: localhost/127.0.0.1
注释掉hosts文件中127.0.0.1的映射,如下
# 127.0.0.1 localhost
# 127.0.0.1 zhdan-cdh-1
关闭防火墙
sudo apt-get install ufw
#关闭
sudo ufw disable
安装ntp
sudo apt-get install ntp
#开机自启动
sudo systemctl enable ntp
#编辑文件 "/etc/ntp.conf"
sudo vim /etc/ntp.conf
driftfile /var/lib/ntp/drift
pidfile /var/run/ntpd.pid
logfile /var/log/ntp.log
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
server 127.127.1.0
fudge 127.127.1.0 stratum 10
server ntp.aliyun.com iburst minpoll 4 maxpoll 10
restrict ntp.aliyun.com nomodify notrap nopeer noquery
开始安装
step1 添加cloudera仓库
wget https://archive.cloudera.com/cm6/6.3.1/ubuntu1604/apt/archive.key
sudo apt-key add archive.key
wget https://archive.cloudera.com/cm6/6.3.1/ubuntu1804/apt/cloudera-manager.list
sudo mv cloudera-manager.list /etc/apt/sources.list.d/
sudo apt-get update
step2 安装JAVA
#sudo apt-get install oracle-j2sdk1.8
sudo apt-get install openjdk-8-jdk
step3 安装cloudera
sudo apt-get install cloudera-manager-daemons cloudera-manager-agent cloudera-manager-server

这篇博客详细记录了在Ubuntu18.04上安装CDH6.3.1的步骤,包括添加Cloudera仓库、安装JAVA、设置Cloudera Manager数据库和启动过程。由于国内网络可能较慢,作者提醒可考虑使用代理。在安装过程中,遇到的IP地址问题和HOST_MONITORING错误也给出了解决方案。
最低0.47元/天 解锁文章
3085

被折叠的 条评论
为什么被折叠?



