Creating a Cluster hangs #1

gibbonsd1 opened this Issue Feb 28, 2013 · 4 comments


None yet

2 participants


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 or cdoc](user/clojuredocs name-here)
(user/clojuredocs "ns-here" "name-here")
cassandra-test.core=> (require '[qbits.alia :as alia])
cassandra-test.core=> (def cluster (alia/cluster "" :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 -p 9160
Connected to: "Test Cluster" on
Welcome to Cassandra CLI version 1.2.2

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


The DataStax driver was installed via:
git clone
cd java-driver/driver-core
mvn install -DskipTests

Platform: OS X Mountain Lion
Cassandra cluster version: 1.2.1

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.


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 commented Feb 28, 2013

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


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