简体   繁体   English

Google Cloud - 如何从远程PubSub获取数据作为Apache Beam Pipeline在本地执行的输入?

[英]Google Cloud - How to get data from remote PubSub as input for Apache Beam Pipeline executing locally?

I've configured a local (java) environment for executing Apache Beam Pipeline following the official doc . 我已经在官方文档之后配置了一个本地(java)环境来执行Apache Beam Pipeline。

The sample project (WordCount) works perfectly, but now I'd like to change it and get input data from PubSub topic and put output to BigQuery. 示例项目(WordCount)工作正常,但现在我想更改它并从PubSub主题获取输入数据并将输出放到BigQuery。

I've already created my PubSub topic and my BigQuery dataset, but my question is: how can I configure REMOTE input (pubsub topic) and output (BigQuery) for a locally running Pipeline (for debug purpose)? 我已经创建了我的PubSub主题和我的BigQuery数据集,但我的问题是:如何为本地运行的管道配置REMOTE输入(pubsub主题)和输出(BigQuery)(用于调试目的)?

See classes PubsubIO / PubsubClient (or com.google.cloud.pubsub.v1 ). 请参阅PubsubIO / PubsubClient (或com.google.cloud.pubsub.v1 )类。

For remote access you'd most likely need to register an external IP. 对于远程访问,您很可能需要注册外部IP。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从PubSub主题读取数据并将其解析到光束管道中并进行打印 - How to read and parse data from PubSub topic into a beam pipeline and print it 尝试在 Dataflow 中使用 Apache Beam 将数据从 Google PubSub 写入 GCS 时出错 - Getting an Error while trying to write data from Google PubSub to GCS using Apache Beam in Dataflow 如何在Apache Beam中提取Google PubSub发布时间 - How to extract Google PubSub publish time in Apache Beam Apache Beam 将数据从 Kafka 流式传输到 GCS Bucket(不使用 pubsub) - Apache Beam Streaming data from Kafka to GCS Bucket (Not using pubsub) 如何在本地运行Apache Beam? - How to run apache beam locally? 在阿里云上部署 Apache Beam 管道 - Deploying Apache Beam pipeline on Alibaba cloud 尝试从Apache Beam访问Google Cloud Storage时出现HttpForbiddenError - HttpForbiddenError when trying to access Google Cloud Storage from Apache Beam 如何从 apache 梁(谷歌云数据流)中的列字符串中删除特殊字符,包括逗号、引号 - How to remove special characters including commas, quotes from a column string in apache beam (Google cloud dataflow) Google Cloud Pubsub数据丢失了 - Google Cloud Pubsub Data lost 需要有关单词“ Google云” Apache Beam Beam代码中“ @”符号的详细信息 - Need details of how the “@” symbol in words google cloud apache beam code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM