修改yum源
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
yum makecache
安装必要软件
yum -y install neovim wget
安装Java
- 安装MySQL ```bash rpm -ivh https://dev.mysql.com/get/mysql80-community-release-el7-6.noarch.rpm rpm —import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022 yum -y install mysql-server systemctl start mysqld systemctl enable mysqld grep ‘temporary password’ /var/log/mysqld.log
4. 安装Hadoop
```bash
CREATE DATABASE scm DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE DATABASE rman DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE DATABASE hue DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE DATABASE metastore DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE DATABASE sentry DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE DATABASE nav DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE DATABASE navms DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE DATABASE oozie DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
create user 'oozie'@'%' identified by '123456';
create user 'scm'@'%' identified by '123456';
create user 'navms'@'%' identified by '123456';
create user 'nav'@'%' identified by '123456';
create user 'sentry'@'%' identified by '123456';
create user 'metastore'@'%' identified by '123456';
create user 'hue'@'%' identified by '123456';
create user 'rman'@'%' identified by '123456';
GRANT ALL ON oozie.* TO 'oozie'@'%';
GRANT ALL ON scm.* TO 'scm'@'%';
GRANT ALL ON navms.* TO 'navms'@'%';
GRANT ALL ON nav.* TO 'nav'@'%';
GRANT ALL ON sentry.* TO 'sentry'@'%';
GRANT ALL ON metastore.* TO 'metastore'@'%';
GRANT ALL ON hue.* TO 'hue'@'%';
GRANT ALL ON rman.* TO 'rman'@'%';