在搭建完HIVE后,使用bin/hive命令启动Hive出现这种错误:

java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClie

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

java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClie

3.待定

相关文章:

  • 2021-04-02
  • 2021-12-27
  • 2022-01-18
  • 2022-12-23
  • 2021-07-29
  • 2021-10-11
  • 2021-10-01
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2021-05-24
  • 2021-07-27
  • 2021-10-11
  • 2022-12-23
相关资源
相似解决方案