Underlying cause: java.sql.SQLException : Access denied for user ‘root’@‘linux01’ (using password: YES)
出错原因:root的密码设置错了
在MySQL中重新设置密码
mysql> set password for root@linux01=password(‘root’);
修改完密码后 记得在hive中的 hive-site.xml 文件中将密码改成修改后的密码
在进去hive的bin目录下 运行
[root@linux01 bin]# ./schematool -initSchema -dbType mysql