4
votes

I am trying to run the Cloud Bigtable Command Line Tool but seeing this error when I run

cbt help

or any other cbt commands:

-bash: cbt: command not found

I have verified that the gcloud component is installed when I run

gcloud components list

And I see:

Installed     │ Cloud Bigtable Command Line Tool                     │ cbt                      │   4.9 MiB

However, when I run

gcloud info

I see a list of my installed components and their version number in an array. For example:

Installed Components:
core: [2018.07.16]
pubsub-emulator: [2018.02.02]
beta: [2018.07.16]
gsutil: [4.33]
bq: [2.0.34]
cbt: []
bigtable: []

It might be a problem with the PATH not being set correctly, but I'm not sure. It seems related to this issue:

How to set path to kubectl when installed using gcloud components install?

Any ideas?

1
Sorry to hear you're running into this issue! Can you please provide more info in your question, such as: (a) your platform (OS + version), (b) whether you have the same issue with other binaries managed by gcloud such as gsutil or bq, and (c) whether your $PATH includes the .../google-cloud-sdk/bin (i.e., the installation directory of gcloud + /bin)? - Misha Brukman
(a) Platform: macOS Sierra (b) gsutil and bq do not have the same issue. These are working as expected. If I do gloud info, my installed components are: ``` Installed Components: core: [2018.07.16] pubsub-emulator: [2018.02.02] beta: [2018.07.16] gsutil: [4.33] bq: [2.0.34] cbt: [] bigtable: [] ...Cloud SDK on PATH: [False] Kubectl on PATH: [False] ``` Not sure how to check whether $PATH includes .../google-cloud-sdk/bin - baconLikeTheKevin725
echo $PATH will tell you what's in your path and whether it includes the .../google-cloud-sdk/bin directory. Also look into that directory and see if cbt is installed there. - Misha Brukman
Which method you have used to install the gcloud command? Have you followed the documentation or used homebrew? - Yurci

1 Answers

5
votes

A couple of things to check:

  • Please provide the full output of gcloud info.
  • Make sure that Cloud SDK on PATH is True.
  • You need to have the bin directory of the Installation Root on your PATH.
  • Make sure that the cbt binary is in Installation Root/bin