cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shuler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8222) Unable to connect to "any" server with cqlsh
Date Fri, 31 Oct 2014 00:46:35 GMT

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

Michael Shuler commented on CASSANDRA-8222:
-------------------------------------------

That looks right. If your machine is running zero firewall rules (check that), does your machine
happen to know its own name and localhost? DNS can be a fiddly thing.
{noformat}
mshuler@hana:~$ hostname
hana
mshuler@hana:~$ hostname -i
127.0.1.1
mshuler@hana:~$ host localhost
localhost has address 127.0.0.1
localhost has IPv6 address ::1
{noformat}

> Unable to connect to "any" server with cqlsh
> --------------------------------------------
>
>                 Key: CASSANDRA-8222
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8222
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: java -version
> java version "1.7.0_25"
> Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
> Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
> python --version
> Python 2.7.8
>            Reporter: RADOMIRS CIRSKIS
>              Labels: cqlsh
>
> I was going through the http://wiki.apache.org/cassandra/GettingStarted
> 1. Installed cassandra
> 2.  run cassandra: bin/cassandra -f
> 3. in another terminal attempt to run cqlsh: cqlsh
> 4. also I have tried explicitly: cqlsh 127.0.0.1 9042
> 5. it produces a message:
> {noformat}
> Connection error: ('Unable to connect to any servers', {'127.0.0.1': AttributeError("'module'
object has no attribute 'loads'",)})
> {noformat}
> Cassandra is running and listening on the port 9042:
> {noformat}
> ...
> INFO  03:36:08 Using Netty Version: [netty-buffer=netty-buffer-4.0.23.Final.208198c,
netty-codec=netty-codec-4.0.23.Final.208198c, netty-codec-http=netty-codec-http-4.0.23.Final.208198c,
netty-codec-socks=netty-codec-socks-4.0.23.Final.208198c, netty-common=netty-common-4.0.23.Final.208198c,
netty-handler=netty-handler-4.0.23.Final.208198c, netty-transport=netty-transport-4.0.23.Final.208198c,
netty-transport-rxtx=netty-transport-rxtx-4.0.23.Final.208198c, netty-transport-sctp=netty-transport-sctp-4.0.23.Final.208198c,
netty-transport-udt=netty-transport-udt-4.0.23.Final.208198c]
> INFO  03:36:08 Starting listening for CQL clients on localhost/127.0.0.1:9042...
> INFO  03:36:09 Binding thrift service to localhost/127.0.0.1:9160
> INFO  03:36:09 Listening for thrift clients...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message