command-linegoogle-cloud-bigtable

How to connect to a bigtable emulator using cbt command line?


I ran the command gcloud beta emulators bigtable start but when I ran the command cbt listinstances, I got the error below

Getting list of instances: rpc error: code = Unimplemented desc = unknown service google.bigtable.admin.v2.BigtableInstanceAdmin

How can I use cbt command to connect my local bigtable emulator?

The emulator command https://cloud.google.com/sdk/gcloud/reference/beta/emulators/bigtable/start

The cbt command https://cloud.google.com/bigtable/docs/go/cbt-reference


Solution

  • The Cloud Bigtable emulator doesn't support any instance-level operations (CRUD for instances). You can use any arbitrary instance name when connecting to it and start by creating a table.