标签:code tab hotspot ast set rpm -ivh lin 时区 home
近期公司准备部分技术预研项目,打算用比较新CDH6.3.1部署。
ps:
官方要求:https://docs.cloudera.com/documentation/enterprise/6/release-notes/topics/rg_requirements_supported_versions.html
Linux发行版本:CentOS 7.4
IP | Host | CPU(E5-2630) | Memory(M393A4K40CB1-CRC) | Disk |
10.95.102.10 | node10.research.com | 40 cores | 128G | 3.6T * 2 |
10.95.102.6 | node06.research.com | 40 cores | 128G | 3.6T * 2 |
10.95.102.7 | node07.research.com | 40 cores | 128G | 3.6T * 2 |
JDK:jdk-8u181-linux-x64.tar.gz
连接:https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
MySQL:mysql-5.7.26-el7-x86_64.tar.gz
连接:https://dev.mysql.com/downloads/mysql/5.7.html#downloads
MySQL JDBC jar:mv mysql-connector-java-5.1.47.jar mysql-connector-java.jar
连接:http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.47/mysql-connector-java-5.1.47.jar
CM:CM6.3.1
连接:https://archive.cloudera.com/cm6/6.3.1/repo-as-tarball/cm6.3.1-redhat7.tar.gz
Parcel:
https://archive.cloudera.com/cdh6/6.3.1/parcels/CDH-6.3.1-1.cdh6.3.1.p0.1470567-el7.parcel
https://archive.cloudera.com/cdh6/6.3.1/parcels/CDH-6.3.1-1.cdh6.3.1.p0.1470567-el7.parcel.sha1
https://archive.cloudera.com/cdh6/6.3.1/parcels/manifest.json
以上软件打包近网盘中,可自取:
链接:https://pan.baidu.com/s/1UH50Uweyi7yg6bV7dl02mQ
提取码:nx7p
各自节点执行修改主机名命令:
hostnamectl set-hostname node06.research.com
hostnamectl set-hostname node07.research.com
hostnamectl set-hostname node10.research.com
每个节点上都添加一下内容至 /etc/hosts:
10.95.102.6 node06.research.com
10.95.102.7 node07.research.com
10.95.102.10 node10.research.com
每个节点上执行
systemctl stop firewalld && systemctl disable firewalld && iptables -F
vi /etc/selinux/config
SELINUX=disabled
修改成disabled之后 重启linux系统生效
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst
[root@node06 ~]# mkdir /usr/java
[root@node06 ~]# tar -zxf cdh/jdk-8u191-linux-x64.tar.gz -C /usr/java/
[root@node06 ~]# chown -R root:root /usr/java/jdk1.8.0_191
[root@node06 ~]# echo "export JAVA_HOME=/usr/java/jdk1.8.0_191" >> /etc/profile
[root@node06 ~]# echo "export PATH=/usr/java/jdk1.8.0_191/bin:${PATH}" >> /etc/profile
[root@node06 ~]# source /etc/profile
[root@node06 ~]# which java
/usr/java/jdk1.8.0_191/bin/java
[root@node06 ~]# java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
参考:https://github.com/Hackeruncle/MySQL/blob/master/MySQL%205.7.11%20Install.txt
create database cmf DEFAULT CHARACTER SET utf8;
create database amon DEFAULT CHARACTER SET utf8;
grant all on cmf.* TO ‘cmf‘@‘%‘ IDENTIFIED BY ‘www.research.com‘;
grant all on amon.* TO ‘amon‘@‘%‘ IDENTIFIED BY ‘www.research.com‘;
flush privileges;
[root@node06 ~]# mkdir -p /usr/share/java
[root@node06 ~]# cp cdh/mysql-connector-java-5.1.47.jar /usr/share/java/
[root@node06 ~]# cd /usr/share/java/
[root@node06 java]# mv mysql-connector-java-5.1.47.jar mysql-connector-java.jar
[root@node06 java]#
[root@node06 opt]# mkdir cloudera-manager
[root@node06 opt]# cd
[root@node06 ~]# cd cdh
[root@node06 cdh]# tar -zxf cm6.3.1-redhat7.tar.gz -C/opt/cloudera-manager
[root@node06 cdh]# cd /opt/cloudera-manager/cm6.3.1/RPMS/x86_64/
[root@node06 x86_64]# rpm -ivh cloudera-manager-daemons-6.3.1-1466458.el7.x86_64.rpm --nodeps --force
[root@node06 x86_64]# rpm -ivh cloudera-manager-server-6.3.1-1466458.el7.x86_64.rpm --nodeps --force
cd /opt/cloudera-manager/cm6.3.1/RPMS/x86_64
rpm -ivh cloudera-manager-daemons-6.3.1-1466458.el7.x86_64.rpm --nodeps --force
rpm -ivh cloudera-manager-agent-6.3.1-1466458.el7.x86_64.rpm --nodeps --force
sed -i "s/server_host=localhost/server_host=node06.research.com/g" /etc/cloudera-scm-agent/config.ini
[root@node06 x86_64]# vim /etc/cloudera-scm-server/db.properties
com.cloudera.cmf.db.type=mysql
com.cloudera.cmf.db.host=node06.research.com
com.cloudera.cmf.db.name=cmf
com.cloudera.cmf.db.user=cmf
com.cloudera.cmf.db.password=www.research.com
com.cloudera.cmf.db.setupType=EXTERNAL
2.1 安装httpd
yum install -y httpd
2.2 部署离线parcel源
[root@node06 ~]# mkdir -p /var/www/html/cdh6_parcel
[root@node06 ~]# cp cdh/CDH-6.3.1-1.cdh6.3.1.p0.1470567-el7.parcel /var/www/html/cdh6_parcel/
[root@node06 ~]# mv cdh/CDH-6.3.1-1.cdh6.3.1.p0.1470567-el7.parcel.sha1 /var/www/html/cdh6_parcel/CDH-6.3.1[root@node[root@node06 ~]# mv cdh/CDH-6.3.1-1.cdh6.3.1.p0.1470567-el7.parcel.sha1 /var/www/html/cdh6_parcel/CDH-6.3.1-1.cdh6.3.1.p0.1470567-el7.parcel.sha
[root@node06 ~]# mv cdh/manifest.json /var/www/html/cdh6_parcel/
[root@node06 ~]# systemctl start httpd
2.3 页面访问http://10.95.102.6/cdh6_parcel/
[root@node06 ~]# systemctl start cloudera-scm-server
[root@node06 ~]# ll /var/log/cloudera-scm-server/
total 20
-rw-r----- 1 cloudera-scm cloudera-scm 16679 Dec 10 18:27 cloudera-scm-server.log
-rw-r----- 1 cloudera-scm cloudera-scm 0 Dec 10 18:27 cmf-server-nio.log
-rw-r----- 1 cloudera-scm cloudera-scm 0 Dec 10 18:27 cmf-server-perf.log
[root@node06 ~]# tail /var/log/cloudera-scm-server/cloudera-scm-server.log
systemctl start cloudera-scm-agent
5.1登录主节点的7180端口
http://node06.research.com:7180/
5.2输入账号密码
admin/admin
5.3 选择免费版本
5.4.创建集群
输入集群的host,以逗号隔开
填写上面配置好的本地镜像
更多选项中添加搭建的http镜像
继续下一步
JDK安装过了不用选,继续
填写3台主机的linux root密码
标签:code tab hotspot ast set rpm -ivh lin 时区 home
原文地址:https://www.cnblogs.com/shwang/p/12112508.html