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

Tyler Hobbs commented on CASSANDRA-12241:
-----------------------------------------

It looks like {{rpc_address}} is set to the public IP, so connecting to 
127.0.0.1 (your first example) won't work.  Regarding the second connection 
attempt, I'm not sure why you're getting that error.  Do you have a firewall or 
iptables rules that could be causing problems?

> Error connecting to cqlsh
> -------------------------
>
>                 Key: CASSANDRA-12241
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12241
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>         Environment: Oracle Linux Server release 6.5
> Cassandra 3.0.8
> cqlsh 5.0.1
>            Reporter: Eric Pedregosa
>         Attachments: cassandra.log, cassandra.yaml.txt
>
>
> During Cassandra install we are experiencing this issue - "unable to connect 
> to servers" when running cqlsh.  Attached is the yaml config and log file.
> server 100.114.116.100
> [root@ushaplp00312la bin]# nodetool status
> Datacenter: USH
> ===============
> Status=Up/Down
> |/ State=Normal/Leaving/Joining/Moving
> --  Address          Load       Tokens       Owns (effective)  Host ID        
>                        Rack
> UN  100.114.116.102  125.17 KB  256          32.1%             
> b3366714-ecb3-46af-a3a1-f3b12648e358  RAC1
> UN  100.114.116.100  345.64 KB  256          33.4%             
> 83dfbd38-9233-41db-812d-7cd1aa34401b  RAC1
> UN  100.114.116.101  152.55 KB  256          34.5%             
> b8011e64-266f-4f18-a381-5f6dd5816af0  RAC1
> [root@ushaplp00312la bin]# cqlsh
> Connection error: ('Unable to connect to any servers', {'127.0.0.1': 
> error(111, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection 
> refused")})
> [root@ushaplp00312la ~]# cqlsh 100.114.116.100 9160
> Connection error: ('Unable to connect to any servers', {'100.114.116.100': 
> ConnectionShutdown('Connection <AsyncoreConnection(23964752) 
> 100.114.116.100:9160 (closed)> is already closed',)})
> [root@ushaplp00312la ~]# lsof -i :9160
> COMMAND   PID         USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
> java    42158 openplatform   66u  IPv4 1889424      0t0  TCP 
> ushaplp00312la.tfayd.com:apani1 (LISTEN)



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

Reply via email to