EOF error messages when trying to connect to cassandra solr node(s)

590 views
Skip to first unread message

steve roemen

unread,
Feb 12, 2014, 6:40:39 PM2/12/14
to go...@googlegroups.com
Hey, Hopefully this isn't a newbie problem, but I'm getting an error message like this:
2014/02/12 17:28:23 failed to connect to "x.x.x.x:9160": EOF

I'm using the defaults (except for specifying the 9160 port.  

Any ideas?

//global variable
var (
C_sess *gocql.Session
)

    clus := gocql.NewCluster("x.x.x.x:9160")
    clus.Keyspace = "mykeyspace"
    clus.Consistency = gocql.LocalQuorum

    var err error
        C_sess, err = clus.CreateSession()
    if err != nil {
        log.Fatalf("CreateSession() error: %v", err)
    }
    defer C_sess.Close()


Ben Hood

unread,
Feb 12, 2014, 6:56:00 PM2/12/14
to steve roemen, go...@googlegroups.com
Steve,

On Wed, Feb 12, 2014 at 11:40 PM, steve roemen <sro...@gmail.com> wrote:
> Hey, Hopefully this isn't a newbie problem, but I'm getting an error message
> like this:
> 2014/02/12 17:28:23 failed to connect to "x.x.x.x:9160": EOF
>
> I'm using the defaults (except for specifying the 9160 port.

The default port for CQL is 9042. Is there a reason to connect to 9160?

I've just tried to (erroneously) connect to 9160 and I get the same
EOF error - we should potentially try to make this error a bit more
graceful.

Cheers,

Ben

steve roemen

unread,
Feb 12, 2014, 7:31:56 PM2/12/14
to go...@googlegroups.com, steve roemen
Gaah!  I feel stupid.. Thanks for making me look at the cassandra nodes...  I didn't even have the damn thing running (start_native_transport wasn't set, and defaulted to false)

I enabled that and what do you know...  it works!
Reply all
Reply to author
Forward
0 new messages