skip to Main Content

I am running Cassandra 2.2.14 on a virtual machine (CentOS). The issue is that I cannot run the command “cqlsh” to create tables and keyspaces.

when I was tipping at the terminal:

cqlsh localhost ks-schema-local.cql

bash shell :

bash: cqlsh: command not found

cf) java version:

openjdk version "1.8.0_201"
OpenJDK Runtime Environment (build 1.8.0_201-b09)
OpenJDK 64-Bit Server VM (build 25.201-b09, mixed mode)

How can I solve this issue?

2

Answers


  1. is cassandra installation directory is in your classpath?, add cassandra bin directory to your classpath, or execute from bin location.

    Login or Signup to reply.
  2. First install Cassandra to your computer, then go to bin directory and type:

    ./cqlsh

    It should work if Cassandra is running in the default port (9160).

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search