蜂巢流式传输不起作用

Hive streaming not working

我试图通过关注
https://cwiki.apache.org/confluence/display/Hive/Streaming+Data+Ingest#StreamingDataIngest-StreamingRequirements

启用蜂巢流

我已经更改了所有配置属性以启用配置单元流,但配置单元元存储服务 运行 低于错误,

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。

这个 table 的定义(以及其他与 ACID tables/streaming 摄取相关的定义)可以在 https://github.com/apache/hive/blob/branch-2.0/metastore/scripts/upgrade/postgres/hive-txn-schema-2.0.0.postgres.sql 中找到。所有这些都是流媒体正常运行所必需的。