Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

suujana.naga16_165607 avatar image
suujana.naga16_165607 asked Erick Ramirez edited

Unable to run cqlsh command, getting "No such file or directory"

I have 3 node cluster but unable to cqlsh on one node and its happening on others. Its SSL Configured and file is place in ~/.cassandra/cqlshrc folder with correct configurations same as on other nodes.

Command tried: cqlsh -u sujana.rayavaram --ssl

And its giving me this: -bash: /root/cqlsh: No such file or directory

cqlsh
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered Erick Ramirez edited

This appears to be a Linux environment issue. The cqlsh executable isn't in your environment PATH which is why you are getting:

No such file or directory

If you've installed Cassandra as a package, the executables are automatically added but if you've done a tarball installation, you need to add the path to the executable to the environment variable. For example, if Cassandra is installed in /home/alice/cassandra:

$ export PATH=$PATH:/home/alice/cassandra/bin

Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.