更详细的解释:https://blog.csdn.net/yuhan61659/article/details/80590227
在mysql中写:
【1】
grant all privileges on *.* to 'root'@'item1' identified by '123456' with grant option;
item1为主机名
''中为root用户的密码
【2】
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;
%为除本机外的所有主机,设置其登陆密码为123456
【3】
FLUSH PRIVILEGES;刷新
注:HDH hive
1.启动hdfs+yarn服务
2.hive --service metastore & 后台启动hive的服务端
3hive