Install the cqlsh standalone tool
Install the Cassandra Query Language shell (cqlsh) standalone tool using a binary tarball on any Linux-based platform to use cqlsh remotely on a DataStax database cluster.
This command line shell connects remotely to a DataStax database cluster.
You do not need to run cqlsh locally on a cluster node.
Prerequisites
The cqlsh utility for DataStax Enterprise 5.1 requires Python 2.7 or Python 3.6 through 3.11.
DataStax recommends using Python 3.11.
|
|
Procedure
-
Download the
cqlshbinary tarball file for DataStax Enterprise 5.1 from the DataStax Downloads page. -
Change to the directory where you downloaded the
cqlshpackage:cd /DOWNLOAD_DIRECTORY -
Extract the files:
tar -xzvf cqlsh-VERSION-bin.tar.gzReplace
VERSIONwith the package version that you downloaded, such as5.1.48.The files are downloaded and extracted into the current directory.
Next steps
-
Connect to a cluster by starting the standalone
cqlshtool.