启动时显示hiveserver2错误

2cmtqfgy  于 2021-06-27  发布在  Hive
关注(0)|答案(1)|浏览(422)

我无法启动hiveserver2,当我启动时,它显示没有响应。如图所示

hive --service hiveserver2
which: no hbase in (/opt/hadoop/hive/apache-hive-2.3.4-bin/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/default/bin:/opt/hadoop/sbin:/opt/hadoop/bin)

2019-01-09 07:20:24:启动hiveserver2
我也试过用另一个命令

hive --service hiveserver2 --hiveconf hive.server2.thrift.port=10000 --hiveconf hive.root.logger=INFO,console
ERROR [main] metastore.ObjectStore: Version information found in metastore differs 2.0.0 from expected schema version 2.3.0. Schema verififcation is disabled hive.metastore.schema.verification
eivgtgni

eivgtgni1#

您最近进行过升级吗?根据您的错误,配置单元需要架构版本2.3.0。您应该使用配置单元架构工具来升级架构版本。
停止配置单元服务
备份配置单元后端数据库
使用schematool升级metastore。例如用于postgres(可能的后端是derby | mysql | postgres | oracle | mssql);
/bin/schematool-数据库类型postgres-信息
/bin/schematool-dbtype postgres-upgradeschemafrom-upgradeschemafrom 2.0.0-dryrun
/bin/schematool-dbtype postgres-upgradeschemafrom-upgradeschemafrom 2.0.0
启动配置单元服务器
有关此过程的更多示例和信息,请参见:https://cwiki.apache.org/confluence/display/hive/hive+schema+tool

相关问题