cassandra-stress failing with connection refused error

364 views
Skip to first unread message

ajaysaheb@gmail.com

<ajaysaheb@gmail.com>
unread,
Aug 19, 2016, 12:18:39 PM8/19/16
to ScyllaDB users
I am trying to run cassandra-stress against the scylladb cluster I have deployed. But I am getting a "Connection refused" error back.  This is how I am starting my scylladb. 

/usr/bin/scylla --log-to-syslog 1 \

                --log-to-stdout 0 \

                --developer-mode true \

                --default-log-level info \

                --options-file $HOME/scylla.yaml \

                --listen-address $IP \

                --rpc-address $IP \

                --memory 16G \

                --smp 8 \

                --network-stack posix &



Error from cassandra-stress 

Exception in thread "main" java.lang.RuntimeException: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused

       at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144)

       at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110)

       at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111)

       at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59)

       at org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205)

       at org.apache.cassandra.stress.StressAction.run(StressAction.java:55)

       at org.apache.cassandra.stress.Stress.main(Stress.java:109)

Caused by: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused

       at org.apache.thrift.transport.TSocket.open(TSocket.java:187)

       at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81)

       at org.apache.cassandra.thrift.TFramedTransportFactory.openTransport(TFramedTransportFactory.java:41)

       at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:124)

       ... 6 more

Caused by: java.net.ConnectException: Connection refused

       at java.net.PlainSocketImpl.socketConnect(Native Method)

       at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

       at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

       at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

       at java.net.Socket.connect(Socket.java:589)

       at org.apache.thrift.transport.TSocket.open(TSocket.java:182)

       ... 9 more





Dor Laor

<dor@scylladb.com>
unread,
Aug 19, 2016, 12:21:28 PM8/19/16
to ScyllaDB users
Can you cqlsh it?
Does scylla listens on the right ip/port?

--
You received this message because you are subscribed to the Google Groups "ScyllaDB users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scylladb-users+unsubscribe@googlegroups.com.
To post to this group, send email to scylladb-users@googlegroups.com.
Visit this group at https://groups.google.com/group/scylladb-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/scylladb-users/b254fd57-13ee-4f1e-b4ec-9bc95d27c8dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ajaysaheb@gmail.com

<ajaysaheb@gmail.com>
unread,
Aug 19, 2016, 12:48:37 PM8/19/16
to ScyllaDB users
Yes, but I have to downgrade the version to 3.2.0

cqlsh --cqlversion=3.2.0 <host> 9042

[cqlsh 5.0.1 | Cassandra 2.1.8 | CQL spec 3.2.0 | Native protocol v3]

Use HELP for help.

cqlsh> 

To unsubscribe from this group and stop receiving emails from it, send an email to scylladb-user...@googlegroups.com.
To post to this group, send email to scyllad...@googlegroups.com.

ajaysaheb@gmail.com

<ajaysaheb@gmail.com>
unread,
Aug 19, 2016, 2:42:35 PM8/19/16
to ScyllaDB users, ajaysaheb@gmail.com
I am running cassandra-stress from inside a cassandra installation (version 2.1.13). Is that supposed to work against scylladb or is there a scylladb specific one that I should be using? My scylladb version is 1.2.3

Glauber Costa

<glauber@scylladb.com>
unread,
Aug 19, 2016, 3:03:54 PM8/19/16
to ScyllaDB users, ajaysaheb@gmail.com
On Fri, Aug 19, 2016 at 2:42 PM, <ajay...@gmail.com> wrote:
I am running cassandra-stress from inside a cassandra installation (version 2.1.13). Is that supposed to work against scylladb or is there a scylladb specific one that I should be using? My scylladb version is 1.2.3

there is a scylla specific version. It should be provided by the scylla-tools package.
We have some changes there - none of them should affect the actual benchmark (ex: not using thrift to create the keyspace, etc)

We recommend you use cqlsh from that package as well. The main reason is that you'll always match the correct protocol version with what the server supports.

 
To unsubscribe from this group and stop receiving emails from it, send an email to scylladb-users+unsubscribe@googlegroups.com.
To post to this group, send email to scylladb-users@googlegroups.com.

ajay aggarwal

<ajaysaheb@gmail.com>
unread,
Aug 19, 2016, 7:33:59 PM8/19/16
to Glauber Costa, ScyllaDB users

Thank you. The Scylla specific version worked.


Reply all
Reply to author
Forward
0 new messages