gcloud components install bigtable
gcloud components install cbt
gcloud beta emulators bigtable start --host-port=localhost:8086
In a different console:
export BIGTABLE_EMULATOR_HOST=localhost:8086
cbt -project "project-id" -instance "bus-instance" createtable hotels
cbt -project "project-id" -instance "bus-instance" createfamily hotels hotel_details
cbt -project "project-id" -instance "bus-instance" ls
cbt -project "project-id" -instance "bus-instance" read hotels
export BIGTABLE_EMULATOR_HOST=localhost:8086
cd write
go run writeRecords.go
cbt -project "project-id" -instance "bus-instance" ls
cbt -project "project-id" -instance "bus-instance" read hotels
export BIGTABLE_EMULATOR_HOST=localhost:8086
cd read
go run readRecords.go -zip or-01