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

hive使用show databases;命令报错:

1.确认hive-site.xml中的地址,用户名还有密码填写正确:

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

2.确认lib目录下已经添加了mysql的驱动包:

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

3.需要初始化元数据:

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

./schematool -initSchema -dbType mysql

使用上面的命令初始化元数据,在mysql的表里面就有数据了
Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClientUnable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient thetimelyrain 发布了25 篇原创文章 · 获赞 0 · 访问量 2157 私信 关注
上一篇:Exercise 42 - class and instantiate


下一篇:2021-08-05