99网
您的当前位置:首页hive使用show databases报错

hive使用show databases报错

来源:99网

问题如下,进入hive之后使用show databases报错
hive> show databases;
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
经过排查应该是没有将元数据库初始化为mysql的问题
使用命令
schematool -dbType mysql -initSchema
但是此时又报错,一直初始化失败

因篇幅问题不能全部显示,请点此查看更多更全内容