标签:rto 安装mysql char hive oop 密码 file update art
配置hosts vim /etc/hosts 192.168.1.9 Hadoop01 ssh免密 ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub root@Hadoop01 修改文件描述符限制 vim /etc/security/limits.conf * soft nofile 65536 * hard nofile 65536 * soft nproc 131072 * hard nproc 131072 关闭SELinux vi /etc/selinux/config 将SELINUX=enforcing改为SELINUX=disabled 关闭防火墙 systemctl stop firewalld.service systemctl disable firewalld.service 修改主机为英文 vi /etc/locale.conf LANG="en_US.UTF-8"
CREATE DATABASE ambari; use ambari; CREATE USER ‘ambari‘@‘%‘ IDENTIFIED BY ‘ambari123‘; GRANT ALL PRIVILEGES ON *.* TO ‘ambari‘@‘%‘; CREATE USER ‘ambari‘@‘localhost‘ IDENTIFIED BY ‘ambari123‘; GRANT ALL PRIVILEGES ON *.* TO ‘ambari‘@‘localhost‘; CREATE USER ‘ambari‘@‘hadoop01‘ IDENTIFIED BY ‘ambari123‘; GRANT ALL PRIVILEGES ON *.* TO ‘ambari‘@‘hadoop01‘; FLUSH PRIVILEGES; source /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql CREATE DATABASE hive; use hive; CREATE USER ‘hive‘@‘%‘ IDENTIFIED BY ‘ambari123‘; GRANT ALL PRIVILEGES ON *.* TO ‘hive‘@‘%‘; CREATE USER ‘hive‘@‘localhost‘ IDENTIFIED BY ‘ambari123‘; GRANT ALL PRIVILEGES ON *.* TO ‘hive‘@‘localhost‘; CREATE USER ‘hive‘@‘hadoop01‘ IDENTIFIED BY ‘ambari123‘; GRANT ALL PRIVILEGES ON *.* TO ‘hive‘@‘hadoop01‘; FLUSH PRIVILEGES; CREATE DATABASE oozie; use oozie; CREATE USER ‘oozie‘@‘%‘ IDENTIFIED BY ‘ambari123‘; GRANT ALL PRIVILEGES ON *.* TO ‘oozie‘@‘%‘; CREATE USER ‘oozie‘@‘localhost‘ IDENTIFIED BY ‘ambari123‘; GRANT ALL PRIVILEGES ON *.* TO ‘oozie‘@‘localhost‘; CREATE USER ‘oozie‘@‘hadoop01‘ IDENTIFIED BY ‘ambari123‘; GRANT ALL PRIVILEGES ON *.* TO ‘oozie‘@‘hadoop01‘; FLUSH PRIVILEGES;
set global validate_password_policy=0; flush privileges;
wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo -O /etc/yum.repos.d/ambari.repo yum repolist yum install ambari-server -y
初始化设置setup
ambari-server setup 根据提示配置$JAVA_HOME,mysql数据库等信息 ambari-server setup --jdbc-db=mysql --jdbc-driver=/export/service/hdp/mysql-connector-java-5.1.47-bin.jar
mysql-connector-java-5.1.47-bin.jar下载地址:
https://downloads.mysql.com/archives/c-j/
启动
ambari-server start
访问Ambari web页面
默认端口8080,Username:admin Password:admin http://192.168.1.9:8080
安装hdp3.1.4
标签:rto 安装mysql char hive oop 密码 file update art
原文地址:https://www.cnblogs.com/libin2015/p/12685429.html