初始化hive元数据库报如下错误怎么解决,初始化hive报如下错误怎么解决
3条回答 默认 最新
关注 让阿豪来帮你解答,本回答参考chatgpt3.5编写提供,如果还有疑问可以评论或留言
问题描述: 在初始化hive元数据库时,出现了错误提示。 错误提示: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Version information not found in metastore. ) 解决方法: 该错误通常是由于没有初始化metastore数据库或者metastore服务没有启动。可以按照如下步骤进行处理:- 首先进入hive的安装目录下(如:/usr/local/hive/),执行bin/schematool -initSchema -dbType derby命令,进行初始化metastore数据库。 例如:
cd /usr/local/hive/ bin/schematool -initSchema -dbType derby
- 如果metastore服务已启动,则可以忽略此步骤。否则,需启动metastore服务,可通过执行sbin/start-metastore.sh命令或者通过Ambari等Hadoop管理工具启动metastore服务。 例如:
cd /usr/local/hive/ sbin/start-metastore.sh
- 再次执行hive命令进行连接即可。 例如:
hive
参考链接: [1] https://cwiki.apache.org/confluence/display/Hive/AdminManual+MetastoreAdmin#AdminManualMetastoreAdmin-UpgradingtheMetastore [2] https://www.cnblogs.com/sunyushan/p/4447503.html
解决 无用评论 打赏 举报
悬赏问题
- ¥15 微信小程序协议怎么写
- ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
- ¥20 怎么用dlib库的算法识别小麦病虫害
- ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
- ¥15 java写代码遇到问题,求帮助
- ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
- ¥15 有了解d3和topogram.js库的吗?有偿请教
- ¥100 任意维数的K均值聚类
- ¥15 stamps做sbas-insar,时序沉降图怎么画
- ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看