我正在寻找一种方法,从CBT实例使用cbt命令导出数据。
我可以看到它在使用following steps的图形用户界面中工作。
然而,我希望在终端上做到这一点。有什么办法可以做到这一点吗?
附言:我已经试过了:
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 ...对我不起作用。
发布于 2021-08-16 14:22:28
根据@BillyJacobson的评论将其发布为社区维基。
使用GUI和cbt命令导出数据的不同之处在于,GUI允许您将数据导出为特定格式,而cbt命令允许您仅读取数据。
因此,如果您希望通过cbt命令导出数据,则必须创建一个使用read命令的bash脚本,并将其记录到一个文件中。
您必须使用的命令如下所示,如documentation所述:
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>]其中,值表示为:
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 requesthttps://stackoverflow.com/questions/68770056
复制相似问题