我是靠谱客的博主 疯狂煎饼,最近开发中收集的这篇文章主要介绍启动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元数据所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部