[Hive]FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException

show databases命令报错

FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException:

Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

解决方法

查看/etc/hosts

查看hostname

首先确保你的mysql服务已经起来了,然后查看是否能连上mysql

问题就在于master没有mysql访问权限,在mysql中执行以下命令:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'master' IDENTIFIED BY '123456' WITH GRANT OPTION;

flush privileges;

 

 

 

 

你可能感兴趣的:(Hive)