[英]Using TableRowJsonCoder to convert PubSub Message to TableRow in BEAM
[英]Is there way to read the message id of a google pubsub message using apache beam
嗨,我正在嘗試使用apap Beam從pubsub提取消息
PubsubIO.readMessagesWithAttributes().fromSubscription(myTopic)
我正在嘗試將有效負載插入到bigquery中。 我想檢索pubsub將生成的消息ID。
但我無法獲取它,屬性也沒有消息ID。
任何幫助表示贊賞。
到目前為止,這是一個問題,目前已在此https://issues.apache.org/jira/browse/BEAM-3489中進行了跟蹤
我們通過生成UUID來解決此問題,並將消息存儲在BQ中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.