cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RADOMIRS CIRSKIS (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8222) Unable to connect to "any" server with cqlsh
Date Fri, 07 Nov 2014 00:50:34 GMT

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

RADOMIRS CIRSKIS commented on CASSANDRA-8222:
---------------------------------------------

[~mishail], thanks :). you are right. I had globally overwritten PYTHONPATH that had included
some 3rd party libs for Python 2.6.
{{unset PYTHONPATH}} solved the issue:

{code}
# unset PYTHONPATH ; python -c "import json; print dir(json); print json.__version__"

['JSONDecoder', 'JSONEncoder', '__all__', '__author__', '__builtins__', '__doc__', '__file__',
'__name__', '__package__', '__path__', '__version__', '_default_decoder', '_default_encoder',
'decoder', 'dump', 'dumps', 'encoder', 'load', 'loads', 'scanner']
2.0.9



# cqlsh

Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 2.1.1 | CQL spec 3.2.0 | Native protocol v3]
Use HELP for help.
cqlsh> 

{code}

> 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