Re: Ignite Cassandra write error

2017-11-11 Thread Igor Rudyak
Check your Cassandra cluster. According to the exception, Cassandra driver didn't receive even 1 success write response: *Caused by: com.datastax.driver.core.exceptions.WriteFailureException: Cassandra failure during write query at consistency LOCAL_ONE (1 responses were required but only 0

Re: map types in Cassandra

2017-10-25 Thread Igor Rudyak
Ignite-Cassandra module doesn't support Cassandra complex types like map. Only BLOB and simple types which could be directly mapped to appropriate java types are supported. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Cassandra failing to ReadThrough using Cache.get(key) without preloading

2017-09-11 Thread Igor Rudyak
That's exactly what I am talking about. You have col10 after col4, because of this you are inserting nulls into col5 -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Cassandra failing to ReadThrough using Cache.get(key) without preloading

2017-09-11 Thread Igor Rudyak
Hm... Did you provide right source code for the classes and CQL statements? Here is the sample of INSERT statement you previously provided: *INSERT INTO test_response (col1,col2,col3,col4,col10,col5,col6,col7,col8,col9) VALUES

Re: Cassandra failing to ReadThrough using Cache.get(key) without preloading

2017-09-10 Thread Igor Rudyak
Hi Kenan, Either your *examples.cassandra_persistence_store.model.TestResponse* implementation is incorrect or you just accidentally inserting incorrect values into your Cassandra table. Here are the details: 1) *col5* field in *TestResponse* class has *long* type - which means that it's not

Re: apache ignite cassandra persistentStore for enum fields

2017-07-14 Thread Igor Rudyak
Hi, You can store enum field as a blob using Cassandra module for Ignite, but you should manually specify this in your persistence descriptor. Igor On Jul 14, 2017 12:25 AM, "babak" wrote: > hi, > > I have a model with enum field. I insert the model to the ignite

Re: Using Ignite as the SQL Engine for Cassandra

2017-07-11 Thread Igor Rudyak
Hi Roger, You can use Ignite-Cassandra integration module. In case you need to load specific portion of you Cassandra dataset into Ignite you can use *loadCache(...)* method of Ignite cache API, providing it appropriate CQL query. Igor On Tue, Jul 11, 2017 at 8:29 PM, Roger Fischer (CW)

Re: Ignite Cassandra Exception

2017-06-08 Thread Igor Rudyak
Could you please also provide the logs? Cassandra module was tested with *Cassandra Driver 3.0.0* and *Cassandra Database 3.3*. As far as you are using another version of driver and database, the exception you receiving could be slightly different from the exception we are trying to handle. That

Re: Ignite Cassandra Exception

2017-06-08 Thread Igor Rudyak
Cassandra module actually handles such type of exception here: https://github.com/apache/ignite/blob/master/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/session/CassandraSessionImpl.java#L164

Re: Ignite Cassandra Exception

2017-06-08 Thread Igor Rudyak
Could you please provide full stack trace? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Cassandra-Exception-tp13529p13540.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Ignite to Cassandra change from 1.9 to 2.0

2017-05-25 Thread Igor Rudyak
The second problem is that your *HistoryResultKey* doesn't have setters. It will not work without setters - your POJO classes should follow Java Beans convention. -- View this message in context:

Re: Ignite to Cassandra change from 1.9 to 2.0

2017-05-25 Thread Igor Rudyak
First of all - annotations *@QuerySqlField* and *@QueryTextField* are no longer supported for the methods. Because of this simplified persistence descriptor doesn't work as expected. -- View this message in context:

Re: Ignite to Cassandra change from 1.9 to 2.0

2017-05-23 Thread Igor Rudyak
Could you please provide full exception stack trace? What do you mean by upgraded to version 2.0? Is it Cassandra or Ignite version or something else? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-to-Cassandra-change-from-1-9-to-2-0-tp13099p13108.html

Re: what is the right way to run tests against Cassandra module?

2017-04-19 Thread Igor Rudyak
Hi Alexei, Tests for Cassandra module should be executed just using standard maven approach: mvn clean test Igor On Apr 19, 2017 6:40 AM, "Alexei Kaigorodov" wrote: > the document DEVNOTES.txt says to run maven with argument > -Dtest=%TEST_PATTERN% > but cassandra

Re: Timestamp is not stored correctly with Cassandra

2017-03-30 Thread Igor Rudyak
Hello, It works for long, but doesn't work for Timestamp cause there are no direct mapping ( http://docs.datastax.com/en/developer/java-driver/3.1/manual/#cql-to-java-type-mapping ) from java.sql.Timestamp

Re: Mapping java.util.Map in CassandraPersistentStore

2017-03-30 Thread Igor Rudyak
Hello, As for now it's only supported mapping for simple java types which could be directly mapped http://docs.datastax.com/en/developer/java-driver/3.1/manual/#cql-to-java-type-mapping to corresponding

Re: Ignite with Cassandra questions / errors

2017-01-05 Thread Igor Rudyak
Hi Kenan, You missed the main point - getters or setters of your custom classes should be annotated with *@QuerySqlField* instead of class private members. Here is a slightly modified version of your custom classes which should work: == import

Re: Ignite with Cassandra questions / errors

2017-01-04 Thread Igor Rudyak
Ok, I took a look at the *HistoryResult* implementation once again and found the reason. Your java class should follow JavaBeans Conventions . The most important here is that you class should implement getters/setters methods for

Re: Ignite with Cassandra questions / errors

2016-12-16 Thread Igor Rudyak
Hi, This is not actually 100% true - Cassandra integration supports @QuerySqlField annotations to create tables and doing mapping between object fields and table columns. Kenan, have you tried Cassandra DDL generator https://apacheignite-mix.readme.io/docs/ddl-generator for your persistence

Re: Cassandra cache info

2016-12-05 Thread Igor Rudyak
Hi Riccardo, It depends on how you are asking for the record which is not in Ignite cache. If you are doing this using *get* method of Ignite cache API it will load this record from DB (if it's not already in Ignite cache), put it into in-memory cache and return it to you. But if you are using

Re: Ignite Cassandra AWS test framework

2016-12-03 Thread Igor Rudyak
process was not updated into the S3 folder as suggested > in the documentation. > > Could it be for some reason that I get a test-package from the src code > which does not include the needed files (maybe some build errors)? > > Have a nice day > > Riccardo Iacomini > >

Re: Ignite Cassandra AWS test framework

2016-12-01 Thread Igor Rudyak
Ok guys, just updated the documentation. Igor On Thu, Dec 1, 2016 at 4:44 PM, Igor Rudyak <irud...@gmail.com> wrote: > Hi Riccardo, > > Thanks for noticing this. That's a documentation issue. There were number > of refactorings for Ignite-Cassandra and documentation now is not

Re: Cassandra basic setup

2016-11-30 Thread Igor Rudyak
ap.sh* script is the *1.6.* > > Best Regards > > Riccardo Iacomini > > > *RDSLab* > > On Tue, Nov 29, 2016 at 11:18 PM, Igor Rudyak <irud...@gmail.com> wrote: > >> Ok, thanks for the info. >> >> Igor >> >> On Tue, Nov 29, 2016 at 12:56 PM, Denis M

Re: Cassandra basic setup

2016-11-29 Thread Igor Rudyak
safe to > update the doc. > > — > Denis > > On Nov 29, 2016, at 10:46 AM, Igor Rudyak <irud...@gmail.com> wrote: > > Hi Riccardo, > > Thanks for noticing this. There were number of refactorings done and it > looks like we need to update the documentation. &g

Re: Cassandra basic setup

2016-11-29 Thread Igor Rudyak
used a different version of the documentation in contrast with the > one I was running. > > Anyway, thank you for your time. > > Best regards > > Riccardo Iacomini > > > *RDSLab* > > On Mon, Nov 28, 2016 at 5:34 PM, Igor Rudyak <irud...@gmail.com> wrote: >

Re: Cassandra basic setup

2016-11-28 Thread Igor Rudyak
If you are using ignite.sh it should be fine. Igor On Nov 28, 2016 8:29 AM, "Riccardo Iacomini" <riccardo.iacom...@rdslab.com> wrote: > I will try. Yes I am using the ignite.sh command. Any drawbacks? > > Il 28 nov 2016 5:26 PM, "Igor Rudyak" <irud...@g

Re: Cassandra basic setup

2016-11-28 Thread Igor Rudyak
running the image as specified here > <https://apacheignite.readme.io/v1.5/docs/docker-deployment> in the > documentation. Do you have any other suggestion? > > Thanks for your patience. > > Best regards > > Riccardo Iacomini > > > *RDSLab* > > On S

Re: Cassandra basic setup

2016-11-27 Thread Igor Rudyak
ignite-cassandra-1.7.0.jar in > IGNITE_HOME/modules/cassandra/target. I tried adding the path to > USER_LIBS and CLASSPATH, no different behavior. Maybe the environment > variables got ignored? > > > Riccardo Iacomini > > > *RDSLab* > > On Wed, Nov 23, 2016 at 7:41

Re: Cassandra basic setup

2016-11-23 Thread Igor Rudyak
Hi Riccardo, *CassandraAdminCredentials *class is only available in Ignite unit tests sources. If you want to use it you should build Ignite from source code. Such way, it will create *ignite-cassandra-tests-${project.version}.zip* where jar may find jar file containing all the test classes.

Re: Cannot query on a cache using Cassandra as a persistent store

2016-09-23 Thread Igor Rudyak
Hi Guang, Try this: *cache3.loadCache(null, new String[] {"select * from test1.pojo_test3 limit 10"});* -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cannot-query-on-a-cache-using-Cassandra-as-a-persistent-store-tp7870p7918.html Sent from the Apache Ignite

Re: Ignite with Cassandra

2016-08-29 Thread Igor Rudyak
The reason is in *"id"* field. According to the persistence descriptor, cache key will be stored in "id" field, but at the same time User POJO class also has such field. There are several options to fix this: 1) Specify another column mapping for Ignite cache key. For example: ** 2) Specify non

Re: Ignite with Cassandra

2016-08-25 Thread Igor Rudyak
Could you please provide full definition of key and value classes and xml persistence descriptor you are using for Ignite cache? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-with-Cassandra-tp7242p7331.html Sent from the Apache Ignite Users mailing list

Re: Cassandra - Ignite Exception

2016-08-12 Thread Igor Rudyak
ot;create table" is executed simultaneously from multiple clients (Ignite nodes in our case) it could cause such an error in the log. Regards, Igor Rudyak On Fri, Aug 12, 2016 at 12:20 PM, vkulichenko <valentin.kuliche...@gmail.com > wrote: > Hi Kamal, > > I would ask on the Cas

Re: Any plan for a book on Apache Ignite

2016-08-12 Thread Igor Rudyak
Looks cool!!! Igor On Fri, Aug 12, 2016 at 12:48 PM, Denis Magda wrote: > Cross-posting to the dev list. > > Wow, this is great. Are you the one of the authors? > > — > Denis > > > On Aug 12, 2016, at 12:08 PM, srecon wrote: > > > > One book is going to

Re: Cassandra Cache Store Example

2016-07-15 Thread Igor Rudyak
e billions partitions in Cassandra. Igor Rudyak On Fri, Jul 15, 2016 at 12:03 AM, Kamal C <kamaltar...@gmail.com> wrote: > Val, > > I too have some concerns to use cassandra partitioned table. For initial > version, I'm using PRIMITIVE / BLOB > persistent strategy to s

Re: Cassandra Cache Store Example

2016-07-14 Thread Igor Rudyak
and Ignite partitions are two absolutely different animals, it doesn't make sense to compare them. Just check that you are using @AffinityKeyMapped annotation for your key classes. In a such way all the values having same affinity will be persisted on the same Cassandra node. Igor Rudyak On Thu, Jul 14