简体   繁体   中英

Is there way to read the message id of a google pubsub message using apache beam

Hi I am trying to pull messages from pubsub using the apache beam

PubsubIO.readMessagesWithAttributes().fromSubscription(myTopic)

And I am trying to insert the payload to the bigquery. I want to retrieve the message id that a pubsub will generate.

But I am unable to get it, the attributes is also not having the message id.

Any help is appreciated.

It's an issue as of now and currently tracked under this https://issues.apache.org/jira/browse/BEAM-3489

We overcame this by generating UUID and stored the message in BQ.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM