How to connect to a bigtable emulator using cbt command line

Viewed 2981
3 Answers

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.

You can use the local emulator if you prefix cbt:

cbt -project <PROJECT NAME> -instance localhost:8086

Hope this helps!

once the emulator is running, you need to do the following:

  1. export BIGTABLE_EMULATOR_HOST=localhost:8086
  2. run cbt -project test -instance localhost:8086 ls
Related