Object mapper. InvalidQueryException Key may not be empty

2016-09-12 Thread Alexandr Porunov
*Hello,* *I am using DataStax Java Driver and can not execute "save" command with the object mapper.* *I have next table:* CREATE TABLE media_upload.audio_info ( swift_id blob, size bigint, audio_id blob, last_succeed_segment bigint, PRIMARY KEY (swift_id) ); *Here is my table in Java

Re: How to define blob column in Java?

2016-09-11 Thread Alexandr Porunov
cluster.close(); > } > } > } > > There are a few pitfalls around using ByteBuffer with the driver that you > should be aware of (this example > <https://github.com/datastax/java-driver/blob/3.0/driver-examples/src/main/java/com/datastax/driver/examples/datatypes/B

How to define blob column in Java?

2016-09-10 Thread Alexandr Porunov
Hello, I am using @Table annotation to define tables in cassandra. How properly I need to define blob type in Java? With ByteBuffer, byte[], String? Sincerely, Alexandr

Re: Is a blob storage cost of cassandra is the same as bigint storage cost for long variables?

2016-09-08 Thread Alexandr Porunov
es you can use a blob as a partition key. I would use the bigint both > for validation and clarity. > > Best, > > Romain > > > Le Mercredi 7 septembre 2016 22h54, Alexandr Porunov < > alexandr.poru...@gmail.com> a écrit : > > > Hello, > > I need to stor

Overhead of data types in cassandra

2016-09-08 Thread Alexandr Porunov
Hello, Where can I find information about overhead of data types in cassandra? I am interested about blob, text, uuid, timeuuid data types. Does a blob type store a value with the length of the blob data? If yes then which type of the length it is using (int, bigint)? If I want to store 80 bits ho

Is a blob storage cost of cassandra is the same as bigint storage cost for long variables?

2016-09-07 Thread Alexandr Porunov
Hello, I need to store a "Long" Java variable. The question is: whether the storage cost is the same both for store hex representation of "Long" variable to the blob and for store "Long" variable to the bigint? Are there any performance pros or cons? Is it OK to use blob as primary key? Sincerely

How to configure cassandra in a multi cluster mode?

2016-08-25 Thread Alexandr Porunov
Hello, I am little bit confusing about cassandra's configuration. There are 2 parameters which I don't understand: listen_address seeds I have 4 identical nodes: 192.168.0.61 cassandra1 192.168.0.62 cassandra2 192.168.0.63 cassandra3 192.168.0.64 cassandra4 What shell I do to configure those 4 n