centos离线安装CDH(3.5): 安装cloudera-m
2020-03-25 本文已影响0人
丁华0301
阿里巴巴淘系技术部招聘大数据研发、数据分析、数据挖掘同学(P6-P8)。
微信: 18520269913 备注: 阿里巴巴淘系技术部-大数据
安装cloudera-manager对应的包
从上一步配置的包的路径把包下载到指定的目录,进行安装。
mkdir -p ~/cdh/6.2.0/el6/rpm/
cd ~/cdh/6.2.0/el6/rpm/
wget http://hadoop130.i.md31.cn/cm6/RPMS/x86_64/oracle-j2sdk1.8-1.8.0+update181-1.x86_64.rpm
wget http://hadoop130.i.md31.cn/cm6/RPMS/x86_64/enterprise-debuginfo-6.2.0-968826.el6.x86_64.rpm
wget http://hadoop130.i.md31.cn/cm6/RPMS/x86_64/cloudera-manager-daemons-6.2.0-968826.el6.x86_64.rpm
wget http://hadoop130.i.md31.cn/cm6/RPMS/x86_64/cloudera-manager-agent-6.2.0-968826.el6.x86_64.rpm
wget http://hadoop130.i.md31.cn/cm6/RPMS/x86_64/cloudera-manager-server-6.2.0-968826.el6.x86_64.rpm
wget http://hadoop130.i.md31.cn/cm6/RPMS/x86_64/cloudera-manager-server-db-2-6.2.0-968826.el6.x86_64.rpm
安装cdh文件依赖的包。因为我们是使用rpm安装的方式,所以需要提前安装依赖的包。
sudo yum install -y cyrus-sasl-gssapi
sudo yum install -y portmap
sudo yum install -y mod_ssl
sudo yum install -y openssl-devel
sudo yum install -y python-psycopg2
sudo yum install -y MySQL-python
sudo yum install -y postgresql-server
sudo yum install -y /lib/lsb/init-functions
安装cdh的包,注意最后两个rpm包只需要在master机器安装
sudo rpm -ivh oracle-j2sdk1.8-1.8.0+update181-1.x86_64.rpm
sudo rpm -ivh enterprise-debuginfo-6.2.0-968826.el6.x86_64.rpm
sudo rpm -ivh cloudera-manager-daemons-6.2.0-968826.el6.x86_64.rpm
sudo rpm -ivh cloudera-manager-agent-6.2.0-968826.el6.x86_64.rpm
# 下面几个只在master安装
sudo rpm -ivh cloudera-manager-server-6.2.0-968826.el6.x86_64.rpm
sudo rpm -ivh cloudera-manager-server-db-2-6.2.0-968826.el6.x86_64.rpm
安装成功之后,可以通过rpm -qa | grep cloudera
查看对应的rpm是否安装成功