报错:Caused by: javax.jdo.JDOFatalDataStoreException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://192.168.58.141:3306/hive?createDatabaseIfNotExist=true, username = root. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------ java.sql.SQLException: null, message from server: "Host 'master' is not allowed to connect to this MySQL server" 注意:这个是没有添加给master用户权限
①进入mysql:mysql -uroot -p123456 ②查看用户权限:use mysql;select user,host,password from mysql.user; ③给master增加所有权限:grant all privileges on *.* to root@'master' identified by '123456'; ④注意:一定要检查/etc/profile 环境变量!!!
报错:Caused by: javax.jdo.JDOFatalDataStoreException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://192.168.58.141:3306/hive?createDatabaseIfNotExist=true, username = r...