1.hive错误
Unable to open a test connection to the given database.
JDBC url = jdbc:mysql://slave2:3306/hive?createDatabaseIfNotExist=true,
username = root. Terminating connection pool (set lazyInit to true if you expect to start your database after your app).
Access denied for user 'root'@'%' to database 'hive'
问题:root权限问题
解决方法:刷新root权限
//本地操作的权限(slave2)
mysql> grant all privileges on *.* to 'root'@'%' with grant option;
mysql> flush privileges;
mysql> \q