Creating a Cluster hangs #1

Closed
gibbonsd1 opened this Issue Feb 28, 2013 · 4 comments

Projects

None yet

2 participants

@gibbonsd1

In a REPL with the following dependencies:
[[org.clojure/clojure "1.5.0-RC17"]
[cc.qbits/alia "0.2.0-SNAPSHOT"]]

When I try to define a cluster, it hangs:
dgibbons:cassandra-test dgibbons$ lein repl
nREPL server started on port 58911
REPL-y 0.1.0-beta10
Clojure 1.5.0-RC17
Exit: Control+D or (exit) or (quit)
Commands: (user/help)
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
(user/sourcery function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Examples from clojuredocs.org: [clojuredocs or cdoc](user/clojuredocs name-here)
(user/clojuredocs "ns-here" "name-here")
cassandra-test.core=> (require '[qbits.alia :as alia])
nil
cassandra-test.core=> (def cluster (alia/cluster "10.60.89.0" :port 9160))

^ At this point, the REPL hangs until I press CTRL+C.

Yet, cassandra-cli can successfully connect to this server:
dgibbons:bin dgibbons$ ./cassandra-cli -h 10.60.89.0 -p 9160
Connected to: "Test Cluster" on 10.60.89.0/9160
Welcome to Cassandra CLI version 1.2.2

Type 'help;' or '?' for help.
Type 'quit;' or 'exit;' to quit.

[default@unknown]

The DataStax driver was installed via:
git clone git@github.com:datastax/java-driver.git
cd java-driver/driver-core
mvn install -DskipTests

Platform: OS X Mountain Lion
Cassandra cluster version: 1.2.1

@mpenet
Owner
mpenet commented Feb 28, 2013

Did you set start_native_transport: true in cassandra.yaml?
cli uses Thrift, that's why it works.

The native transport is bound to port 9042 by default I think, again this is found in the config file.

@gibbonsd1

Ah, I missed that part of the docs. Giving it a shot...

:port: port to connect to on the nodes (native transport must be active on the nodes: start_native_transport: true in cassandra.yaml). Defaults to 9042 if not supplied.

@mpenet
Owner
mpenet commented Feb 28, 2013

I will make it more obivious, it is a bit hidden in options now.

@gibbonsd1

Ok, that resolved it. Thanks!

@gibbonsd1 gibbonsd1 closed this Feb 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment