Quantcast
Channel: CodeSection,代码区,数据库(综合) - CodeSec
Viewing all articles
Browse latest Browse all 6262

Cassandra 3.0.4 Nutch 2.2.1 Issue: localhost:9160 connection refused

$
0
0

This morning, I setup Nutch 2.2.1 with Cassandra, when I run Nutch, it didn't work, I checked the log:

2017-03-16 07:43:57,311 WARN connection.CassandraHostRetryService - Downed localhost(127.0.0.1):9160 host still appears to be down: Unable to open transport to localhost(127.0.0.1):9160 , java.net.ConnectException: Connection refused: connect
2017-03-16 07:43:57,747 ERROR store.CassandraStore - All host pools marked down. Retry burden pushed out to client.
2017-03-16 07:43:57,747 ERROR store.CassandraStore - [Ljava.lang.StackTraceElement;@33b082c5
2017-03-16 07:43:57,751 ERROR store.CassandraStore - All host pools marked down. Retry burden pushed out to client.
2017-03-16 07:43:57,751 ERROR store.CassandraStore - [Ljava.lang.StackTraceElement;@3bead518
2017-03-16 07:43:57,960 ERROR store.CassandraStore - All host pools marked down. Retry burden pushed out to client.
2017-03-16 07:43:57,960 ERROR store.CassandraStore - [Ljava.lang.StackTraceElement;@46d9aec8
2017-03-16 07:43:58,205 ERROR store.CassandraStore - All host pools marked down. Retry burden pushed out to client.
2017-03-16 07:43:58,205 ERROR store.CassandraStore - [Ljava.lang.StackTraceElement;@57f7b900
2017-03-16 07:43:58,257 ERROR store.CassandraStore - All host pools marked down. Retry burden pushed out to client.
2017-03-16 07:43:58,257 ERROR store.CassandraStore - [Ljava.lang.StackTraceElement;@76e54c74
2017-03-16 07:43:58,259 ERROR store.CassandraStore - All host pools marked down. Retry burden pushed out to client.
2017-03-16 07:43:58,259 ERROR store.CassandraStore - [Ljava.lang.StackTraceElement;@278d24bf
2017-03-16 07:43:58,259 ERROR store.CassandraStore - All host pools marked down. Retry burden pushed out to client.
2017-03-16 07:43:58,260 ERROR store.CassandraStore - [Ljava.lang.StackTraceElement;@300eec4f
2017-03-16 07:43:58,263 ERROR store.CassandraStore - All host pools marked down. Retry burden pushed out to client.
2017-03-16 07:43:58,263 ERROR store.CassandraStore - [Ljava.lang.StackTraceElement;@72abd620
2017-03-16 07:43:59,211 ERROR store.CassandraStore - All host pools marked down. Retry burden pushed out to client.
2017-03-16 07:43:59,212 ERROR store.CassandraStore - [Ljava.lang.StackTraceElement;@76c52298
2017-03-16 07:43:59,216 ERROR store.CassandraStore - All host pools marked down. Retry burden pushed out to client.
2017-03-16 07:43:59,216 ERROR store.CassandraStore - [Ljava.lang.StackTraceElement;@45d6ef73
2017-03-16 07:43:59,400 ERROR store.CassandraStore - All host pools marked down. Retry burden pushed out to client.

I checked the code, the port was configured correctly, after several times repeat, then I googled it, great, someone had the same issue before, https://mythinkpond.com/2016/03/14/kairosdb-cassandra-localhost9160-connection-refused/

So, I turned on start_rpc: true in /conf/cassandra.yaml , it works now.

start_rpc: true

This happens with Cassandra 3.0 and above. The reason for this error is that by default Cassandra turns off the RPC service.

Cassandra Related Posts:

Viewing all articles
Browse latest Browse all 6262

Trending Articles