I am using the cqerl link below (using the latest master).
https://github.com/matehat/cqerl
In the source code, connect to the casandra as follows:
cqerl:new_client({host1,port1},[])
The document stated that you can specify casandra_nodes in your preferences, so I specified the following:
rel/myapp/bin/myapp start-cqerl casandra_nodes' [{host1,port1},{host2,port2},{host3,port3}]'
However, cqerl only seemed to know host1 (when host1 goes down, cqerl gives out the error that it cannot find a connection to).
Does anyone know what the first argument for cqerl:new_client should be when specifying casandra_nodes?Or is the configuration of the casandra_nodes wrong?
Sorry, I solved myself.
The following error occurred, but this is probably the correct response, and the client created the migration with cqerl:new_client()
was successful.
RASH REPORT Process <0.379.0> with 0 neighbors expired with reason: connection_closed in gen_fsm:terminate/7line 611
CRASH REPORT Process <0.1493.0> with 0 neighbors expired with reason: {connection_error, economized} ingen_fsm: init_it/6line373
This post was posted as a community wiki based on @syuhei's comments.
© 2024 OneMinuteCode. All rights reserved.