CDH安装(5.15.0)
IP地址 | 角色 |
192.168.72.130 | MasterNode, Operation scripts, Airflow |
192.168.72.131 | ComputeNode1 |
192.168.72.132 | ComputeNode2 |
192.168.72.133 | Datamart, Frontend(fx-global, fx-usercenter, fx-explorer) |
192.168.72.134 | Index |
192.168.72.135 | MSSQL TreeDB, rowdata |
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi
- MasterNode 下载Cloudera
mkdir /usr/share/java
cp mysql-connector-java.jar /usr/share/java/mysql-connector-java.jar
cp -r /data/tools/jdk1.8.0_171 /usr/java/
yum -y localinstall cloudera-manager-server-db-2-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm cloudera-manager-daemons-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm cloudera-manager-server-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm cloudera-manager-agent-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm
vim /etc/cloudera-scm-agent/config.ini
server_host=MasterNode的ip地址
/etc/init.d/cloudera-scm-server-db start
/etc/init.d/cloudera-scm-server start
/etc/init.d/cloudera-scm-agent start
yum -y localinstall cloudera-manager-agent-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm cloudera-manager-daemons-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm
vim /etc/cloudera-scm-agent/config.ini
server_host=MasterNode的ip地址
/etc/init.d/cloudera-scm-agent start
- 在安装parcel的时候,由于要下载一个1.6G大小的数据包,所以很容易卡主,所以可以先将以下包下载好,拷贝到MasterNode对应目录,然后在页面选择手工安装
ll /data/cloudera/parcel-repo/
chmod 777 /data/cloudera/ -R




-
为集群安装服务


