You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by "Roger Fischer (CW)" <rf...@Brocade.com> on 2017/08/24 22:19:35 UTC

Cassandra Persistence Store without POJO on Server

Hello,

is it possible to use the Cassandra Persistence Store (libs/optional/ignite-cassandra-store) without the need to deploy the key and object POJOs on the server?

For basic data grid use, it seems that everything defaults to binary objects. put(), get() SQL queries, native persistence and affinity all work without having to deploy the POJO on the servers. The POJO are referenced in the XML configuration, but a JAR with the POJO is _not_ required on the server. Only the client uses the POJO.

However, when using the Cassandra persistence store, the server reports a startup error when the POJO are not present.
Caused by: class org.apache.ignite.IgniteException: Failed to load class 'com.abc.poc.icpoc.model.Fabric' using reflection
        at org.apache.ignite.cache.store.cassandra.persistence.PersistenceSettings.getClassInstance(PersistenceSettings.java:504)
        at org.apache.ignite.cache.store.cassandra.persistence.PersistenceSettings.<init>(PersistenceSettings.java:128)

I would prefer not to have to redeploy the POJO to the servers when there are data (object) changes.

Roger


RE: Cassandra Persistence Store without POJO on Server

Posted by "Roger Fischer (CW)" <rf...@Brocade.com>.
Thanks, Val. I keep an eye on the ticket.

Roger


-----Original Message-----
From: vkulichenko [mailto:valentin.kulichenko@gmail.com] 
Sent: Thursday, August 24, 2017 3:43 PM
To: user@ignite.apache.org
Subject: Re: Cassandra Persistence Store without POJO on Server

Hi Roger,

Currently this is not possible. If POJO strategy is used, classes need to be deployed. There is a ticket to improve this:
https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_browse_IGNITE-2D5270&d=DwICAg&c=IL_XqQWOjubgfqINi2jTzg&r=1esZO0r0bYS90lcsaLA6N4AFxuNo6lzauhETGwdJQoQ&m=YIEu2XRwOzDh3k5owk0EWXoxfNIKcKGNotw-0MLxDH4&s=cXPVI2a9AEQdkdR4U8lZrCb_58i18LJP9Un_EUhbbkE&e= 

If it's an option for you, you can switch to BLOB strategy and store values in binary from in Cassandra. In this case you don't need to deploy classes.

-Val



--
View this message in context: https://urldefense.proofpoint.com/v2/url?u=http-3A__apache-2Dignite-2Dusers.70518.x6.nabble.com_Cassandra-2DPersistence-2DStore-2Dwithout-2DPOJO-2Don-2DServer-2Dtp16412p16413.html&d=DwICAg&c=IL_XqQWOjubgfqINi2jTzg&r=1esZO0r0bYS90lcsaLA6N4AFxuNo6lzauhETGwdJQoQ&m=YIEu2XRwOzDh3k5owk0EWXoxfNIKcKGNotw-0MLxDH4&s=wMzY9zoIBanpw1boSjPNf-2gSbskKIfAil4Bhdf8L4s&e=
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Cassandra Persistence Store without POJO on Server

Posted by vkulichenko <va...@gmail.com>.
Hi Roger,

Currently this is not possible. If POJO strategy is used, classes need to be
deployed. There is a ticket to improve this:
https://issues.apache.org/jira/browse/IGNITE-5270

If it's an option for you, you can switch to BLOB strategy and store values
in binary from in Cassandra. In this case you don't need to deploy classes.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cassandra-Persistence-Store-without-POJO-on-Server-tp16412p16413.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.