Error En La Conexion De Cassandra
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or
Cassandra Connection Refused 9042
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss cassandra connection error unable to connect to any servers Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes
Tried Connecting To ('127.0.0.1' 9042) . Last Error Connection Refused ) )
a minute: Sign up How to connect Cassandra to localhost using cqlsh? up vote 18 down vote favorite 1 I set rpc_port to the public IP address, and now I can connect to Cassandra just fine from an outside server. unable to connect to any servers' '127.0.0.1' error(111 However, I cannot connect from the Cassandra server itself, using cqlsh I am getting an error.Thar are: Connection error: Could not connect to localhost:9160 Is there a configuration, I can change to be able to connect from the server itself ? cassandra share|improve this question edited Jun 1 '14 at 3:33 user3617840 34110 asked Jun 1 '14 at 3:15 Albert Lim 105117 add a comment| 12 Answers 12 active oldest votes up vote 16 down vote check the cassandra.yaml file on cqlsh connection error could not connect to localhost the line with rpc_port : normally by default = 9160 login to the machine hosting cassandra try cqlsh 127.0.0.1 9160 : should be ok in any case try cqlsh [IP of host] 9160 : if ok then cassandra reachable from lan, if ko then cassandra is not reachable from lan but only localhost 127.0.0.1 share|improve this answer edited Sep 9 '14 at 14:24 bummi 22.7k83462 answered Sep 9 '14 at 14:21 LeGeekDOzoZoo 33227 2 Thank you for pointing the direction, actually in my case I found start_rpc: false, setting it to true fixed the problem. –Custodio Dec 2 '15 at 9:13 add a comment| Did you find this question interesting? Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example). Subscribed! Success! Please click the link in the confirmation email to activate your subscription. up vote 7 down vote You need to connect to cassandra through the rpc_address defined in cassandra.yaml. For example, I use cqlsh 10.0.80.49 9160. share|improve this answer answered Sep 8 '14 at 5:08 Daniel Compton 3,23611233 add a comment| up vote 2 down vote It's not listening on 127.0.0.1 since you told it to only listen on
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of
How To Restart Cassandra
this site About Us Learn more about Stack Overflow the company Business Learn connection error: could not connect to localhost:9160 more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question
Cassandra Typeerror Ref Does Not Take Keyword Arguments
x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up http://stackoverflow.com/questions/23976445/how-to-connect-cassandra-to-localhost-using-cqlsh Cassandra cqlsh - connection refused up vote 18 down vote favorite 2 I've just started working with Cassandra (datastax), version 2.1.3 and cqlsh version 5.0.1. Cassandra starts up fine and the cluster is operational instantly. Cqlsh is not working (on any of the nodes) and emits the following error: Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(111, "Tried connecting to [('127.0.0.1', 9042)]. http://stackoverflow.com/questions/29121904/cassandra-cqlsh-connection-refused Last error: Connection refused")}) I have tried starting cqlsh up with the hosts own ip, other hosts ip, different ports yet the result remains the same - always connection refused. cassandra cqlsh share|improve this question edited Dec 27 '15 at 22:46 PiotrWolkowski 4,55141635 asked Mar 18 '15 at 12:20 Chros 91114 Considering I, and with the help offered here, couldn't solve the issue with 2.1.3 (which admittedly is still in development) I reconfigured the servers with 2.0.13 (stable). Cqlsh still gives a localhost:9160 error (despite the rpc_address being specified as the hosts) but it works by manually specifying the ip when starting it up cqlsh 1.1.2.2 9160 –Chros Mar 20 '15 at 15:42 Based on the fact that you downgraded to 2.0.13 and it works, I'm guessing that you had some kind of incorrect setting between listen_address, rpc_address and broadcast_rpc_address...the latter setting being new with 2.1.x. I would be interested to know the listen_address and rpc_address settings (not necessarily the values, but how they relate to the 1.1.2.2 IP used with cqlsh). If you try 2.1.x again, set listen_address to your local IP, rpc_
Sign in Pricing Blog Support Search GitHub This repository Watch 385 Star 7,037 Fork 674 Mashape/kong Code Issues 241 Pull requests 32 Projects 0 Wiki Pulse Graphs New https://github.com/Mashape/kong/issues/395 issue [ERR] Cassandra error: connection refused #395 Closed marktopper opened this Issue Jul 13, 2015 · 41 comments Projects None yet Labels question Milestone No milestone Assignees No one assigned 5 participants marktopper commented Jul 13, 2015 I retried the whole installation for Kong and it all went well. But now I get the following: $ kong start [INFO] Using connect to configuration: /etc/kong/kong.yml [INFO] Kong version.......0.3.2 Proxy HTTP port....8000 Proxy HTTPS port...8443 Admin API port.....8001 dnsmasq port.......8053 Database...........cassandra keepalive=60000 hosts=localhost port=9042 timeout=1000 keyspace=kong [INFO] Connecting to the database... [ERR] Cassandra error: connection refused I am totally new with kong, and haven't changed the /etc/kong/kong.yml from the defaults. Can anyone help me with what I am doing wrong? Mashape member thefosk commented Jul 13, 2015 Usually unable to connect this errors happens when Kong cannot communicate with Cassandra. By default the configuration expects Cassandra to be running on 127.0.0.1 on the default 9042 port. Did you also install and start Cassandra on 127.0.0.1? If you did't install Cassandra, one option is to install it, and another option is to use kongdb.org to provision a testing Cassandra instance (remember to change the connection settings in kong.yml with the right values). marktopper commented Jul 14, 2015 I have really no idea how to setup or use Cassandra. But I have used the default configurations. Then I tried to start Cassandra with the following methods: forge@kong:~$ sudo service cassandra start forge@kong:~$ sudo service cassandra restart * Restarting Cassandra cassandra [ OK ] forge@kong:~$ sudo service cassandra stop forge@kong:~$ sudo service cassandra start But still I get: $ kong start [INFO] Using configuration: /etc/kong/kong.yml [INFO] Kong version.......0.3.2 Proxy HTTP port....8000 Proxy HTTPS port...8443 Admin API port.....8001 dnsmasq port.......8053 Database...........cassandra keepalive=60000 hosts=localhost port=9042 timeout=1000 keyspace=kong [INFO] Connecting to the database... [ERR] Cassandra error: connection refused NOTE: Sometimes when restarting Cassandra I get this: $ sudo service cassandra restart * Restarting Cassandra cassandra start-stop