环境:
centos7
mysql-5.7.24
操作:
如图为启动mysql服务后查询MySQL状态时的结果
如图为运行rpm命令后的结果,其显示未安装软件包
想解决这个问题的根本原因是,安装hive是无法初始化数据库,其返回结果如图:
[root@cent7 /usr/local/mysql/share]#schematool -dbType mysql -initSchema
Metastore connection URL: jdbc:mysql://hadp01:3306/hive
Metastore Connection Driver : com.mysql.jdbc.Driver
Metastore connection User: root
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
*** schemaTool failed ***
如有解答,万分感激!