替换Hive自带的derby数据库为Mysql问题汇总

阅读 60

2022-03-12

问题产生

在这里插入图片描述

[root@slave2 mysql]$ sudo rpm -ivh mysql-community-server-
5.7.28-1.el7.x86_64.rpm
警告:mysql-community-server-5.7.28-1.el7.x86_64.rpm:V3 DSA/SHA1
Signature, 密钥 ID num: x
错误:依赖检测失败:
       libaio.so.1()(64bit) 被 mysql-community-server-5.7.28-1.el7.x86_64
需要
       libaio.so.1(LIBAIO_0.1)(64bit) 被 mysql-community-server-5.7.28-
1.el7.x86_64 需要
       libaio.so.1(LIBAIO_0.4)(64bit) 被 mysql-community-server-5.7.28-
1.el7.x86_64 需要

问题解决

执行命令安装所缺依赖

yum install -y libaio

在这里插入图片描述

问题拓展

Caused by: ERROR XSDB6: Another instance of Derby may have already booted
the database /opt/module/hive/metastore_db.
       at
org.apache.derby.iapi.error.StandardException.newException(Unknown
Source)
       at
org.apache.derby.iapi.error.StandardException.newException(Unknown
Source)
       at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockO
nDB(Unknown Source)
       at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(Unknown
Source)

精彩评论(0)

0 0 举报