我是靠谱客的博主 疯狂煎饼,这篇文章主要介绍启动hive之前需要初始化hive元数据,现在分享给大家,希望可以做个参考。

hive命令报错:
Exception in thread “main” java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Hive metastore database is not initialized. Please use schematool (e.g. ./schematool -initSchema -dbType …) to create the schema. If needed, don’t forget to include the option to auto-create the underlying database in your JDBC connection string (e.g. ?createDatabaseIfNotExist=true for mysql))

解决命令
schematool -initSchema -dbType mysql

最后

以上就是疯狂煎饼最近收集整理的关于启动hive之前需要初始化hive元数据的全部内容,更多相关启动hive之前需要初始化hive元数据内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(86)

评论列表共有 0 条评论

立即
投稿
返回
顶部