FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.Runtim

解决hive错误  FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient

1、检查是否导入

 mysql-connector-java-5.1.26-bin.jar


2、修改数据库权限 

发现数据库的权限  HIVE需要的是

'hive'@'192.168.244.133' 这个IP地址

然后试着在mysql中加上权限:

GRANT ALL PRIVILEGES ON*.* TO 'hive'@'192.168.244.133' Identified by 'hive'; 


你可能感兴趣的:(hive)