之前安装测试了hive3.1.1,后来想把hbase配上,发现使用了新版hadoop3.2以后,基本上没法配置上,找不到一个hive和hbase有hadoop的可用配套版本。最后想到用cdh吧,然后看了一下,cdh6.2的配套版本用的是hadoop3.0和hive2.1.1 和 hbase2.1.2。这个时候想的就是能配完整一套就行了。
以下主要做个记录:
docker run --name cdh1 -h cdh1 --privileged=true -itd centos:7.6.1810 /usr/sbin/init
docker run --name cdh2 -h cdh2 --privileged=true -itd centos:7.6.1810 /usr/sbin/init
docker run --name cdh3 -h cdh3 --privileged=true -itd centos:7.6.1810 /usr/sbin/init
docker run --name cdh4 -h cdh4 --privileged=true -itd centos:7.6.1810 /usr/sbin/init
docker run --name cdh5 -h cdh5 --privileged=true -itd centos:7.6.1810 /usr/sbin/init
#配置使用本地的仓库repo
yum -y install wget
cd /etc/yum.repos.d/
rm -f *
wget http://10.1.1.87/yumrepo/pc88.repo
yum clean all
yum makecache
#在docker下的话,需要给root设置密码。几台机器的密码要设置一样。
passwd root
#在docker下安装的话,修改一下ping文件的权限,如果不改的话,只有root可以用ping,安装过程中会认为网络不通。
chmod 4755 /bin/ping
#开始安装
yum -y install wget net-