问题描述:
hive 创建表时出错
hive> create table student(sid int,sname string);
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

第一种情况:配置出错
- 配置 hive-site.xml(本地、远程模式)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl&#

在使用Hive创建表时遇到SemanticException错误。错误可能由配置问题或未正确退出Hive导致。确保在hive-site.xml中配置了MySQL驱动,并将驱动JAR放入lib目录。如果配置无误,检查并结束前一次的Hive会话(RunJar进程),然后重新尝试。
最低0.47元/天 解锁文章
4767

被折叠的 条评论
为什么被折叠?



