Re: Prepare is 100 to 200 times slower after migration to 1.2.11

2013-11-27 Thread Shahryar Sedghi
Thanks Mikhail. I switched to 2.0.3 and the problem is still there, I will open an issue with a test case on it. I have not tested 1.2.12, but I assume that will have the same problem. Shahryar On Mon, Nov 25, 2013 at 5:57 PM, Shahryar Sedghi shsed...@gmail.com wrote: I did some test

Prepare is 100 to 200 times slower after migration to 1.2.11

2013-11-25 Thread Shahryar Sedghi
Hi I have migrated my DEV environment from 1.2.8 to 1.2.11 to finally move to 2.0.2, and prepare is 100 to 200 times slower, something that was sub millisecond now is 150 ms. Other CQL operations are normal. I am nor planning to move to 2,0.2 until I fix this. I do not see any warn or error

Re: Prepare is 100 to 200 times slower after migration to 1.2.11

2013-11-25 Thread Shahryar Sedghi
that was implemented in 1.2.11 and 2.0.2, I did the same test with 2.0.2 and got the same result. is there a setting for CQL3 prepared cahe that I have missed in 1.2.11? Thanks On Mon, Nov 25, 2013 at 1:02 PM, Shahryar Sedghi shsed...@gmail.com wrote: Hi I have migrated my DEV environment from 1.2.8

Keystore password in yaml is in plain text

2013-10-04 Thread Shahryar Sedghi
Hi I there a way to obfuscate the keystore/truststore password? Thanks Shahryar --

Commit log and data separation on SSD

2013-09-22 Thread Shahryar Sedghi
This my first SSD experience. With normal disks we separate commit log from data. We have 2 SSDs dedicated to Cassandra I was wondering if we gain a better performance if we put commit log in one and data in another, or just use raid 0 to have both SSDs combined. Thanks in Advance Shahryar

Cleanup the peers columnfamily

2013-05-06 Thread Shahryar Sedghi
I had a 4 node cluster in my dev environment and due to resource limitation, I had to remove two nodes. Nodetool status shows only two nodes on both machines , but peers table on one machine still shows entries of the nodes with a null rpc address. Thrift has no problem with it but new Binary

Cassandra on Joyent

2013-05-03 Thread Shahryar Sedghi
Hi I was wondering if anyone has used or evaluated Cassandra on Joyent (either SmartOS or Linux). Price Performance, data transfer and availability is so promising. I was wondering if it is to good to be true. Thanks in advance Shahryar

CQL update and TTL

2013-04-26 Thread Shahryar Sedghi
Apparently when I update a column using CQL that already has a TTL, it resets the TTL to null, so if there was already a TTL for all columns that I inserted part of a composite column set, this specific column that I updated will not expire while the others are are getting expired. Is it how it is

Re: CQL update and TTL

2013-04-26 Thread Shahryar Sedghi
, this might be useful on some use cases. Alain 2013/4/26 Shahryar Sedghi shsed...@gmail.com Apparently when I update a column using CQL that already has a TTL, it resets the TTL to null, so if there was already a TTL for all columns that I inserted part of a composite column set

Re: Why do Datastax docs recommend Java 6?

2013-04-04 Thread Shahryar Sedghi
I use IBM JVM 7, it is free, and for VMs over 8 GB it has a garbage collection policy that makes it almost pause-less. We also use some security libraries that eliminates use of other libs that you need for Oracle. On Thu, Apr 4, 2013 at 12:59 AM, Edward Capriolo edlinuxg...@gmail.comwrote:

Re: Documentation/Examples for DataStax java-driver

2013-02-13 Thread Shahryar Sedghi
Source code has enough documentation in it, apparently this is how they do it with new stuff. Start with Custer class, it tells you how to write. If you still had problem let me know, I can give you sample code. On Tue, Feb 12, 2013 at 9:19 PM, Drew Kutcharian d...@venarc.com wrote: Are there

Re: Documentation/Examples for DataStax java-driver

2013-02-13 Thread Shahryar Sedghi
to help you started. --Gabi On 2/13/13 5:31 PM, Shahryar Sedghi wrote: Source code has enough documentation in it, apparently this is how they do it with new stuff. Start with Custer class, it tells you how to write. If you still had problem let me know, I can give you sample code

Re: CQL 3 compound row key error

2013-02-11 Thread Shahryar Sedghi
raise a ticket on https://issues.apache.org/jira/browse/CASSANDRA Cheers - Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 11/02/2013, at 4:01 PM, Shahryar Sedghi shsed...@gmail.com wrote: I am moving my application

Nodetool can not get to 7199 after migrating to 1.2.1

2013-01-30 Thread Shahryar Sedghi
I migrated my test environment from 1.2.0 to 1.2.1 (DataStax Community) and nodetool can not communicate to 7199, even if it is listening. in one node I get Failed to connect to 'cassandra4:7199': Connection refused in another node I get timeout. Did I do anything wrong, when upgrading? Thanks

Cassandra 1.2, wide row and secondary index question

2013-01-14 Thread Shahryar Sedghi
CQL 3 in Cassandra 1.2 does not allow order by when it is a wide row and a column with secondary index is used in a where clause which makes sense. So the question is: I have a test table like this: CREATE TABLE test( interval int, id uuid, severity int, PRIMARY KEY

Re: Cassandra 1.2, wide row and secondary index question

2013-01-14 Thread Shahryar Sedghi
A - Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 15/01/2013, at 6:56 AM, Sylvain Lebresne sylv...@datastax.com wrote: On Mon, Jan 14, 2013 at 5:04 PM, Shahryar Sedghi shsed...@gmail.comwrote: Can I always count on this order, or it may

Re: Cassandra 1.2 Thrift and CQL 3 issue

2013-01-13 Thread Shahryar Sedghi
these difference. Thanks in advance Shahryar On Sat, Jan 12, 2013 at 1:39 PM, Shahryar Sedghi shsed...@gmail.com wrote: Thanks Brian it is not the same issue, and stack trace is different. It is a simple test case and I have 3 columns and I populate all of them with: cqlsh:somedb CREATE TABLE test

Cassandra 1.2 Thrift and CQL 3 issue

2013-01-12 Thread Shahryar Sedghi
Hi I am trying to test my application that runs with JDBC, CQL 3 with Cassandra 1.2. After getting many weird errors and downgrading from JDBC to thrift, I realized the thrift on Cassandra 1.2 has issues with wide rows. If I define the table as: CREATE TABLE test(interval int,id text, body

Re: Cassandra 1.2 Thrift and CQL 3 issue

2013-01-12 Thread Shahryar Sedghi
it is CQL 3? Thanks On Sat, Jan 12, 2013 at 12:48 PM, Shahryar Sedghi shsed...@gmail.comwrote: Hi I am trying to test my application that runs with JDBC, CQL 3 with Cassandra 1.2. After getting many weird errors and downgrading from JDBC to thrift, I realized the thrift on Cassandra 1.2 has

Re: Cassadra API for Java

2012-12-30 Thread Shahryar Sedghi
I use JDBC with Cassandra 1.1 with CQL 3. I tried both Hector and Thrift and JDBC is much easier to code, I never tried Astyanax. Application servers have built-in connection pooling support for JDBC, but do not provide fail over to other machines, you need to do it at the application level.

Re: reversed=true for CQL 3

2012-12-06 Thread Shahryar Sedghi
On Wed, Dec 5, 2012 at 9:47 PM, Rob Coli rc...@palominodb.com wrote: On Wed, Dec 5, 2012 at 3:59 PM, Shahryar Sedghi shsed...@gmail.com wrote: Is there a keyword with the same functionality as reversed=True or CQL 3 on Cassandra 1.1.6? https://issues.apache.org/jira/browse/CASSANDRA-4004

reversed=true for CQL 3

2012-12-05 Thread Shahryar Sedghi
Hi Is there a keyword with the same functionality as reversed=True or CQL 3 on Cassandra 1.1.6? Thanks in advance Shahryar -- Life is what happens while you are making other plans. ~ John Lennon

Re: JVM 7, Cass 1.1.1 and G1 garbage collector

2012-09-11 Thread Shahryar Sedghi
I was able to run IBM Java 7 with Cassandra (could not do it with 1.6 because of snappy). It has a new Garbage collection policy (called balanced) that is good for very large heap size (over 8 GB), documented

Re: Multiple keyspace question

2012-07-06 Thread Shahryar Sedghi
Aaron I am going to have many (over 50 eventually) keyspaces with limited number of CFs (5-6) do you think this one can cause a problem too. Thanks On Fri, Jul 6, 2012 at 2:28 PM, aaron morton aa...@thelastpickle.comwrote: Also, all CF's in the same KS share one commit log. So all writes for

Setting up a cluster

2012-06-18 Thread Shahryar Sedghi
a keyspace with any replication factor the begin and end token of the keyspace is the localhost token. P.S. i have generated tokens for each node. What did I miss here? Thanks Shahryar Sedghi -- Life is what happens while you are making other plans. ~ John Lennon

Re: Setting up a cluster

2012-06-18 Thread Shahryar Sedghi
. Cheers - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 19/06/2012, at 6:29 AM, Shahryar Sedghi wrote: I am new to Cassandra, and setting up a cluster for the first time with 1.1.1. There are three nodes, 1 acts as a seed node that all three