java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClie
在搭建完HIVE后,使用bin/hive命令启动Hive出现这种错误:
java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClie
查询网上资料,可以从几个方面去检查:
1.是否授权本台机器登录
mysql> grant all privileges on *.* to 'root'@'%' identified by 'root123';
mysql> grant all privileges on *.* to 'root'@'liujian1' identified by 'root123';
all privileges:添加所有权限
第一个*:所有数据库
第二个*:所有表
第一个'root':代表root用户
%:代表其他的外部主机
'root123' :代表root用户密码
2.是否对hive配置文件作出修改 hive-site.xml (此文件为 hive-default.xml.template 拷贝修改文件名)
如果为 ture 请修改为 false
3.待定