Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

I had a issue in connecting cqlsh in cassandra, kindly help me

Highlighted

I had a issue in connecting cqlsh in cassandra, kindly help me

Dear Team,

I am using 127.0.0.1 using virtual box by loading hortonworks, am trying to connect cqlsh after instaling all these commands

yum install

yum install scl-utils

yum install centos-release-scl-rh

yum install python27

scl enable python27 bash

reos.d - i types [datastax]

name = DataStax.Repo for Apache Cassandra

baseurl= http://rpm.datastax.com/community

enabled=1

gpgcheck=0

then

yum install dsc30

pip install repo

service cassandra start

--------------------- till this perfect

cqlsh - tried error

cqlsh --cqlversion="3.4.0" and my python version is 2.7.13

62818-cassandra-error.png

3 REPLIES 3
Highlighted

Re: I had a issue in connecting cqlsh in cassandra, kindly help me

Mentor

@Karthick Raja

Could you set the correct variables first and retry,

export CQLSH_PORT 
export CQLSH_HOST 

Then

$ bin/cqlsh

The output should look like this

Connected to Test Cluster at 127.0.0.1:9042.

Hope that helps

Highlighted

Re: I had a issue in connecting cqlsh in cassandra, kindly help me

@Geoffrey Shelton Oko - thanks Geoffrey a lots please, after that what should I do please.

Highlighted

Re: I had a issue in connecting cqlsh in cassandra, kindly help me

Mentor

@Karthick Raja

If you got a connection then you can start playing around see below links

Cassandra tutorial

Getting started with Cassandra

Hope that helps


Don't have an account?
Coming from Hortonworks? Activate your account here