cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-1333) cassandra-cli cannot connect
Date Mon, 22 Nov 2010 02:09:14 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934383#action_12934383
] 

Jonathan Ellis commented on CASSANDRA-1333:
-------------------------------------------

No. Probably you are running server in un-framed mode; cli defaults to trying to connect w/
framed.

> cassandra-cli cannot connect 
> -----------------------------
>
>                 Key: CASSANDRA-1333
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1333
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7 beta 1
>         Environment: CentOS 5.2
> trunk
>            Reporter: Arya Goudarzi
>            Assignee: Jonathan Ellis
>             Fix For: 0.7 beta 1
>
>
> I cannot connect to any of my nodes using Cassandra-CLI. I think this has happened about
2 weeks ago:
> [agoudarzi@cas-test1 bin]$ cassandra-cli --host 10.50.26.132 --port 9160 --debug
> Exception retrieving information about the cassandra node, check you have connected to
the thrift port.
> org.apache.thrift.transport.TTransportException
> 	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
> 	at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
> 	at org.apache.thrift.transport.TFramedTransport.readFrame(TFramedTransport.java:129)
> 	at org.apache.thrift.transport.TFramedTransport.read(TFramedTransport.java:101)
> 	at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
> 	at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:369)
> 	at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:295)
> 	at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:202)
> 	at org.apache.cassandra.thrift.Cassandra$Client.recv_describe_cluster_name(Cassandra.java:1117)
> 	at org.apache.cassandra.thrift.Cassandra$Client.describe_cluster_name(Cassandra.java:1103)
> 	at org.apache.cassandra.cli.CliMain.connect(CliMain.java:164)
> 	at org.apache.cassandra.cli.CliMain.main(CliMain.java:255)
> Welcome to cassandra CLI.
> Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
> [default@unknown] exit                     
> However using Thrift PHP Client I have no problem connecting and executing describe_cluster_name().
> I have configured Cassandra RPC port and IP as follows:
> # The address to bind the Thrift RPC service to
> rpc_address: 10.50.26.132
> # port for Thrift to listen on
> rpc_port: 9160
> Steps to Reproduce:
> 1. Start from a clean setup;
> 2. Run py_stress to insert some keys and create the default keyspace;
> 3. Try connecting using cassandra-cli like command above. You'll get the Exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message