Re: Frozen type sin cassandra.

2017-03-07 Thread Tyler Hobbs
. > Also how to create a solr index on such columns? > I have no idea, sorry. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Frozen type support

2017-01-24 Thread Tyler Hobbs
gt; > > Thx. > Ahmed > > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Import failure for use python cassandra-driver

2016-10-26 Thread Tyler Hobbs
NoHostAvailable, > >> UserTypeDoesNotExist > >> ImportError: > >> dlopen(/Library/Python/2.7/site-packages/cassandra/cluster.so, 2): > Symbol > >> not found: _PyException_Check > >> Referenced from: /Library/Python/2.7/site- > packages/cassandra/cluster.so > >> Expected in: flat namespace > >> in /Library/Python/2.7/site-packages/cassandra/cluster.so > >> > >> Thanks, > >> Jason > >> > >> > > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Cannot set TTL in COPY command

2016-10-26 Thread Tyler Hobbs
On Wed, Oct 26, 2016 at 10:07 AM, techpyaasa . wrote: > Can some one please tell me how to set TTL using COPY command? It looks like you're using Cassandra 2.0. I don't think COPY supports the TTL option until at least 2.1. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: CASSANDRA-5376: CQL IN clause on last key not working when schema includes set,list or map

2016-09-15 Thread Tyler Hobbs
> If it was fixed properly to support retrieving collections with IN >> clause, then is it a bug in 3.7 release that i get the same message? >> >> Could you please explain, if it not fixed as intended, if there are plans >> to support this in future? >> >> Thanks & Regards, >> Samba >> > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: race condition for quorum consistency

2016-09-14 Thread Tyler Hobbs
gle client's perspective, you get monotonic reads. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: ServerError: An unexpected error occurred server side; in cassandra java driver

2016-09-01 Thread Tyler Hobbs
have faced a similar issue could provide his/her > views. > > Thanks > Siddharth > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: How to create a TupleType/TupleValue in a UDF

2016-08-19 Thread Tyler Hobbs
: http://cassandra.apache.org/doc/latest/cql/functions.html#user-defined-functions -- Tyler Hobbs DataStax <http://datastax.com/>

Re: How to create a TupleType/TupleValue in a UDF

2016-08-18 Thread Tyler Hobbs
ed Function failure] > message="execution of ’testdb.min_max_by_timestamps_udf[map frozen>>, blob]' failed: > java.security.AccessControlException: > access denied ("java.io.FilePermission" "/etc/cassandra/logback.xml" > "read”)" > > Or CodecNotFoundExcept

Re: migrating from 2.1.2 to 3.0.8 log errors

2016-08-10 Thread Tyler Hobbs
readFactory.java:137) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101] > > we have installed java-8_101 > > anya idea what woud be the problem? > > thanks > > Adil > does anyone > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: (C)* stable version after 3.5

2016-07-13 Thread Tyler Hobbs
terms of how well the upgrade is supported. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: C* 2.2.7 ?

2016-06-29 Thread Tyler Hobbs
ontain proprietary material, confidential > information and/or be subject to legal privilege. It should not be > copied, disclosed to, retained or used by any other party. If you are not > an intended recipient then please promptly delete this e-mail and any > attachment and all copies and inform the sender. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Read operation can read uncommitted data?

2016-06-28 Thread Tyler Hobbs
e fails by ReadTimeoutException caused by failure of > node C > > Thanks, > Yuji Ito > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Changing a cluster name

2016-06-28 Thread Tyler Hobbs
or are there changes > preventing this from working anymore? > > I have attempted this several times and it did actually work the first > time, but when I moved around to the other nodes it no longer worked. > > Thanks, > Paul Fife > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Adding column to materialized view

2016-06-28 Thread Tyler Hobbs
eded to add a column to a materialized view, > but ALTER MATERIALIZED VIEW doesn't seem to allow that. So we ended up > dropping the view and recreating it. Is that expected or did I miss > something in the docs? > > -J > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Token Ring Question

2016-06-24 Thread Tyler Hobbs
r some reason, token-aware routing is just an optimization. Nothing will break if a query is sent to a node that's not a replica. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Installing Cassandra from Tarball

2016-06-14 Thread Tyler Hobbs
swap in order to avoid this message, using swap space > can have serious performance implications. Make sure you disable fstab > entry as well for swap partition. > It looks like swap is actually disabled, but the nofile and nproc limits are too low. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: select query on entire primary key returning more than one row in result

2016-06-14 Thread Tyler Hobbs
069 *EXT*: 12369 > Plot # 362, ASF Centre - Tower A, Udyog Vihar, > Phase -4, Sector 18, Gurgaon, Haryana 122016, INDIA > > On Mon, Jun 13, 2016 at 11:11 PM, Siddharth Verma < > verma.siddha...@snapdeal.com> wrote: > >> No, all rows were not the same. >> Querying only on the partition key gives 20 rows. >> In the erroneous result, while querying on partition key and clustering >> key, we got 16 of those 20 rows. >> >> And for "*tombstone_threshold"* there isn't any entry at column family >> level. >> >> Thanks, >> Siddharth Verma >> >> >> > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Tick Tock version numbers

2016-06-14 Thread Tyler Hobbs
on what I have gather seems like it is matter of: > bring node down > install new version > bring up > run nodetool upgradesstables -a > For upgrades within the 3.x line, you don't need to run upgradesstables. Other than that, this is correct. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Lightweight Transactions during datacenter outage

2016-06-07 Thread Tyler Hobbs
ghtweight transactions working > even during a DC outage/split would be nice. > > Thanks in advance for any help/hints. > > Best regards, Jero > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Token Ring Question

2016-06-03 Thread Tyler Hobbs
e code check for such conditions and instead put > it on some node in DC1 ? What is the true meaning of “primary” token range > in such scenarios ? > > > > Is this how things works roughly speaking or am I missing something ? > > > > Thanks ! > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Blob or columns

2016-06-03 Thread Tyler Hobbs
urces for serialization and deserialization. Since you don't need to update anything in the blob individually, I recommend going with that. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Get clustering column in Custom cassandra trigger

2016-05-26 Thread Tyler Hobbs
, I couldn't understand. > > I am already using > UnfilteredRowIterator unfilteredRowIterator > =partition.unfilteredIterator(); > > while(unfilteredRowIterator.hasNext()){ > next.append(unfilteredRowIterator.next().toString()+"\001"); > } > > Is there anoth

Re: Setting bloom_filter_fp_chance < 0.01

2016-05-26 Thread Tyler Hobbs
//issues.apache.org/jira/browse/CASSANDRA -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Internal Handling of Map Updates

2016-05-25 Thread Tyler Hobbs
richt Wuppertal > Vorstand: Michael Hochgürtel . Mirko Novakovic . Rainer Vehns > Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Klaus Jäger . Jürgen Schütz > > Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche > und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige > Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie > bitte sofort den Absender und löschen Sie diese E-Mail und evtl. > beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen > evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist > nicht gestattet > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Low cardinality secondary index behaviour

2016-05-12 Thread Tyler Hobbs
u need to run this query very frequently, that may add too much load to your cluster, and some sort of inverted table approach may be more appropriate. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Cassandra 3.0.6 Release?

2016-05-10 Thread Tyler Hobbs
up to sync it with the 3.6 release. There were a couple of bugs in the first 3.6-tentative tag that forced us to re-roll and restart test runs. The release vote for 3.0.6 and 3.6 should start within the next couple of days, and takes 72 hours to complete. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Discrepancy while paging through table, and static column updated inbetween

2016-04-19 Thread Tyler Hobbs
entry for that partition key was ignored, is an assumption > from our end. > We can't understand why some entries were not printed in the table scan. > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Proper use of COUNT

2016-04-19 Thread Tyler Hobbs
rnatives are: - counters - a static count that's periodically refreshed by a batch/background process - LWT increments on an int column - an external datastore like redis Obviously, each of these has a different set of tradeoffs. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Proper use of COUNT

2016-04-19 Thread Tyler Hobbs
ited as well as time. > Deduping (i.e. normal conflict resolution) happens per-page, so in the worst case the memory requirements for the coordinator are RF * page size. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Compaction Error When upgrading from 2.1.9 to 3.0.2

2016-04-14 Thread Tyler Hobbs
> > > Do you know what would cause this error? Is it something to do with > tombstoned or deleted rows? > > > I'm not sure, I haven't looked into it too deeply yet. From the stacktrace it looks related to reading the static columns of a row. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Leak Detected while bootstrap

2016-04-13 Thread Tyler Hobbs
edCloseable$1@203187780:[[OffHeapBitSet]] > was not released before the reference was garbage collected* > > > > Thanks ! > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Compaction Error When upgrading from 2.1.9 to 3.0.2

2016-04-13 Thread Tyler Hobbs
Adapter.call(Executors.java:511) > > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > > at java.lang.Thread.run(Thread.java:745) > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Adding Options to Create Statements...

2016-04-01 Thread Tyler Hobbs
t to have to return the Create.Options object from this method >> (as I may need to add other columns). Is there a way to have the options >> "decorate" the Create directly without having to return the Create.Options? >> >> -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Thrift composite partition key to cql migration

2016-03-31 Thread Tyler Hobbs
Also, can you paste the results of the relevant portions of "SELECT * FROM system.schema_columns" and "SELECT * FROM system.schema_columnfamilies"? On Thu, Mar 31, 2016 at 2:35 PM, Tyler Hobbs wrote: > In the Thrift schema, is the key_validation_class actually set to &

Re: Thrift composite partition key to cql migration

2016-03-31 Thread Tyler Hobbs
ext, > key2 text, > column1 text, > column2 text, > value blob, > PRIMARY KEY ((key1, key2), column1, column2) > ) > > Cheers, > Jan > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Inconsistent query results and node state

2016-03-31 Thread Tyler Hobbs
stamp doesn't fit in the normal ordering. > > Thoughts on how to proceed? > Please open a ticket at https://issues.apache.org/jira/browse/CASSANDRA and include your schema and queries. If possible, it would also be extremely helpful if you can upload the sstables for that table.

Re: Inconsistent query results and node state

2016-03-30 Thread Tyler Hobbs
8.0_74] >> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_74] >> >> The tracing files are attached and seem to show that in the failed case, >> content is skipped because of tombstones if we understand it correctly. >> This could be an inconsistency problem on 192.168.10.9 Unfortunately, >> attempts to compact on 192.168.10.9 only give the following error without >> any stack trace detail and are not fixed with repair. >> >> root@cutthroat:/usr/local/bin/analyzer/bin# nodetool compact >> error: null >> -- StackTrace -- >> java.lang.ArrayIndexOutOfBoundsException >> >> Any suggestions on how to fix or what to search for would be much >> appreciated. >> >> Thanks, >> >> Jason >> >> >> >> > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Drop and Add column with different datatype in Cassandra

2016-03-29 Thread Tyler Hobbs
ion* column with the same name. Other types of columns are fine. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Python to type field

2016-03-19 Thread Tyler Hobbs
writing. where I prepare and then bind, I get this error while executing > > TypeError: Received an argument of invalid type for column "evetag". > Expected: VarcharType))'>, Got: ; (Received a string for a type that > expects a sequence) > > I tried casting the variable in python to list, tuple, but same error. > > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Understanding SELECT * paging/ordering

2016-03-18 Thread Tyler Hobbs
en range and perform the standard conflict resolution. [1] In reality, based on estimates of how many token ranges it will need to query in order to meet the page size, it will query multiple token ranges in parallel. See CASSANDRA-1337 for details. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Automatically connect to any up node via cqlsh

2016-03-09 Thread Tyler Hobbs
the UP node as arguments to cqlsh, but I am looking at automatic > detection. > No, right now cqlsh is designed to connect to only a single node. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Isolation for atomic batch on the same partition key

2016-03-01 Thread Tyler Hobbs
i.e. "IF condition_1") in batches that span multiple partitions keys. If you did not include the condition, then you would get per-partition isolation, as you describe. > > > 3. I assume CL SERIAL or LOCAL_SERIAL on reads will try applying the above > logged batch if it is committed but not applied. Right? > Correct. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: IF NOT EXISTS with multiple static columns confusion

2016-03-01 Thread Tyler Hobbs
s SET foo = 1 WHERE > id=99c3-b01a-11e5-b170-0242ac110002 IF foo=null; // fails, even though > foo=null > TRUNCATE test; > INSERT INTO cmpayments.report_payments (id, bar) VALUES > (99c3-b01a-11e5-b170-0242ac110002, 1); // succeeds > INSERT INTO cmpayments.report_payments (i

Re: Commit log size vs memtable total size

2016-03-01 Thread Tyler Hobbs
ace for commitlog segments. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: copy and rename sstable files as keyspace migration approach

2016-02-23 Thread Tyler Hobbs
.db files and they'll be rebuilt on startup. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: High Bloom filter false ratio

2016-02-18 Thread Tyler Hobbs
ng the cluster for a long time now but have > added significant traffic from Jan this year, which would not lead to > writes in the db but would lead to high reads to see if are any values. > > Are there any settings that can be changed to allow better ratio. > > Thanks > Anishek > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: „Using Timestamp“ Feature

2016-02-18 Thread Tyler Hobbs
27;). Is there a good reason for this, or is it > a bug? > The "USING TIMESTAMP" goes in a different place in update statements. It should be something like: UPDATE mytable USING TIMESTAMP ? SET col = ? WHERE key = ? -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Duplicated key with an IN statement

2016-02-04 Thread Tyler Hobbs
On Thu, Feb 4, 2016 at 9:57 AM, Jack Krupansky wrote: > there's a bug in CHANGES.TXT for this issue. It says: "Duplicate rows > returned when in clause has repeated values (CASSANDRA-6707)", but the > issue number is really 6706. > Thanks, I've fixed this.

Re: Cqlsh hangs & closes automatically

2016-02-02 Thread Tyler Hobbs
query. Cassandra-cli does the job. Any solution? > > > > Thanks > Anuj > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Cassandra 3.1.1 with respect to HeapSpace

2016-01-14 Thread Tyler Hobbs
.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:677) > [apache-cassandra-3.1.1.jar:3.1.1] > > I can no longer start my nodes. > > How can I restart my cluster? > Is this problem known? > Is there a better Cassandra 3 version which would behave better with > respect to this problem? > Would there be a better memory configuration to select for my nodes? > Currently I use MAX_HEAP_SIZE="6G" HEAP_NEWSIZE=“496M” for a 16M RAM node. > > > Thank you very much for your advice. > > Kind regards > > Jean > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Sorting & pagination in apache cassandra 2.1

2016-01-07 Thread Tyler Hobbs
7;re using 3.0+) that uses a different clustering order. Cassandra purposefully only supports simple and efficient queries that can be handled quickly (with a few exceptions), and arbitrary ordering is not part of that, especially if you consider complications like paging. -- Tyler Hobbs

Re: Cassandra 3.1 - Aggregation query failure

2015-12-29 Thread Tyler Hobbs
r and reconcile over QUORUM replicas, the query may timeout very > quickly. > Yes, that's possible. Timeouts for these queries should be adjusted accordingly. It's worth noting that the read_request_timeout_in_ms setting applies per-page, so coordinator-level timeouts shouldn't be severely affected by this. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Cassandra 3.1 - Aggregation query failure

2015-12-18 Thread Tyler Hobbs
t most one page worth of data will be held in memory at a time. However, if your aggregation function retains a large amount of data, this may contribute to heap pressure. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: [RELEASE] Apache Cassandra 3.1 released

2015-12-11 Thread Tyler Hobbs
tell to run 3.0.1? Why is > there a different release scheme specifically for 3.0.x instead of putting > those fixes to 3.1? > We don't know how well the tick-tock release scheme will stabilize yet. As a safety net, we're doing our traditional release scheme for 3.0.x. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: [RELEASE] Apache Cassandra 3.1 released

2015-12-09 Thread Tyler Hobbs
cassandra.apache.org/ >> >> Downloads of source and binary distributions are listed in our download >> section: >> >> http://cassandra.apache.org/download/ >> >> This version is a bug fix release[1] on the 3.x series. As always, please >> pay >&

Re: Cqlsh copy to and copy from

2015-11-19 Thread Tyler Hobbs
> > Do you plan to fix that, e.g. fill with default values or exclude them? > > Thanks. > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Cassandra 3.0.0 connection problem

2015-11-19 Thread Tyler Hobbs
ngrading major versions isn't supported, which is why we recommend that you take a snapshot before upgrading. Your only real option for downgrading without data loss is to dump your data (using cqlsh's COPY TO or something similar) and then re-load it on 2.2 (using cqlsh's COPY FROM or something similar). -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Timeout with static column

2015-11-12 Thread Tyler Hobbs
bounded > by sequence_nr (and are pretty fast), so there are certainly many > tombstones (even though the trace above doesn't tell that). > > What's strange is that it seems the query scans the whole set of records, > even though it should return only the static column (whose by definition > has only one value indepedently of the number of records), so it should be > pretty fast, isn't it? > > Note that using `SELECT DISTINCT` doesn't seem to change anything > regarding speed (I understand that it is the recommended way of doing this > kind of queries). > > Anyone can explain me how this problem can be solved, or what could be its > root cause? > > Thanks for any answers, > -- > Brice Figureau > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Multi-column slice restrictions not respected by the returned result

2015-11-11 Thread Tyler Hobbs
> CQL, it only implies full tuple comparison. That explains why my condition > (a, b) > (2, 10) was matching row (2, 11). > > On Wed, Nov 11, 2015 at 2:31 PM, Tyler Hobbs wrote: > >> This is a known problem with multi-column slices and mixed ASC/DESC >> clustering

Re: Multi-column slice restrictions not respected by the returned result

2015-11-11 Thread Tyler Hobbs
('x', 3, 11, 92) ; > insert INTO dur (s, nd, ts, tid) values ('x', 3, 12, 91) ; > > select * from dur where s='x' and (nd,ts) > (2, 11); > > s | nd | ts | tid > ---+++- > x | 2 | 10 | 94 > x | 3 | 12 | 91 > x | 3 | 11 | 92 > x | 3 | 10 | 97 > (4 rows) > > The first row in the result does not satisfy the restriction (nd,ts) > > (2, 11). Am I doing something incorrectly? > > Thanks, > --Yuri > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: why cassanra max is 20000/s on a node ?

2015-11-05 Thread Tyler Hobbs
; 金融华东事业部 >>> >>> 东软集团股份有限公司 >>> 上海市闵行区紫月路1000号东软软件园 >>> Postcode:200241 >>> Tel:(86 21) 33578591 >>> Fax:(86 21) *23025565-111* >>> Mobile:13764970711 >>> Email:ha...@neusoft.com >>> Http://www.neusoft.com <http://www.neusoft.com/> >>> >>> >>> >>> >>> >>> >>> >>> --- >>> Confidentiality Notice: The information contained in this e-mail and any >>> accompanying attachment(s) >>> is intended only for the use of the intended recipient and may be >>> confidential and/or privileged of >>> Neusoft Corporation, its subsidiaries and/or its affiliates. If any >>> reader of this communication is >>> not the intended recipient, unauthorized use, forwarding, printing, >>> storing, disclosure or copying >>> is strictly prohibited, and may be unlawful.If you have received this >>> communication in error,please >>> immediately notify the sender by return e-mail, and delete the original >>> message and all copies from >>> your system. Thank you. >>> >>> --- >>> >> >> -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Error code=1000

2015-11-03 Thread Tyler Hobbs
; wrote: > >> Hi guys, >> >> Could you help me with this error? >> >> cassandra.Unavailable: code=1000 [Unavailable exception] message="Cannot >> achieve consistency level LOCAL_QUORUM" info={'required_replicas': 2, >> 'alive_re

Re: Error Code

2015-10-29 Thread Tyler Hobbs
7304797626cc69957eb6008695be1e/cassandra/connection.py#L573 >> >> Is your error message complete? >> >> On Thu, Oct 29, 2015 at 9:45 AM, Eduardo Alfaia > > wrote: >> >>> Hi Guys, >>> >>> Does anyone know what error code in cassandra is? >>> >>> Error decoding response from Cassandra. opcode: 0008; >>> >>> Thanks >>> >> >> >> > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Is there any configuration so that local program on C* node can connect using localhost and remote program using IP/name?

2015-10-20 Thread Tyler Hobbs
nection url and remote program's using IP/name in > connection url? Set rpc_address to 0.0.0.0 to bind all interfaces. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Cassandra query degradation with high frequency updated tables.

2015-10-09 Thread Tyler Hobbs
ache-cassandra-2.2.2.jar:2.2.2] > at > org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:85) > ~[apache-cassandra-2.2.2.jar:2.2.2] > at > org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:1537) > ~[apache-cassandra

Re: Cassandra query degradation with high frequency updated tables.

2015-10-09 Thread Tyler Hobbs
55) > ~[apache-cassandra-2.2.2.jar:2.2.2] > at > org.apache.cassandra.io.sstable.format.big.BigTableReader.getPosition(BigTableReader.java:244) > ~[apache-cassandra-2.2.2.jar:2.2.2] > > > > > On Oct 9, 2015, at 9:26 AM, Carlos Alonso wrote: > > Yeah, I was about t

Re: Cassandra query degradation with high frequency updated tables.

2015-10-08 Thread Tyler Hobbs
> select * from myprofile where id=‘1’ and month=‘Oct’ and day=‘’ and hour=‘' > > This will have only about 500 rows or so. > > > I believe that this is cause by the fact there are multiple updates done > to this specific partition. So what do we think can be done to r

Re: CQL error when adding multiple conditional update statements in the same batch

2015-10-08 Thread Tyler Hobbs
7;Key1' IF >> version=10; >> UPDATE activities SET state='ALLOCATED',version=2 WHERE key='Key2' IF >> version=1; >> APPLY BATCH; >> >> gives the following error >> >> Bad Request: Duplicate and incompatible conditions for column

Re: How are writes handled while adding nodes to cluster?

2015-10-06 Thread Tyler Hobbs
n to the > joining node? > > In the former case I guess I have to make sure my max_hint_window_in_ms > is long enough for the node to become NORMAL or hints will get dropped > and I must do repair. Am I right? > > Thanks, > \EF > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Repair corrupt SSTable from power outage?

2015-10-02 Thread Tyler Hobbs
at java.util.concurrent.FutureTask.run(FutureTask.java:266) >> [na:1.8.0_60] >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >> [na:1.8.0_60] >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >> [na:1.8.0_60] >> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60] >> Caused by: java.io.EOFException: null >> at >> java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340) >> ~[na:1.8.0_60] >> at java.io.DataInputStream.readUTF(DataInputStream.java:589) >> ~[na:1.8.0_60] >> at java.io.DataInputStream.readUTF(DataInputStream.java:564) >> ~[na:1.8.0_60] >> at >> org.apache.cassandra.io.compress.CompressionMetadata.(CompressionMetadata.java:106) >> ~[apache-cassandra-2.1.9.jar:2.1.9] >> ... 14 common frames omitted >> >> >> Is there a fix for this? >> > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: JSON Order By

2015-10-02 Thread Tyler Hobbs
uleOrder when i select > Unfortunately, that's not possible. Cassandra can only order result rows by the clustering columns. The new JSON functionality doesn't change this, it just adds a new input/output format. You'll need to sort the results client-side. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Secondary index is causing high CPU load

2015-09-29 Thread Tyler Hobbs
ot too surprised to hear of this performance degradation. > > Yes, it is relatively likely to be the use of vnodes which is causing this > problem. You could verify by having one of your nodes use 64 vnodes instead > of the default 256... you will get less even distribution with current &g

Re: Trace evidence for LOCAL_QUORUM ending up in remote DC

2015-09-08 Thread Tyler Hobbs
Seeking to partition beginning in data file > | 10.55.156.67 | 10417 | SharedPool-Worker-3 > Key cache hit for sstable 389 > | 10.55.156.67 | 10586 | SharedPool-Worker-3 > > My qu

Re: who does generate timestamp during the write?

2015-09-08 Thread Tyler Hobbs
g a timuuid to the primary key, for example), but in some cases lightweight transactions may also be suitable. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Order By limitation or bug?

2015-09-04 Thread Tyler Hobbs
ease notify the sender immediately by return email and delete the > message. Unless expressly stated otherwise, the information in this email > should not be regarded as an offer to sell or as a solicitation of an offer > to buy any financial product or service, an official confirmation of any > transaction, or as an official statement of the entity sending this > message. Neither Macquarie Group Limited, nor any of its subsidiaries, > guarantee the integrity of any emails or attached files and are not > responsible for any changes made to them by any other person. > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: who does generate timestamp during the write?

2015-09-04 Thread Tyler Hobbs
t;>>> ibrahimsaba...@gmail.com> wrote: >>>>> >>>>>> Dear folks, >>>>>> >>>>>> When we hear about the notion of Last-Write-Wins in Cassandra >>>>>> according to timestamp, *who does generate this timestamp during the >>>>>> write, coordinator or each individual replica in which the write is going >>>>>> to be stored?* >>>>>> >>>>>> >>>>>> *Regards,* >>>>>> >>>>>> >>>>>> >>>>>> *Ibrahim* >>>>>> >>>>> >>>>> >>>> >>> >> > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: TTLs on tables with *only* primary keys?

2015-08-05 Thread Tyler Hobbs
n the second column .. (signature). > > And the value doesn’t seem to be TTLd. > > What’s the best way to proceed here? > > > -- > > Founder/CEO Spinn3r.com > Location: *San Francisco, CA* > blog: http://burtonator.wordpress.com > … or check out my Google+ profile > <https://plus.google.com/102718274791889610666/posts> > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Thrift to cql : mixed static and dynamic columns with secondary index

2015-07-16 Thread Tyler Hobbs
=''; > > Requesting : > > [default@DUNE_metadonnees] list REF_File; > Using default limit of 100 Using default cell limit of 100 > --- > RowKey: id1 > => (name=COM_1, value=, timestamp=1437034903045000) => (name=COM_2, > value=, timestamp=1437034911121000) => (name=folder, value=folder1, > timestamp=1437034833452000) => (name=name, value=file1, > timestamp=1437034851993000) => (name=size, value=1234, > timestamp=1437034871356000) > --- > RowKey: id2 > => (name=COM_1, value=, timestamp=1437035169011000) => (name=folder, > value=folder1, timestamp=143703506208) => (name=mime, value=image/jpeg, > timestamp=1437035145227000) => (name=name, value=file2, > timestamp=1437035073596000) > > Thanks for your help ! > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Read Consistency

2015-06-30 Thread Tyler Hobbs
ent). It's worth noting that if you get an Unavailable response, you are guaranteed that the data has not been written to any replicas, because the coordinator already knew that the replicas were down when it got the response. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Read Consistency

2015-06-30 Thread Tyler Hobbs
ired and all 3 replicas have different data > with different timestamps. > > Options: data with latest timestamp is returned OR something else??? > > Thanks > Anuj > > Sent from Yahoo Mail on Android > <https://overview.mail.yahoo.com/mobile/?.src=Android> > > > > > -- > Arun > > > > > > -- > Arun > Senior Hadoop/Cassandra Engineer > Cloudwick > > > 2014 Data Impact Award Winner (Cloudera) > > http://www.cloudera.com/content/cloudera/en/campaign/data-impact-awards.html > > > > > > -- > Arun > Senior Hadoop/Cassandra Engineer > Cloudwick > > > 2014 Data Impact Award Winner (Cloudera) > > http://www.cloudera.com/content/cloudera/en/campaign/data-impact-awards.html > > > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Inconsistent behavior during read

2015-06-25 Thread Tyler Hobbs
e, in old Thrift terms) don't do read repair. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: MarshalException after upgrading to 2.1.6

2015-06-11 Thread Tyler Hobbs
Timestamp(TimestampSerializer.java:111) > at org.apache.cassandra.db.marshal.UUIDType.fromString(UUIDType.java:184) > ... 12 more > Caused by: java.text.ParseException: Unable to parse the date: currencyCode > at > org.apache.commons.lang3.time.DateUtils.parseDateWithLeniency(DateUtils.java:336) > at > org.apache.commons.lang3.time.DateUtils.parseDateStrictly(DateUtils.java:286) > at > org.apache.cassandra.serializers.TimestampSerializer.dateStringToTimestamp(TimestampSerializer.java:107) > ... 13 more > Exception encountered during startup: unable to make version 1 UUID from > 'currencyCode' > > > > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Cassandra 2.2, 3.0, and beyond

2015-06-10 Thread Tyler Hobbs
rom normal tables any more. You can read a few details about the new storage format here: https://github.com/pcmanus/cassandra/blob/8099_engine_refactor/guide_8099.md#storage-format-on-disk-and-on-wire -- Tyler Hobbs DataStax <http://datastax.com/>

Re: TTL and gc_grace_period

2015-06-05 Thread Tyler Hobbs
On Fri, Jun 5, 2015 at 11:02 AM, Kévin LOVATO wrote: > Great, so is there any reason I wouldn't want to set gc_grace_seconds to 0 > on an "insert once/ttl only" column family, since it feels like the best > thing to do? Nope, setting gc_grace_seconds to 0 is just fine i

Re: TTL and gc_grace_period

2015-06-05 Thread Tyler Hobbs
ble to appear, and if so, would it be a problem, since they > would themselves be marked as "expired"? > You don't need to worry about expired data being revived because every node that has a copy of that data will have the same TTL. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Coordination of expired TTLs compared to tombstones

2015-05-29 Thread Tyler Hobbs
k up. Voila, the formerly down node has a > value that will replicate to the other nodes. Correct, that's why they can't be purged immediately. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: A few stupid questions...

2015-05-26 Thread Tyler Hobbs
commend testing it heavily with your use case for stability. The best way to find out if your performance is good enough is to benchmark it with your own usecase. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Leap sec

2015-05-15 Thread Tyler Hobbs
aorund other than upgrading kernel to 3.4+? > Are you upgrading clusters to Java 7 or higher on client and C* servers? > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Caching the PreparedStatement (Java driver)

2015-05-15 Thread Tyler Hobbs
e in latency). There are plans to persist prepared statements in a system table: https://issues.apache.org/jira/browse/CASSANDRA-8831 -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Clarification of property: storage_port

2015-05-15 Thread Tyler Hobbs
s, etc). > > And more importantly: It seems to me that storage_port MUST be configured > to be the same port for _all_ nodes in a cluster, is this correct? That's correct. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: CQL 3.x Update ...USING TIMESTAMP...

2015-04-21 Thread Tyler Hobbs
mpanies have used light > weight transactions in a multi-data center traffic. > I don't know who's doing that off the top of my head, but I imagine they're using LOCAL_SERIAL. -- Tyler Hobbs DataStax <http://datastax.com/>

Re: High latencies for simple queries

2015-03-31 Thread Tyler Hobbs
To clarify, that's in Cassandra 2.1+. In 2.0 and earlier, we used http://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/ for cqlsh. On Tue, Mar 31, 2015 at 10:40 AM, Tyler Hobbs wrote: > The python driver that we bundle with Cassandra for cqlsh is the normal > python dr

Re: High latencies for simple queries

2015-03-31 Thread Tyler Hobbs
increased by about 20%, but it still is an order of magnitude >> faster than Cassandra. >> >> >>> But I'm going to hazard a guess something else is going on with the >>> Cassandra connection as I'm able to get 0.5ms queries locally and that's >&

Re: High latencies for simple queries

2015-03-27 Thread Tyler Hobbs
ALUES(3, 'yay'); >> INSERT 0 1 >> Time: 1.108 ms >> >> I then fired up a local copy of Cassandra (2.0.12) >> >> cqlsh> CREATE KEYSPACE foo WITH replication = { 'class' : >> 'SimpleStrategy', 'replication_factor' : 1 }; >> cqlsh> USE foo; >> cqlsh:foo> CREATE TABLE foo(i int PRIMARY KEY, j text); >> cqlsh:foo> TRACING ON; >> Now tracing requests. >> cqlsh:foo> INSERT INTO foo (i, j) VALUES (1, 'yay'); >> >> > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: High latencies for simple queries

2015-03-27 Thread Tyler Hobbs
w that the > nature of Cassandra compared to Postgresql is different, but for some > scenarios this difference can matter. > > The question is: is it normal for Cassandra to have a minimum latency of 1 > millisecond? > > I'm using Cassandra 2.1.2, python-driver. > > > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: Not seeing keyspace in nodetool compactionhistory

2015-03-25 Thread Tyler Hobbs
27;m not sure if that's issue, since the size isn't growing. The size is >> about what i'd expect. >> >> On Thu, Mar 26, 2015 at 12:44 AM, Tyler Hobbs wrote: >> >>> What version of Cassandra are you using? Since it sounds like you >>> aren&#

Re: Not seeing keyspace in nodetool compactionhistory

2015-03-25 Thread Tyler Hobbs
t; Any reason why that is? > > I did fill up the data in those two tables within the span of about 4 > hours (I ran a script to migrate existing data from legacy rdbms dbs). > Could that have something to do with it? > > I'm using SizeTieredCompactionStrategy for all tables. > -- Tyler Hobbs DataStax <http://datastax.com/>

Re: error in bulk loading

2015-03-24 Thread Tyler Hobbs
round the field with double-quotes to handle this (or change the quote character with the QUOTE option for COPY). -- Tyler Hobbs DataStax <http://datastax.com/>

Re: CQL 3.x Update ...USING TIMESTAMP...

2015-03-24 Thread Tyler Hobbs
olve >>>>> *a*. You can see that we can't just use *b*'s clustering key to >>>>> resolve that with LIMIT 1; also this is for DSE Solr, which wouldn't be >>>>> able to query a by max b.foo anyway. So when we write to *b*, we >>>&g

  1   2   3   4   5   6   7   >