google-cloud-dataflow - 我想从 python 脚本创建一个数据流模板
问题描述
我找到了这个脚本,我想从中创建一个数据流模板,但我不知道如何。我也找到了这个命令
python -m examples.mymodule \
--runner DataflowRunner \
--project YOUR_PROJECT_ID \
--staging_location gs://YOUR_BUCKET_NAME/staging \
--temp_location gs://YOUR_BUCKET_NAME/temp \
--template_location gs://YOUR_BUCKET_NAME/templates/YOUR_TEMPLATE_NAME
用于创建和暂存模板,但这对我来说真的很困惑。
解决方案
首先,您必须准备要用作模板的脚本,为此您可以点击@JayadeepJayaraman [1] 提供的链接。
关于python命令,它将允许您在此参数“ --template_location ”中选择的存储桶中创建和存储模板,“ examples.mymodule ”是指您要创建的package.name_script的路径模板。
[1] https://cloud.google.com/dataflow/docs/guides/templates/creating-templates
推荐阅读
- php - 在 Twilio 上使用预先批准的模板消息发送 WhatsApp 通知
- ansible - 如果 Ansible 和 Jenkins 不在同一台机器上,我该如何配置?
- c++ - 在 embarcadero / RAD 工作室中跨 .dfm 文件使用常量
- angular - 没有 TestBed 和组件的 Angular 中的单元测试指令
- java - 当我使用 && 运算符比较两组表达式时,是否必须加上内括号?
- php - 带有拆分字符串的 SQL 句柄选择
- reactjs - 有没有办法在reactjs中永久存储没有数据库的数据
- python - 键入提示以获取可能值列表
- php - 我无法使用 PHP Mailer 从我的 Web 表单向我的 gmail 帐户发送电子邮件
- python - 将字符串转换为路径以在 Google Colaboratory 中与 Unzip 一起使用