好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

打开hive后,show databases报错HiveException java.lang.Ru

启动hive时,show databases;

然后报错:

查看自己的配置文件没有问题(hbase-site.xml中配置的mysql账号信息与mysql账号信息一致),于是乎看别人的解决方法:

第一种解决办法(失败)[1]:

由于没有初始化数据库导致,执行名称初始化数据库,执行命令:

 schematool -dbType mysql -initSchema
 

并没有解决问题。

接着查:

第二种(成功)[2]:

hive的服务端没有打开:

1)首先打开hive服务端:

 [hadoop@hadoop102 hive]$ hive --service metastore &
 

2)接着Ctrl+C退出后,打开hive:

 [hadoop@hadoop102 hive]$ bin/hive
 

[1]https://blog.csdn.net/lz6363/article/details/95805446

[2]https://blog.csdn.net/qq_35078688/article/details/86137440?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-4&spm=1001.2101.3001.4242

打开hive后,show databases报错HiveException java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

标签:art   instant   client   tle   ESS   oop   too   type   pac   

查看更多关于打开hive后,show databases报错HiveException java.lang.Ru的详细内容...

  阅读:31次