You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Denis Magda <dm...@gridgain.com> on 2017/05/26 03:19:34 UTC

Cassandra and Ignite C++ Issue

Igor R., Igor S.,

Please take a look at this issue reported on SO:
https://stackoverflow.com/questions/44178514/ignite-c-client-for-cassandra-integration

--
Denis

Re: Cassandra and Ignite C++ Issue

Posted by Igor Sapego <is...@apache.org>.
Take a look at initial message.

Best Regards,
Igor

On Thu, Jun 1, 2017 at 6:45 PM, Igor Rudyak <ir...@gmail.com> wrote:

> Could you share your POJO key/value classes and persistence descriptor?
>
> Igor
>
> On Jun 1, 2017 8:30 AM, "Igor Sapego" <is...@apache.org> wrote:
>
> > User's comment:
> >
> > I have my own cassandra table with 1 partiton key, 3 clustering keys,
> > and I expect the value not to be stored in one column as a blob.
> >
> > Is there any way I can achieve this?
> > I have used POJO and there is an issue like the key is only getting
> > inserted into the cassandra table
> >
> > Best Regards,
> > Igor
> >
> > On Tue, May 30, 2017 at 12:33 PM, Igor Sapego <is...@gridgain.com>
> > wrote:
> >
> > > Thanks.
> > >
> > > Best Regards,
> > > Igor
> > >
> > > On Tue, May 30, 2017 at 11:35 AM, Valentin Kulichenko <
> > > valentin.kulichenko@gmail.com> wrote:
> > >
> > >> Igor,
> > >>
> > >> There is another SO question about this, I already responded:
> > >> https://stackoverflow.com/questions/44254079/ignite-with-
> > >> cassandra-integration
> > >>
> > >> -Val
> > >>
> > >> On Tue, May 30, 2017 at 10:15 AM, Igor Sapego <is...@gridgain.com>
> > >> wrote:
> > >>
> > >> > User's answer:
> > >> > I have changed my POJO to BLOB.
> > >> >
> > >> > Current persistence.xml file look like
> > >> >
> > >> > <persistence keyspace="sam" table="key">
> > >> >   <keyPersistence class="java.lang.String" strategy="BLOB"
> > >> > column="assetid"/>
> > >> >   <valuePersistence class="java.lang.String" strategy="BLOB"
> > >> > column="asset_desc"/>
> > >> > </persistence>
> > >> >
> > >> > now it's produce an error like
> > >> >
> > >> > "Caused by: com.datastax.driver.core.exceptions.
> > CodecNotFoundException:
> > >> > Codec not found for requested operation: [varchar <->
> > >> > java.nio.HeapByteBuffer] "
> > >> >
> > >> > Best Regards,
> > >> > Igor
> > >> >
> > >> > On Fri, May 26, 2017 at 2:37 PM, Igor Sapego <is...@gridgain.com>
> > >> wrote:
> > >> >
> > >> > > Cross-posted Igor's answer to SO
> > >> > >
> > >> > > Best Regards,
> > >> > > Igor
> > >> > >
> > >> > > On Fri, May 26, 2017 at 8:58 AM, Igor Rudyak <ir...@gmail.com>
> > >> wrote:
> > >> > >
> > >> > >> I assume that's because you are using this:
> > >> > >>
> > >> > >> <property name="storeKeepBinary" value="true"/>
> > >> > >>
> > >> > >>
> > >> > >> Current implementation supports only BLOB serialization for
> binary
> > >> > >> objects. We already have a ticket for this:
> > https://issues.apache.or
> > >> > >> g/jira/browse/IGNITE-5270
> > >> > >>
> > >> > >> Igor
> > >> > >>
> > >> > >>
> > >> > >>
> > >> > >> On Thu, May 25, 2017 at 8:19 PM, Denis Magda <
> dmagda@gridgain.com>
> > >> > wrote:
> > >> > >>
> > >> > >>> Igor R., Igor S.,
> > >> > >>>
> > >> > >>> Please take a look at this issue reported on SO:
> > >> > >>> https://stackoverflow.com/questions/44178514/ignite-c-client
> > >> > >>> -for-cassandra-integration
> > >> > >>>
> > >> > >>> --
> > >> > >>> Denis
> > >> > >>>
> > >> > >>
> > >> > >>
> > >> > >
> > >> >
> > >>
> > >
> > >
> >
>

Re: Cassandra and Ignite C++ Issue

Posted by Igor Rudyak <ir...@gmail.com>.
Could you share your POJO key/value classes and persistence descriptor?

Igor

On Jun 1, 2017 8:30 AM, "Igor Sapego" <is...@apache.org> wrote:

> User's comment:
>
> I have my own cassandra table with 1 partiton key, 3 clustering keys,
> and I expect the value not to be stored in one column as a blob.
>
> Is there any way I can achieve this?
> I have used POJO and there is an issue like the key is only getting
> inserted into the cassandra table
>
> Best Regards,
> Igor
>
> On Tue, May 30, 2017 at 12:33 PM, Igor Sapego <is...@gridgain.com>
> wrote:
>
> > Thanks.
> >
> > Best Regards,
> > Igor
> >
> > On Tue, May 30, 2017 at 11:35 AM, Valentin Kulichenko <
> > valentin.kulichenko@gmail.com> wrote:
> >
> >> Igor,
> >>
> >> There is another SO question about this, I already responded:
> >> https://stackoverflow.com/questions/44254079/ignite-with-
> >> cassandra-integration
> >>
> >> -Val
> >>
> >> On Tue, May 30, 2017 at 10:15 AM, Igor Sapego <is...@gridgain.com>
> >> wrote:
> >>
> >> > User's answer:
> >> > I have changed my POJO to BLOB.
> >> >
> >> > Current persistence.xml file look like
> >> >
> >> > <persistence keyspace="sam" table="key">
> >> >   <keyPersistence class="java.lang.String" strategy="BLOB"
> >> > column="assetid"/>
> >> >   <valuePersistence class="java.lang.String" strategy="BLOB"
> >> > column="asset_desc"/>
> >> > </persistence>
> >> >
> >> > now it's produce an error like
> >> >
> >> > "Caused by: com.datastax.driver.core.exceptions.
> CodecNotFoundException:
> >> > Codec not found for requested operation: [varchar <->
> >> > java.nio.HeapByteBuffer] "
> >> >
> >> > Best Regards,
> >> > Igor
> >> >
> >> > On Fri, May 26, 2017 at 2:37 PM, Igor Sapego <is...@gridgain.com>
> >> wrote:
> >> >
> >> > > Cross-posted Igor's answer to SO
> >> > >
> >> > > Best Regards,
> >> > > Igor
> >> > >
> >> > > On Fri, May 26, 2017 at 8:58 AM, Igor Rudyak <ir...@gmail.com>
> >> wrote:
> >> > >
> >> > >> I assume that's because you are using this:
> >> > >>
> >> > >> <property name="storeKeepBinary" value="true"/>
> >> > >>
> >> > >>
> >> > >> Current implementation supports only BLOB serialization for binary
> >> > >> objects. We already have a ticket for this:
> https://issues.apache.or
> >> > >> g/jira/browse/IGNITE-5270
> >> > >>
> >> > >> Igor
> >> > >>
> >> > >>
> >> > >>
> >> > >> On Thu, May 25, 2017 at 8:19 PM, Denis Magda <dm...@gridgain.com>
> >> > wrote:
> >> > >>
> >> > >>> Igor R., Igor S.,
> >> > >>>
> >> > >>> Please take a look at this issue reported on SO:
> >> > >>> https://stackoverflow.com/questions/44178514/ignite-c-client
> >> > >>> -for-cassandra-integration
> >> > >>>
> >> > >>> --
> >> > >>> Denis
> >> > >>>
> >> > >>
> >> > >>
> >> > >
> >> >
> >>
> >
> >
>

Re: Cassandra and Ignite C++ Issue

Posted by Igor Sapego <is...@apache.org>.
User's comment:

I have my own cassandra table with 1 partiton key, 3 clustering keys,
and I expect the value not to be stored in one column as a blob.

Is there any way I can achieve this?
I have used POJO and there is an issue like the key is only getting
inserted into the cassandra table

Best Regards,
Igor

On Tue, May 30, 2017 at 12:33 PM, Igor Sapego <is...@gridgain.com> wrote:

> Thanks.
>
> Best Regards,
> Igor
>
> On Tue, May 30, 2017 at 11:35 AM, Valentin Kulichenko <
> valentin.kulichenko@gmail.com> wrote:
>
>> Igor,
>>
>> There is another SO question about this, I already responded:
>> https://stackoverflow.com/questions/44254079/ignite-with-
>> cassandra-integration
>>
>> -Val
>>
>> On Tue, May 30, 2017 at 10:15 AM, Igor Sapego <is...@gridgain.com>
>> wrote:
>>
>> > User's answer:
>> > I have changed my POJO to BLOB.
>> >
>> > Current persistence.xml file look like
>> >
>> > <persistence keyspace="sam" table="key">
>> >   <keyPersistence class="java.lang.String" strategy="BLOB"
>> > column="assetid"/>
>> >   <valuePersistence class="java.lang.String" strategy="BLOB"
>> > column="asset_desc"/>
>> > </persistence>
>> >
>> > now it's produce an error like
>> >
>> > "Caused by: com.datastax.driver.core.exceptions.CodecNotFoundException:
>> > Codec not found for requested operation: [varchar <->
>> > java.nio.HeapByteBuffer] "
>> >
>> > Best Regards,
>> > Igor
>> >
>> > On Fri, May 26, 2017 at 2:37 PM, Igor Sapego <is...@gridgain.com>
>> wrote:
>> >
>> > > Cross-posted Igor's answer to SO
>> > >
>> > > Best Regards,
>> > > Igor
>> > >
>> > > On Fri, May 26, 2017 at 8:58 AM, Igor Rudyak <ir...@gmail.com>
>> wrote:
>> > >
>> > >> I assume that's because you are using this:
>> > >>
>> > >> <property name="storeKeepBinary" value="true"/>
>> > >>
>> > >>
>> > >> Current implementation supports only BLOB serialization for binary
>> > >> objects. We already have a ticket for this: https://issues.apache.or
>> > >> g/jira/browse/IGNITE-5270
>> > >>
>> > >> Igor
>> > >>
>> > >>
>> > >>
>> > >> On Thu, May 25, 2017 at 8:19 PM, Denis Magda <dm...@gridgain.com>
>> > wrote:
>> > >>
>> > >>> Igor R., Igor S.,
>> > >>>
>> > >>> Please take a look at this issue reported on SO:
>> > >>> https://stackoverflow.com/questions/44178514/ignite-c-client
>> > >>> -for-cassandra-integration
>> > >>>
>> > >>> --
>> > >>> Denis
>> > >>>
>> > >>
>> > >>
>> > >
>> >
>>
>
>

Re: Cassandra and Ignite C++ Issue

Posted by Igor Sapego <is...@gridgain.com>.
Thanks.

Best Regards,
Igor

On Tue, May 30, 2017 at 11:35 AM, Valentin Kulichenko <
valentin.kulichenko@gmail.com> wrote:

> Igor,
>
> There is another SO question about this, I already responded:
> https://stackoverflow.com/questions/44254079/ignite-
> with-cassandra-integration
>
> -Val
>
> On Tue, May 30, 2017 at 10:15 AM, Igor Sapego <is...@gridgain.com>
> wrote:
>
> > User's answer:
> > I have changed my POJO to BLOB.
> >
> > Current persistence.xml file look like
> >
> > <persistence keyspace="sam" table="key">
> >   <keyPersistence class="java.lang.String" strategy="BLOB"
> > column="assetid"/>
> >   <valuePersistence class="java.lang.String" strategy="BLOB"
> > column="asset_desc"/>
> > </persistence>
> >
> > now it's produce an error like
> >
> > "Caused by: com.datastax.driver.core.exceptions.CodecNotFoundException:
> > Codec not found for requested operation: [varchar <->
> > java.nio.HeapByteBuffer] "
> >
> > Best Regards,
> > Igor
> >
> > On Fri, May 26, 2017 at 2:37 PM, Igor Sapego <is...@gridgain.com>
> wrote:
> >
> > > Cross-posted Igor's answer to SO
> > >
> > > Best Regards,
> > > Igor
> > >
> > > On Fri, May 26, 2017 at 8:58 AM, Igor Rudyak <ir...@gmail.com>
> wrote:
> > >
> > >> I assume that's because you are using this:
> > >>
> > >> <property name="storeKeepBinary" value="true"/>
> > >>
> > >>
> > >> Current implementation supports only BLOB serialization for binary
> > >> objects. We already have a ticket for this: https://issues.apache.or
> > >> g/jira/browse/IGNITE-5270
> > >>
> > >> Igor
> > >>
> > >>
> > >>
> > >> On Thu, May 25, 2017 at 8:19 PM, Denis Magda <dm...@gridgain.com>
> > wrote:
> > >>
> > >>> Igor R., Igor S.,
> > >>>
> > >>> Please take a look at this issue reported on SO:
> > >>> https://stackoverflow.com/questions/44178514/ignite-c-client
> > >>> -for-cassandra-integration
> > >>>
> > >>> --
> > >>> Denis
> > >>>
> > >>
> > >>
> > >
> >
>

Re: Cassandra and Ignite C++ Issue

Posted by Valentin Kulichenko <va...@gmail.com>.
Igor,

There is another SO question about this, I already responded:
https://stackoverflow.com/questions/44254079/ignite-with-cassandra-integration

-Val

On Tue, May 30, 2017 at 10:15 AM, Igor Sapego <is...@gridgain.com> wrote:

> User's answer:
> I have changed my POJO to BLOB.
>
> Current persistence.xml file look like
>
> <persistence keyspace="sam" table="key">
>   <keyPersistence class="java.lang.String" strategy="BLOB"
> column="assetid"/>
>   <valuePersistence class="java.lang.String" strategy="BLOB"
> column="asset_desc"/>
> </persistence>
>
> now it's produce an error like
>
> "Caused by: com.datastax.driver.core.exceptions.CodecNotFoundException:
> Codec not found for requested operation: [varchar <->
> java.nio.HeapByteBuffer] "
>
> Best Regards,
> Igor
>
> On Fri, May 26, 2017 at 2:37 PM, Igor Sapego <is...@gridgain.com> wrote:
>
> > Cross-posted Igor's answer to SO
> >
> > Best Regards,
> > Igor
> >
> > On Fri, May 26, 2017 at 8:58 AM, Igor Rudyak <ir...@gmail.com> wrote:
> >
> >> I assume that's because you are using this:
> >>
> >> <property name="storeKeepBinary" value="true"/>
> >>
> >>
> >> Current implementation supports only BLOB serialization for binary
> >> objects. We already have a ticket for this: https://issues.apache.or
> >> g/jira/browse/IGNITE-5270
> >>
> >> Igor
> >>
> >>
> >>
> >> On Thu, May 25, 2017 at 8:19 PM, Denis Magda <dm...@gridgain.com>
> wrote:
> >>
> >>> Igor R., Igor S.,
> >>>
> >>> Please take a look at this issue reported on SO:
> >>> https://stackoverflow.com/questions/44178514/ignite-c-client
> >>> -for-cassandra-integration
> >>>
> >>> --
> >>> Denis
> >>>
> >>
> >>
> >
>

Re: Cassandra and Ignite C++ Issue

Posted by Igor Sapego <is...@gridgain.com>.
User's answer:
I have changed my POJO to BLOB.

Current persistence.xml file look like

<persistence keyspace="sam" table="key">
  <keyPersistence class="java.lang.String" strategy="BLOB"
column="assetid"/>
  <valuePersistence class="java.lang.String" strategy="BLOB"
column="asset_desc"/>
</persistence>

now it's produce an error like

"Caused by: com.datastax.driver.core.exceptions.CodecNotFoundException:
Codec not found for requested operation: [varchar <->
java.nio.HeapByteBuffer] "

Best Regards,
Igor

On Fri, May 26, 2017 at 2:37 PM, Igor Sapego <is...@gridgain.com> wrote:

> Cross-posted Igor's answer to SO
>
> Best Regards,
> Igor
>
> On Fri, May 26, 2017 at 8:58 AM, Igor Rudyak <ir...@gmail.com> wrote:
>
>> I assume that's because you are using this:
>>
>> <property name="storeKeepBinary" value="true"/>
>>
>>
>> Current implementation supports only BLOB serialization for binary
>> objects. We already have a ticket for this: https://issues.apache.or
>> g/jira/browse/IGNITE-5270
>>
>> Igor
>>
>>
>>
>> On Thu, May 25, 2017 at 8:19 PM, Denis Magda <dm...@gridgain.com> wrote:
>>
>>> Igor R., Igor S.,
>>>
>>> Please take a look at this issue reported on SO:
>>> https://stackoverflow.com/questions/44178514/ignite-c-client
>>> -for-cassandra-integration
>>>
>>> --
>>> Denis
>>>
>>
>>
>

Re: Cassandra and Ignite C++ Issue

Posted by Igor Sapego <is...@gridgain.com>.
Cross-posted Igor's answer to SO

Best Regards,
Igor

On Fri, May 26, 2017 at 8:58 AM, Igor Rudyak <ir...@gmail.com> wrote:

> I assume that's because you are using this:
>
> <property name="storeKeepBinary" value="true"/>
>
>
> Current implementation supports only BLOB serialization for binary
> objects. We already have a ticket for this: https://issues.apache.
> org/jira/browse/IGNITE-5270
>
> Igor
>
>
>
> On Thu, May 25, 2017 at 8:19 PM, Denis Magda <dm...@gridgain.com> wrote:
>
>> Igor R., Igor S.,
>>
>> Please take a look at this issue reported on SO:
>> https://stackoverflow.com/questions/44178514/ignite-c-client
>> -for-cassandra-integration
>>
>> --
>> Denis
>>
>
>

Re: Cassandra and Ignite C++ Issue

Posted by Igor Rudyak <ir...@gmail.com>.
I assume that's because you are using this:

<property name="storeKeepBinary" value="true"/>


Current implementation supports only BLOB serialization for binary objects.
We already have a ticket for this:
https://issues.apache.org/jira/browse/IGNITE-5270

Igor



On Thu, May 25, 2017 at 8:19 PM, Denis Magda <dm...@gridgain.com> wrote:

> Igor R., Igor S.,
>
> Please take a look at this issue reported on SO:
> https://stackoverflow.com/questions/44178514/ignite-c-
> client-for-cassandra-integration
>
> --
> Denis
>