首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CBT导出BigTable数据

CBT导出BigTable数据
EN

Stack Overflow用户
提问于 2021-08-13 09:40:18
回答 1查看 88关注 0票数 0

我正在寻找一种方法,从CBT实例使用cbt命令导出数据。

我可以看到它在使用following steps的图形用户界面中工作。

然而,我希望在终端上做到这一点。有什么办法可以做到这一点吗?

附言:我已经试过了:

代码语言:javascript
复制
curl -f -O http://repo1.maven.org/maven2/com/google/cloud/bigtable/bigtable-beam-import/1.1.2/bigtable-beam-import-1.1.2-shaded.jar ...

对我不起作用。

EN

回答 1

Stack Overflow用户

发布于 2021-08-16 14:22:28

根据@BillyJacobson的评论将其发布为社区维基。

使用GUI和cbt命令导出数据的不同之处在于,GUI允许您将数据导出为特定格式,而cbt命令允许您仅读取数据。

因此,如果您希望通过cbt命令导出数据,则必须创建一个使用read命令的bash脚本,并将其记录到一个文件中。

您必须使用的命令如下所示,如documentation所述:

代码语言:javascript
复制
cbt read <table-id> [start=<row-key>] [end=<row-key>] [prefix=<row-key-prefix>] [regex=<regex>] [columns=<family>:<qualifier>,...] [count=<n>] [cells-per-column=<n>] [app-profile=<app-profile-id>]

其中,值表示为:

代码语言:javascript
复制
start=<row-key>                     Start reading at this row
end=<row-row>                       Stop reading before this row
prefix=<row-key-prefix>             Read rows with this prefix
regex=<regex>                       Read rows with keys matching this regex
columns=<family>:<qualifier>,...    Read only these columns, comma-separated
count=<n>                           Read only this many rows
cells-per-column=<n>                Read only this many cells per column
app-profile=<app-profile-id>        The app profile ID to use for the request
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68770056

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档