Hive流无法正常工作

时间:2018-02-09 07:01:15

标签: postgresql hadoop hive hive-metastore

我尝试按照https://cwiki.apache.org/confluence/display/Hive/Streaming+Data+Ingest#StreamingDataIngest-StreamingRequirements

启用配置单元串流

我更改了所有配置属性以启用配置单元格流,但hive Metastore服务运行时出现以下错误,

18/02/09 12:22:51 ERROR compactor.Initiator: Caught an exception in the main loop of compactor initiator, exiting MetaException(message:Unable to connect to transaction database org.postgresql.util.PSQLException: ERROR: relation "compaction_queue" does not exist

注意:我使用PostgreSQL用于JDBC Metastore和hive版本2.0.1

帮我解决此错误并开始使用Hive Streaming。

1 个答案:

答案 0 :(得分:1)

可以在https://github.com/apache/hive/blob/branch-2.0/metastore/scripts/upgrade/postgres/hive-txn-schema-2.0.0.postgres.sql中找到此表的定义(以及与ACID表/流接收有关的其他表)。所有这些都是流式传输正常运行所必需的。