修炼离线:一搭建CDH6.3.2

服务器

天翼云:8核16g 40g 3M
华为云:2核4g 40g 1M

步骤

  1. 查看公网
    ip curl ifconfig.me
  2. 查看内存
    free -m
  3. 防火墙
    查看防火墙状态
systemctl status firewalld
	永久关闭防火墙
systemctl disable firewalld
  1. 查看时间

data

  1. 配置名称
    配置本机名称

echo node04 > /etc/hostname vim /etc/sysconfig/network 注释掉第一行
HOSTNAME=node02 重启

6.配置hosts

	vim /etc/hosts
27.155.84.54 node01
60.204.152.64 node02
  1. 免密

https://blog.csdn.net/weixin_43446246/article/details/123296254

  1. 安装yum
cd /opt/app/yum
wget http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz
tar xvf yum-3.2.28.tar.gz
yum

9.安装jdk

 yum  install  -y  java-1.8.0-openjdk.x86_64
 java -version

10.安装mysql

rpm -qa|grep mysql
rpm -qa|grep mariadb
rpm -e --nodeps mysql-libs-5.1.73-1.el6.x86_64
rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64
chmod -R 777 /tmp
rpm -qa|grep libaio
rpm -qa|grep net-tools
yum -y install libaio net-tools
mkdir /opt/app/mysql
cd /opt/app/mysql
wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.16-1.el7.x86_64.rpm-bundle.tar
tar -xvf mysql-5.7.16-1.el7.x86_64.rpm-bundle.tar
rpm -ivh mysql-community-common-5.7.16-1.el7.x86_64.rpm 
rpm -ivh mysql-community-libs-5.7.16-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.16-1.el7.x86_64.rpm 
rpm -ivh mysql-community-server-5.7.16-1.el7.x86_64.rpm
验证:mysqladmin –version 
mysqld --initialize --user=mysql
cat /var/log/mysqld.log | tail -n 10
查看密码,如果有特殊字符,使用转移字符”\“
systemctl start mysqld.service
systemctl status mysqld
systemctl list-unit-files|grep mysqld.service
systemctl enable mysqld.sercice
mysql操作
ALTER USER 'root'@'%' IDENTIFIED BY '123456';
select @@validate_password_policy;
SHOW VARIABLES LIKE 'validate_password%';
set global validate_password_policy=LOW; 
set global validate_password_length=6;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'27.155.84.54' IDENTIFIED BY '123456' WITH GRANT OPTION;
flush privileges;

  1. 搭建CDH
    参考wps
问题一:cdh安装hue测试失败
rpm -ivh mysql-community-libs-compat-5.7.16-1.el7.x86_64.rpm 

你可能感兴趣的:(修炼篇,adb)