如何将 table 添加到特定的 Bigtable 实例?
How to add table to a specific Bigtable instance?
假设我有三个 Bigtable 实例 bt1
、bt2
和 bt3
.
现在我想在 bt2
中添加一个 table。
cbt createtable t1
现在该命令无法指定实例,根据文档,我需要将其放入 ~/.cbtrc
。
但我不想每次需要为另一个实例添加 table 时都编辑该文件。我必须这样做吗?
您可以使用 -instance 标志指定一个实例。
-project string
project ID, if unset uses gcloud configured project
-instance string
Cloud Bigtable instance
-creds string
if set, use application credentials in this file
假设我有三个 Bigtable 实例 bt1
、bt2
和 bt3
.
现在我想在 bt2
中添加一个 table。
cbt createtable t1
现在该命令无法指定实例,根据文档,我需要将其放入 ~/.cbtrc
。
但我不想每次需要为另一个实例添加 table 时都编辑该文件。我必须这样做吗?
您可以使用 -instance 标志指定一个实例。
-project string
project ID, if unset uses gcloud configured project
-instance string
Cloud Bigtable instance
-creds string
if set, use application credentials in this file