google-bigquery - 如何从 BigQuery 导出到数据存储区?
问题描述
我在 BigQuery 中有要在 Datastore 中导出和导入的表。如何做到这一点?
解决方案
BigQuery 中的表可以导出和导入到您的数据存储区。
从https://github.com/yu-iskw/bigquery-to-datastore/releases下载 jar 文件
然后运行命令
java -cp bigquery-to-datastore-bundled-0.5.1.jar com.github.yuiskw.beam.BigQuery2Datastore --project=yourprojectId --runner=DataflowRunner --inputBigQueryDataset=datastore --inputBigQueryTable=metainfo_internal_2 --outputDatastoreNamespace=default --outputDatastoreKind=meta_internal --keyColumn=key --indexedColumns=column1,column2 --tempLocation=gs://gsheetbackup_live/temp --gcpTempLocation=gs://gsheetlogfile_live/temp
--tempLocation
并且--gcpTempLocation
是有效的云存储桶 url。
--keyColumn=key
- 这里的关键是你的大查询表上的唯一字段
推荐阅读
- node.js - `xhr.onload = ()=>{resolve();}` 和 `xhr.onload = resolve();` 之间的区别
- javascript - 通过 JQuery 将内容添加到特定的 HTML 标签
- docker-compose - 使用 DigitalOcean 构建卷
- c# - 使用面板中的控件,仅编辑图片框控件
- python-3.x - 根据对应的列值重复列,根据熊猫数据框中的总值重复行
- python - 计算机开始运行 Python 2.7 版
- javascript - 如何在 Vue js 中使用 arcgis js
- ruby-on-rails - Rails Active::Records 在检测到重复字段时创建不完整的嵌套记录
- javascript - 加载时加载 MP3 或 MP4 音频
- python - 如何在python的嵌套循环中适当地递增