其他分享
首页 > 其他分享> > hive组建

hive组建

作者:互联网

在所有节点执行:
su - hadoop
jps
#要在master上看到NameNode、Secondarynamenode、ResourceManager三个进程,要在slave1、slave2上看到DataNode、Nodemanager进程
若进程没运行输入以下命令:
start-all.sh
#在master上部署mysql服务器
yum -y install unzip
cd software/
unzip mysql-5.7.18.zip
cd mysql-5.7.18
yum -y install *.rpm
vi /etc/my.cnf
default-storage-engine=innodb
innodb_file_per_table
collation-server=utf8_general_ci
init-connect='SET NAMES utf8'
character-set-server=utf8
systemctl enable --now mysqld
grep 'passwd' /var/log/mysqld.log
mysql_secure_installation
mysql -uroot -p'Password123!'
mysql> grant all on *.* to 'root'@'localhost' identified by 'Password123!';
mysql> grant all on *.* to 'root'@'%' identified by 'Password123!';
mysql> flush privileges;
mysql> quit
#在slave1上执行
yum -y install mariadb
mysql -uroot -p'Password123!' -h10.10.10.128
#在master上部署hive
tar xf software/apache-hive-2.0.0-bin.tar.gz -C /usr/local/src/ 
cd /usr/local/src/
mv apache-hive-2.0.0-bin/ hive
chown -R hadoop.hadoop /usr/local/src/
vi /etc/profile.d/hive.sh
export HIVE_HOME=/usr/local/src/hive
export PATH=${HIVE_HOME}/bin:$PATH
source /etc/profile.d/hive.sh
echo $PATH
su - hadoop
cd /usr/local/src/hive/conf/
cp hive-default.xml.template hive-site.xml

标签:src,Password123,hive,组建,usr,mysql,local
来源: https://www.cnblogs.com/kongshuo/p/16118194.html