Re: Cassandra 3.1 - Aggregation query failure

2015-12-23 Thread Robert Stupp
Well, the usual access goal for queries in C* is “one partition per query” - maybe a handful partitions in some cases. That does not differ for aggregates since the read path is still the same. Aggregates in C* are meant to move some computation (for example on the data in a time-frame

RE: Cassandra 3.1 - Aggregation query failure

2015-12-23 Thread SEAN_R_DURITY
...@jonhaddad.com] Sent: Monday, December 21, 2015 2:50 PM To: user@cassandra.apache.org; dinesh.shanb...@isanasystems.com Subject: Re: Cassandra 3.1 - Aggregation query failure Even if you get this to work for now, I really recommend using a different tool, like Spark. Personally I wouldn't use

Re: Timestamp Query

2015-12-21 Thread Eric Stevens
Generally speaking (both for Cassandra as well as for many other projects), timestamps don't carry a timezone directly. A single point in time has a consistent value for timestamp regardless of the timezone, and when you convert a timestamp to a human-friendly value, you can attach a timezone to s

Re: Cassandra 3.1 - Aggregation query failure

2015-12-21 Thread Jonathan Haddad
Even if you get this to work for now, I really recommend using a different tool, like Spark. Personally I wouldn't use UDAs outside of a single partition. On Mon, Dec 21, 2015 at 1:50 AM Dinesh Shanbhag < dinesh.shanb...@isanasystems.com> wrote: > > Thanks for the pointers! I edited jvm.options

Re: Cassandra 3.1 - Aggregation query failure

2015-12-21 Thread Dinesh Shanbhag
Thanks for the pointers! I edited jvm.options in $CASSANDRA_HOME/conf/jvm.options to increase -Xms and -Xmx to 1536M. The result is the same. And in $CASSANDRA_HOME/logs/system.log, grep GC system.log produces this (when jvm.options had not been changed): INFO [Service Thread] 2015-12-1

Re: Timestamp Query

2015-12-20 Thread Jai Bheemsen Rao Dhanwada
https://datastax.github.io/java-driver/features/query_timestamps/ On Sun, Dec 20, 2015 at 9:48 PM, Harikrishnan A wrote: > Hello, > > How do I set a timestamp value with specific timezone in cassandra. I > understand that it captures the timezone of the co ordinator node while > inserting. > Wha

Timestamp Query

2015-12-20 Thread Harikrishnan A
Hello, How do I set a timestamp value with specific timezone in cassandra. I understand that it captures the timezone of the co ordinator node while inserting. What about if I want to insert and display the timezone that I preferred nstead of the default co ordinator timezone.  Thanks & Regards,

Re: Cassandra 3.1 - Aggregation query failure

2015-12-18 Thread Tyler Hobbs
On Fri, Dec 18, 2015 at 9:17 AM, DuyHai Doan wrote: > Cassandra will perform a full table scan and fetch all the data in memory > to apply the aggregate function. Just to clarify for others on the list: when executing aggregation functions, Cassandra *will* use paging internally, so at most one

Re: Cassandra 3.1 - Aggregation query failure

2015-12-18 Thread DuyHai Doan
g the partition key in the query ("select late_flights(uniquecarrier, depdel15) from flightsbydate;") Cassandra will perform a full table scan and fetch all the data in memory to apply the aggregate function. With a small Java HEAP size, there is a possibility that Cassandra runs o

Cassandra 3.1 - Aggregation query failure

2015-12-18 Thread Dinesh Shanbhag
int in the tuple represents delayed flights of the corresponding uniquecarrier. The second int represents total flights of the uniquecarrier. This aggregation query on a subset of the days of the month works: cqlsh:flightdata> select late_flights(uniquecarrier, depdel15) from flights

Re: Query Consistency Issues...

2015-12-15 Thread Steve Robenalt
I agree with Jon. It's almost a statistical certainty that such updates will be processed out of order some of the time because the clock sync between machines will never be perfect. Depending on how your actual code that shows this problem is structured, there are ways to reduce or eliminate such

Re: Query Consistency Issues...

2015-12-15 Thread Jonathan Haddad
High volume updates to a single key in a distributed system that relies on a timestamp for conflict resolution is not a particularly great idea. If you ever do this from multiple clients you'll find unexpected results at least some of the time. On Tue, Dec 15, 2015 at 12:41 PM Paulo Motta wrote:

Re: Query Consistency Issues...

2015-12-15 Thread Paulo Motta
> We are using 2.1.7.1 Then you should be able to use the java driver timestamp generators. > So, we need to look for clock sync issues between nodes in our ring? How close do they need to be? millisecond precision since that is the server precision for timestamps, so probably NTP should do the

Re: Query Consistency Issues...

2015-12-15 Thread James Carman
On Tue, Dec 15, 2015 at 2:57 PM Paulo Motta wrote: > What cassandra and driver versions are you running? > > We are using 2.1.7.1 > It may be that the second update is getting the same timestamp as the > first, or even a lower timestamp if it's being processed by another server > with unsynced

Re: Query Consistency Issues...

2015-12-15 Thread Paulo Motta
What cassandra and driver versions are you running? It may be that the second update is getting the same timestamp as the first, or even a lower timestamp if it's being processed by another server with unsynced clock, so that update may be getting lost. If you have high frequency updates in the s

Query Consistency Issues...

2015-12-15 Thread James Carman
We are encountering a situation in our environment (a 6-node Cassandra ring) where we are trying to insert a row and then immediately update it, using LOCAL_QUORUM consistency (replication factor = 3). I have replicated the issue using the following code: https://gist.github.com/jwcarman/72714e6d

Re: No query results while expecting results

2015-11-24 Thread Ramon Rockx
nnect(KEYSPACE); try { session.execute("INSERT INTO " + TABLENAME + "(tnt_id, data) VALUES (5, 'cql test value')"); } finally { session.close(); } } finally { cluster.close(); }

RE: No query results while expecting results

2015-11-24 Thread Peer, Oded
nt_id 5 From: Carlos Alonso [mailto:i...@mrcalonso.com] Sent: Monday, November 23, 2015 9:00 PM To: user@cassandra.apache.org Subject: Re: No query results while expecting results Did you tried to observe it using cassandra-cli? (the thrift client) It shows the 'disk-layout' of the data

Re: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement

2015-11-23 Thread Adam Holmberg
Michael, Thanks for pointing that out. It is a driver issue affecting CQL export (but not the execution API). I created a ticket to track and resolve: https://datastax-oss.atlassian.net/browse/PYTHON-447 Adam On Sat, Nov 21, 2015 at 8:38 AM, Laing, Michael wrote: > Quickly reviewing this spec

Re: No query results while expecting results

2015-11-23 Thread Carlos Alonso
Did you tried to observe it using cassandra-cli? (the thrift client) It shows the 'disk-layout' of the data and may help as well. Otherwise, if you can reproduce it having a varint as the last part of the partition key (or at any other location), this may well be a bug. Carlos Alonso | Software E

Re: No query results while expecting results

2015-11-23 Thread Ramon Rockx
Hello Carlos, On Mon, Nov 23, 2015 at 3:31 PM, Carlos Alonso wrote: > Well, this makes me wonder how varints are compared in java vs python > because the problem may be there. > > I'd suggest getting the token, to know which server contains the missing > data. Go there and convert sstables to js

Re: No query results while expecting results

2015-11-23 Thread Prem Yadav
llo Prem, >> >> On Mon, Nov 23, 2015 at 2:36 PM, Prem Yadav wrote: >> >>> Can you run the trace again for the query "select * " without any >>> conditions and see if you are getting results for tnt_id=5? >>> <http://www.iqnomy.com/&

Re: No query results while expecting results

2015-11-23 Thread Carlos Alonso
ter.com/calonso> On 23 November 2015 at 13:55, Ramon Rockx wrote: > Hello Prem, > > On Mon, Nov 23, 2015 at 2:36 PM, Prem Yadav wrote: > >> Can you run the trace again for the query "select * " without any >> conditions and see if you are getting results for tnt

Re: No query results while expecting results

2015-11-23 Thread Ramon Rockx
Hello Prem, On Mon, Nov 23, 2015 at 2:36 PM, Prem Yadav wrote: > Can you run the trace again for the query "select * " without any > conditions and see if you are getting results for tnt_id=5? > <http://www.iqnomy.com/> Of course, here are the results, with trac

Re: No query results while expecting results

2015-11-23 Thread Prem Yadav
Can you run the trace again for the query "select * " without any conditions and see if you are getting results for tnt_id=5? On Mon, Nov 23, 2015 at 1:23 PM, Ramon Rockx wrote: > Hello Oded and Carlos, > > Many thanks for your tips. I modified the consistency level in c

Re: No query results while expecting results

2015-11-23 Thread Ramon Rockx
14:13:05,898 | 192.168.0.210 |276 Executing single-partition query on te | 14:13:05,898 | 192.168.0.211 |259 Enqueuing data request to / 192.168.0.211 | 14:13:05,898 | 192.168.0.210 |

Re: No query results while expecting results

2015-11-23 Thread Carlos Alonso
62015032164 | 2063819251 | 105e7210-cfdb-11e4-85e9-000c2981ebb4 | > 0 | {"v":1451221,"s":2130304,"r":104769,"u":"http://www.example.com"} > 62015061055 | 2147429759 | 35b97470-0f68-11e5-8cc3-000c2981ebb4 | >

RE: No query results while expecting results

2015-11-23 Thread Peer, Oded
It might be a consistency issue. Assume your data for tnt 5 should be on nodes 1 and 2, but actually never got to node 1 for various reasons, and the hint wasn’t replayed for some reason and you didn’t run repairs. The data for tnt 5 is only on node 2. A query without restrictions on the

No query results while expecting results

2015-11-23 Thread Ramon Rockx
//www.example.com"} 62015032164 | 2063819251 | 105e7210-cfdb-11e4-85e9-000c2981ebb4 |0 | {"v":1451221,"s":2130304,"r":104769,"u":"http://www.example.com"} 62015061055 | 2147429759 | 35b97470-0f68-11e5-8cc3-000c2981ebb4 |1 | {"v&q

Re: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement

2015-11-21 Thread Laing, Michael
Quickly reviewing this spec: https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec I see that column_name is a utf-8 encoded string. So you should be able to pass unicode into the python driver and have it do the "right thing". If not, it's a bug IMHO. On Sat, Nov 21, 2015

Re: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement

2015-11-21 Thread Laing, Michael
> > All these pain we need to take because the column names have special >> character like " ' _- ( ) '' ¬ " etc. >> > Hmm. I tried: cqlsh:test> create table quoted_col_name ( pk int primary key, "'_-()""¬" int); cqlsh:test> select * from quoted_col_name; *pk* | *'_-()"¬* +- (0 row

Re: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement

2015-11-20 Thread Eric Stevens
more new column names from > this XML > 3) check the system.schema_columns if these column_name(s) exist in the > table > 4) If the column don't exist in the table "ALTER table tablename add new > column_name text" > 5) Inject data into this new column "Update table n

RE: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement

2015-11-20 Thread Rajesh Radhakrishnan
these column_name(s) exist in the table 4) If the column don't exist in the table "ALTER table tablename add new column_name text" 5) Inject data into this new column "Update table name set column_name =value where id=blah" We did tried the map columns, but the query par

UDT - Collection - Query

2015-11-15 Thread Neha Dave
,value: {'SOX'}}); INSERT INTO test_path3 (path_id, mdata ) VALUES ( '1', { key :'applicable-security-policy',value: {'FOX'}}); *Can I query Something likecqlsh:mykeyspace> SELECT * FROM test_path3 where mdata.value CONTAINS {'Mime'};SyntaxException: * Thanks regards Neha

Re: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement

2015-11-13 Thread Alex Popescu
config value need to be updated for some parameter in > cassandra.yaml > > Do you know which one? > > > > -- > *From:* Laing, Michael [michael.la...@nytimes.com] > *Sent:* 13 November 2015 12:26 > > *To:* user@cassandra.apache.org > *

RE: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement

2015-11-13 Thread Rajesh Radhakrishnan
you know which one? From: Laing, Michael [michael.la...@nytimes.com] Sent: 13 November 2015 12:26 To: user@cassandra.apache.org Subject: Re: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement Dynamic schema changes

Re: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement

2015-11-13 Thread Laing, Michael
er@cassandra.apache.org > *Subject:* Re: Getting code=2200 [Invalid query] message=Invalid column > name ... while executing ALTER statement > > Maybe schema disagreement? > > Run nodetool describecluster to discover > > Carlos Alonso | Software Engineer | @calonso <htt

RE: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement

2015-11-13 Thread Rajesh Radhakrishnan
2015 11:55 To: user@cassandra.apache.org Subject: Re: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement Maybe schema disagreement? Run nodetool describecluster to discover Carlos Alonso | Software Engineer | @calonso<https://twitter.com/calo

Re: Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement

2015-11-13 Thread Carlos Alonso
ALTER TABLE test.iau ADD col5 text > ALTER TABLE test.iau ADD col6 text > ALTER TABLE test.iau ADD col7 text > ALTER TABLE test.iau ADD col8 text > ALTER TABLE test.iau ADD col9 text > E > == > > --

Getting code=2200 [Invalid query] message=Invalid column name ... while executing ALTER statement

2015-11-13 Thread Rajesh Radhakrishnan
Traceback (most recent call last): File "UnitTests.py", line 313, in test_insert_data session.execute(sqlAlterStatement1) File "/usr/local/lib/python2.7/site-packages/cassandra/cluster.py", line 1405, in

Re: Read query taking a long time

2015-10-21 Thread Carlos Alonso
Well... I think that pretty much is showing the problem. The problem I'd say is a bad data model. Your read query is perfect, it hits a single partition and that's the best situation, but on the other hand, it turns out that there are one or two huge partitions and fully reading them is

Re: Read query taking a long time

2015-10-21 Thread Laing, Michael
and in all nodes? > > I checked and on all nodes, the read latency and read local latency are > within 15 to 40ms. > > I also noticed that C* was taking a fair bit of CPU on some of the nodes > (ranging from 60% to 200%), looking at ttop output it was mostly taken by > SharedPool-Worker threads, which I assume are the thread that are doing the > real query work. > > Well, I'm puzzled, and I'll keep searching, thanks for your help! > -- > Brice Figureau >

Re: Read query taking a long time

2015-10-21 Thread Brice Figureau
threads, which I assume are the thread that are doing the real query work. Well, I'm puzzled, and I'll keep searching, thanks for your help! -- Brice Figureau

Re: Read query taking a long time

2015-10-20 Thread Carlos Alonso
wrote my e-mail, things > are a bit better. > > This might be because I moved from openjdk 7 to oracle jdk 8 after > having seen a warning in the C* log about openjdk, and I also added a > node (for other reasons). > > Now the query itself takes only 1.5s~2s instead of the 5s~6

Re: Read query taking a long time

2015-10-20 Thread Brice Figureau
Hi, Thanks for your answer. Unfortunately since I wrote my e-mail, things are a bit better. This might be because I moved from openjdk 7 to oracle jdk 8 after having seen a warning in the C* log about openjdk, and I also added a node (for other reasons). Now the query itself takes only 1.5s~2s

Re: Read query taking a long time

2015-10-19 Thread Jon Haddad
o | Software Engineer | @calonso <https://twitter.com/calonso> > > On 17 October 2015 at 16:15, Brice Figureau <mailto:brice+cassan...@daysofwonder.com>> wrote: > Hi, > > I've read all I could find on how cassandra works, I'm still wondering why > the

Re: Read query taking a long time

2015-10-19 Thread Carlos Alonso
e read all I could find on how cassandra works, I'm still wondering why > the following query takes more than 5s to return on a simple (and modest) 3 > nodes cassandra 2.1.9 cluster: > > SELECT sequence_nr, used > FROM messages > WHERE persistence_id = 'session-

Read query taking a long time

2015-10-17 Thread Brice Figureau
Hi, I've read all I could find on how cassandra works, I'm still wondering why the following query takes more than 5s to return on a simple (and modest) 3 nodes cassandra 2.1.9 cluster: SELECT sequence_nr, used FROM messages WHERE persistence_id = 'session-SW' AND pa

Re: unchecked_tombstone_compaction - query

2015-10-15 Thread Robert Coli
On Thu, Oct 15, 2015 at 9:01 AM, Paulo Motta wrote: > (OP says:) So - isn't setting unchecked_tombstone_compaction to "true" a >> dangerous setting? Won't it cause resurrections? What is the use case for >> this knob, and when do I know I can set it to true safely? >> > To expand slightly on Pa

Re: unchecked_tombstone_compaction - query

2015-10-15 Thread Paulo Motta
Hello Deepak, The dev@cassandra list is exclusive for development announcements and discussions, so I will reply to users@cassandra as someone else might have a similar question. Basically, there is pre-check, that defines which sstables are eligible for single-sstable tombstone compaction, and a

Re: Cassandra query degradation with high frequency updated tables.

2015-10-10 Thread Brice Dutheil
; >>> *racing session: *566477c0-6ebc-11e5-9493-9131aba66d63 >>> >>> *activity* >>> >>> | >>> *timestamp* | *source*| *source_elapsed* >>> >>> -----

Re: Cassandra query degradation with high frequency updated tables.

2015-10-09 Thread Nazario Parsacala
> >Execute CQL3 query |

Re: Cassandra query degradation with high frequency updated tables.

2015-10-09 Thread Jonathan Haddad
| >> *timestamp* | *source*| *source_elapsed* >> >> ------++---+ >> >> >>

Re: Cassandra query degradation with high frequency updated tables.

2015-10-09 Thread Tyler Hobbs
- > > > *Execute CQL3 query* | *2015-10-09 > 15:31:28.70* | *172.31.17.129* | *0* > *Parsing select * from processinfometric_profile where > profilecontext='GENERIC' and id=‘1&#x

Re: Cassandra query degradation with high frequency updated tables.

2015-10-09 Thread Nazario Parsacala
--++---+ Execute CQL3 query | 2015-10-09 15:31:28.70 | 172.31.17.129

Re: Cassandra query degradation with high frequency updated tables.

2015-10-09 Thread Nazario Parsacala
ing schema >> to hold the profile. >> >> CREATE TABLE myprofile ( >> id text, >> month text, >> day text, >> hour text, >> subthings text, >> lastvalue double, >> count int, >> stddev double, >>

Re: Cassandra query degradation with high frequency updated tables.

2015-10-09 Thread Tyler Hobbs
ndra.yaml to avoid it. If you still see performance problems after that, can you try tracing the query with cqlsh? On Fri, Oct 9, 2015 at 12:01 PM, Nazario Parsacala wrote: > So I upgraded to 2.2.2 and change the compaction strategy from > DateTieredCompactionStrategy > to LeveledCompa

Re: Cassandra query degradation with high frequency updated tables.

2015-10-09 Thread Nazario Parsacala
pecific thing and subthing. > > A profile can be defined as monthly, daily, hourly. So in case of monthly the > month will be set to the current month (i.e. ‘Oct’) and the day and hour will > be set to empty ‘’ string. > > > The problem that we have observed is that over

Re: Cassandra query degradation with high frequency updated tables.

2015-10-09 Thread Carlos Alonso
cs that can use in the >> context of the ‘thing’ or in the context of specific thing and subthing. >> >> A profile can be defined as monthly, daily, hourly. So in case of monthly >> the month will be set to the current month (i.e. ‘Oct’) and the day and >> hour will be set

Re: Cassandra query degradation with high frequency updated tables.

2015-10-08 Thread Tyler Hobbs
be defined as monthly, daily, hourly. So in case of monthly > the month will be set to the current month (i.e. ‘Oct’) and the day and > hour will be set to empty ‘’ string. > > > The problem that we have observed is that over time (actually in just a > matter of hours) we will see

Cassandra query degradation with high frequency updated tables.

2015-10-08 Thread Nazario Parsacala
is that over time (actually in just a matter of hours) we will see a huge degradation of query response for the monthly profile. At the start it will be respinding in 10-100 ms and after a couple of hours it will go to 2000-3000 ms . If you leave it for a couple of days you will start

RE: Cassandra Query using UDF

2015-09-16 Thread Leleu Eric
septembre 2015 12:35 À : user@cassandra.apache.org Objet : Cassandra Query using UDF Hello I am wondering is it possible to execute a search using a Cassandra UDF. Similarly to the way I can execute find queries in mongo using custom javascript. Thanks Michael. Ce message et les pièces jo

Cassandra Query using UDF

2015-09-16 Thread Michael Scriney
Hello I am wondering is it possible to execute a search using a Cassandra UDF. Similarly to the way I can execute find queries in mongo using custom javascript. Thanks Michael.

cassandra-stress where query with greater than operator

2015-09-14 Thread folex
Hi All. I'm trying to set up cassandra load testing and came up with the next YAML config (https://gist.github.com/folex/d297cc8208a2e54a36d7) : keyspace: stress keyspace_definition: | CREATE KEYSPACE stress WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 3}; table: messa

Re: "SELECT *..." query times out on a particular table

2015-08-03 Thread Bryan Holladay
Check Cassandra logs for tombstone threshold error On Aug 3, 2015 7:32 PM, "Robert Coli" wrote: > On Mon, Aug 3, 2015 at 2:48 PM, Sid Tantia > wrote: > >> Any select all or select count query on a particular table is timing out >> with "Cassandra::Erro

Re: "SELECT *..." query times out on a particular table

2015-08-03 Thread Robert Coli
On Mon, Aug 3, 2015 at 2:48 PM, Sid Tantia wrote: > Any select all or select count query on a particular table is timing out > with "Cassandra::Errors::TimeoutError: Timed out" > > A “SELECT * FROM WHERE = ‘’ > on the table works, but a “SELECT * FROM LIMIT 1; d

Re: "SELECT *..." query times out on a particular table

2015-08-03 Thread Sid Tantia
gt; >> Any select all or select count query on a particular table is timing out >> with "Cassandra::Errors::TimeoutError: Timed out" >> >> A “SELECT * FROM WHERE = ‘’ >> on the table works, but a “SELECT * FROM LIMIT 1; does not work. >> All other tables and queries work. >> >> Any ideas as to why this might be happening? >> >>

"SELECT *..." query times out on a particular table

2015-08-03 Thread Sid Tantia
Hello, Any select all or select count query on a particular table is timing out with "Cassandra::Errors::TimeoutError: Timed out" A “SELECT * FROM WHERE = ‘’ on the table works, but a “SELECT * FROM LIMIT 1; does not work. All other tables and queries work.  Any ideas as t

RE: query statement return empty

2015-07-30 Thread 鄢来琼
@cassandra.apache.org 主题: Re: query statement return empty What consistency level are you using with your query? What replication factor are you using on your keyspace? Have you run repair? The most likely explanation is that you wrote with low consistency (ANY, ONE, etc), and that one or more

答复: query statement return empty

2015-07-30 Thread 鄢来琼
Using java/C# rewrite the test case, the results are consistency. Is there any problem for the python driver? 发件人: 鄢来琼 发送时间: Friday, July 31, 2015 9:03 AM 收件人: 'user@cassandra.apache.org' 主题: query statement return empty Hi ALL The result of “select * from t_test where id = 1” statem

Re: query statement return empty

2015-07-30 Thread Jeff Jirsa
What consistency level are you using with your query? What replication factor are you using on your keyspace? Have you run repair? The most likely explanation is that you wrote with low consistency (ANY, ONE, etc), and that one or more replicas does not have the cell. You’re then reading with

query statement return empty

2015-07-30 Thread 鄢来琼
Hi ALL The result of “select * from t_test where id = 1” statement is not consistency, Could you tell me why? test case, I = 0; While I < 5: result = cassandra_session.execute(“select ratio from t_test where id = 1”) print result testing result: [Row(ratio=Decimal('0.000'))] [] [Row(ratio=De

cassandra-stress: Not enough replica available for query at consistency LOCAL_ONE (1 required but only 0 alive)

2015-07-28 Thread Tzach Livyatan
lable for query at consistency LOCAL_ONE (1 required but only 0 alive) at org.apache.cassandra.stress.Operation.error(Operation.java:216) at org.apache.cassandra.stress.Operation.timeWithRetry(Operation.java:188) at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.ja

Re: howto do sql query like in a relational database

2015-07-22 Thread Carlos Rolo
-Original Message- > From: anton [mailto:anto...@gmx.de] > Sent: Tuesday, July 21, 2015 7:54 PM > To: user@cassandra.apache.org > Subject: howto do sql query like in a relational database > > Hi, > > I have a simple (perhaps stupid) question. > > If I want to *sear

RE: howto do sql query like in a relational database

2015-07-21 Thread Peer, Oded
:54 PM To: user@cassandra.apache.org Subject: howto do sql query like in a relational database Hi, I have a simple (perhaps stupid) question. If I want to *search* data in cassandra, how could find in a text field all records which start with 'Cas' ( in sql I do select * from table wh

howto do sql query like in a relational database

2015-07-21 Thread anton
Hi, I have a simple (perhaps stupid) question. If I want to *search* data in cassandra, how could find in a text field all records which start with 'Cas' ( in sql I do select * from table where field like 'Cas%') I know that this is not directly possible. - But how is it possible? - Do nobo

How to export query results (milions rows) as CSV fomat?

2015-07-07 Thread shahab
Hi, Is there any way to export the results of a query (e.g. select * from tbl1 where id ="aa" and loc ="bb") into a file as CSV format? I tried to use "COPY" command with "cqlsh", but the command does not work when you have "where " condition

Re: Atomic behavior and efficiency of a DELETE query with an IN clause

2015-06-12 Thread Jonathan Haddad
t; On Wednesday, June 10, 2015 11:27 AM, Sotirios Delimanolis < > sotodel...@yahoo.com> wrote: > > > Will this "eventually they will all go through" behavior apply to the IN? > How is this query written to the commitlog? > > Do you mean prepare a query like >

Re: Atomic behavior and efficiency of a DELETE query with an IN clause

2015-06-12 Thread Sotirios Delimanolis
Similarly, should we send multiple SELECT requests or a single one with a SELECT...IN ? On Wednesday, June 10, 2015 11:27 AM, Sotirios Delimanolis wrote: Will this "eventually they will all go through" behavior apply to the IN? How is this query written to the commitl

Re: Support for ad-hoc query

2015-06-12 Thread Jack Krupansky
No dispute about that. But the main design requirement Cassandra strives to meet is to be a blazing fast transactional database - here's the key, give me the data, and here's the key, write this data. Any additional query requirements are a distant second at best. A big part of that tra

RE: Support for ad-hoc query

2015-06-12 Thread SEAN_R_DURITY
Hadoop for querying by hive. Example: “We found a few records with incorrect data. How many more records like that are out there?” Sean Durity From: Peter Lin [mailto:wool...@gmail.com] Sent: Wednesday, June 10, 2015 8:17 AM To: user@cassandra.apache.org Subject: Re: Support for ad-hoc query

Re: Atomic behavior and efficiency of a DELETE query with an IN clause

2015-06-10 Thread Sotirios Delimanolis
Will this "eventually they will all go through" behavior apply to the IN? How is this query written to the commitlog? Do you mean prepare a query likeDELETE FROM MastersOfTheUniverse WHERE mastersID = ?;and execute it asynchronously 3000 times or add 3000 of these DELETE (bound

Re: Atomic behavior and efficiency of a DELETE query with an IN clause

2015-06-10 Thread Jonathan Haddad
gt; > For example, given 3000 keys for rows I want to delete, should I issue a > single DELETE query and provide all the keys in the IN argument or should > I add 3000 DELETE queries to a BATCH statement? > > Thank you, > Sotirios > > >

Atomic behavior and efficiency of a DELETE query with an IN clause

2015-06-10 Thread Sotirios Delimanolis
h where if one fails, all fail? If that is the case, is there any reason to use a BATCH statement with multiple single DELETE statement or should we always prefer a DELETE with an IN clause?  For example, given 3000 keys for rows I want to delete, should I issue a single DELETE query and provide al

Re: Support for ad-hoc query

2015-06-10 Thread Peter Lin
o run. Allowing arbitrary ad-hoc queries is a known anti-pattern for cassandra. If the system needs to query multiple cf to derive/calculate some result, using Cassandra alone isn't going to do it. You'll need some other system to give you better query capabilities like Hive. If you need dat

Re: Support for ad-hoc query

2015-06-10 Thread Jack Krupansky
cluster? 3. How complex do you expect them to be - how many clauses and operators? 4. What is their net cardinality - are they selecting just a few rows or many rows? 5. Do they have individual query clauses that select many rows even if the net combination of all select clauses is not so many rows? The

Re: Support for ad-hoc query

2015-06-09 Thread Srinivasa T N
Thanks guys for the inputs. By ad-hoc queries I mean that I don't know the queries during cf design time. The data may be from single cf or multiple cf. (This feature maybe required if I want to do analysis on the data stored in cassandra, do you have any better ideas)? Regards, Seenu. On Tue,

Re: Support for ad-hoc query

2015-06-09 Thread Peter Lin
what do you mean by ad-hoc queries? Do you mean simple queries against a single column family aka table? Or do you mean MDX style queries that looks at multiple tables? if it's MDX style queries, many people extract data from Cassandra into a data warehouse that support multi-dimensional cubes.

Re: Support for ad-hoc query

2015-06-09 Thread Brian O'Neill
use of, or taking any action in reliance upon, this information by persons or entities other than the intended recipient is strictly prohibited. From: Srinivasa T N Reply-To: Date: Tuesday, June 9, 2015 at 2:38 AM To: "user@cassandra.apache.org" Subject: Support for ad-hoc que

Support for ad-hoc query

2015-06-08 Thread Srinivasa T N
Hi All, I have an web application running with my backend data stored in cassandra. Now I want to do some analysis on the data stored which requires some ad-hoc queries fired on cassandra. How can I do the same? Regards, Seenu.

Re: Query returning tombstones

2015-05-03 Thread horschi
Hi Jens, thanks a lot for the link! Your ticket seems very similar to my request. kind regards, Christian On Sat, May 2, 2015 at 2:25 PM, Jens Rantil wrote: > Hi Christian, > > I just know Sylvain explicitly stated he wasn't a fan of exposing > tombstones here: > https://issues.apache.org/jir

Re: Query returning tombstones

2015-05-02 Thread Jens Rantil
Hi Christian, I just know Sylvain explicitly stated he wasn't a fan of exposing tombstones here: https://issues.apache.org/jira/browse/CASSANDRA-8574?focusedCommentId=14292063&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14292063 Cheers, Jens On Wed, Apr 29, 2015

Re: query contains IN on the partition key and an ORDER BY

2015-05-02 Thread Robert Wille
2 when running a query (contains IN on the partition key and an ORDER BY ) using datastax driver for Java. However, I am able to run this query alright in cqlsh. cqlsh:> show version; [cqlsh 5.0.1 | Cassandra 2.1.2 | CQL spec 3.2.0 | Native protocol v3] cqlsh:gps> select * from log wh

query contains IN on the partition key and an ORDER BY

2015-05-02 Thread Abhishek Singh Bailoo
Hi I have run into the following issue https://issues.apache.org/jira/browse/CASSANDRA-6722 when running a query (contains IN on the partition key and an ORDER BY ) using datastax driver for Java. However, I am able to run this query alright in cqlsh. cqlsh:> show version; [cqlsh 5.

Query returning tombstones

2015-04-29 Thread horschi
Hi, did anybody ever raise a feature request for selecting tombstones in CQL/thrift? It would be nice if I could use CQLSH to see where my tombstones are coming from. This would much more convenient than using sstable2json. Maybe someone can point me to an existing jira-ticket, but I also apprec

Re: Delete query range limitation

2015-04-15 Thread Jim Witschey
There's a ticket for range deletions in CQL here: https://issues.apache.org/jira/plugins/servlet/mobile#issue/CASSANDRA-6237 On Apr 15, 2015 6:27 PM, "Dan Kinder" wrote: > > I understand that range deletes are currently not supported ( http://stackoverflow.com/questions/19390335/cassandra-cql-de

Delete query range limitation

2015-04-15 Thread Dan Kinder
I understand that range deletes are currently not supported ( http://stackoverflow.com/questions/19390335/cassandra-cql-delete-using-a-less-than-operator-on-a-secondary-key ) Since Cassandra now does have range tombstones is there a reason why it can't be allowed? Is there a ticket for supporting

Re: log all the query statement

2015-04-06 Thread Anishek Agarwal
"maxBackupIndex" or "maxFileSize" to make sure u keep enough log files around. anishek On Thu, Apr 2, 2015 at 11:53 AM, 鄢来琼 wrote: > Hi all, > > > > Cassandra 2.1.2 is used in my project, but some node is down after > executing query some statements. > > Co

log all the query statement

2015-04-01 Thread 鄢来琼
Hi all, Cassandra 2.1.2 is used in my project, but some node is down after executing query some statements. Could I configure the Cassandra to log all the executed statement? Hope the log file can be used to identify the problem. Thanks. Peter

Re: 2d or multi dimension range query in cassandra CQL

2015-03-23 Thread Andres de la Peña
person_idx ON PERSON(stargate) USING some >>> 'com.tuplejump.stargate.RowIndex' WITH options = >>> { >>> 'sg_options':'{ >>> "fields":{ >>> "eyeColor":{}, >>>

<    1   2   3   4   5   6   7   8   9   10   >