Re: Cassandra 2.1 on Xenial

2018-03-23 Thread Cyril Scetbon
Hmm. Interesting ! So you suspect that cassandra-stress tries to use the thrift protocol before actually using the native protocol, right ? I might check where is the difference between cassandra-stress 3.1 and cassandra-stress 2.1 when I have some time. Thanks. > On Mar 23, 2018, at 10:43

Re: Cassandra 2.1 on Xenial

2018-03-23 Thread Michael Shuler
I downloaded the 3.0.16 tar to /tmp on the same host as my 2.1 node was running (without thrift), and this worked for me: ./tools/bin/cassandra-stress write n=1 -mode native cql3 protocolVersion=3 Michael On 03/23/2018 09:30 AM, Michael Shuler wrote: > Well, now I'm a little stumped. I

Re: Cassandra 2.1 on Xenial

2018-03-23 Thread Michael Shuler
Well, now I'm a little stumped. I tried native mode with thrift enabled, wrote one row, so schema is created, then set start_rpc: false, restarted C*, and native mode fails in the same way. So it's not just the schema creation phase. I also tried including -port native=9042 and -schema

Re: Cassandra 2.1 on Xenial

2018-03-23 Thread Cyril Scetbon
Here is the command I use : cassandra-stress user profile=cass_insert_bac.yaml ops\(insert=1\) -mode native cql3 user=cassandra password=cassandra -rate threads=1 Thrift is disabled (start_rpc: False) as I’m not supposed to use thrift at all. But I was surprised by

Re: Cassandra 2.1 on Xenial

2018-03-22 Thread Michael Shuler
Looked at your error again. The cassandra-stress example appears as if thrift is disabled, which is the default stress profile. Try `cassandra-stress write -mode native cql3 ...` for native cql stress runs. Michael On 03/22/2018 11:36 PM, Michael Shuler wrote: > dh_python is a build dependency.

Re: Cassandra 2.1 on Xenial

2018-03-22 Thread Michael Shuler
dh_python is a build dependency. The runtime dependency is python. https://github.com/apache/cassandra/blob/cassandra-2.1/debian/control#L6 https://github.com/apache/cassandra/blob/cassandra-2.1/debian/control#L14 Just upgrading to the latest 2.1.x should fix all these issues your having. :)

Re: Cassandra 2.1 on Xenial

2018-03-22 Thread Cyril Scetbon
Yeah, I also had to grab a new version of the cassandra-driver which was fixed in 2.1.16 https://issues.apache.org/jira/browse/CASSANDRA-11850 otherwise cqlsh would not work with python 2.7.12. I’m surprised dh-python is not a requirement on the Cassandra package in your debian/control  I

Re: Cassandra 2.1 on Xenial

2018-03-19 Thread Michael Shuler
Yep. This was fixed for 2.1.15, 2.2.7, 3.0.6, 3.6 in https://issues.apache.org/jira/browse/CASSANDRA-10853 -- Kind regards, Michael On 03/18/2018 10:55 PM, Cyril Scetbon wrote: > Okay I found that when building the package, the new helper dh_python2 > must be used to fix that issue. > > — >

Re: Cassandra 2.1 on Xenial

2018-03-18 Thread Cyril Scetbon
Okay I found that when building the package, the new helper dh_python2 must be used to fix that issue. — Cyril Scetbon > On Mar 18, 2018, at 11:08 AM, Cyril Scetbon wrote: > > Hey guys, > > Having to still use Cassandra 2.1, I have installed it on Ubuntu Xenial and I

Cassandra 2.1 on Xenial

2018-03-18 Thread Cyril Scetbon
Hey guys, Having to still use Cassandra 2.1, I have installed it on Ubuntu Xenial and I have an issue with cqlsh. I was able to fix it by installing python-support and a fix from 2.1.16. However I’d like to know if there is a way to do it without installing an old package (python-support) on