ubuntu18安装CDH6.3.1

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

国内网速很慢,有条件的可以翻墙

安装前准备

修改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

step 4

评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值