Persistence using Cassandra

classic Classic list List threaded Threaded
20 messages Options
ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Persistence using Cassandra

Hi Team,

I am trying to implement cache store persistence in Cassandra. Is their any Cassandra specific module available off the shelf or any ignite provided utilities that could help me binf the two?

Please let me know if you need any further information.

Regards,
Chicky D.
Alexey Kuznetsov Alexey Kuznetsov
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

Hi Chicky D.!

Cassandra cache store was merged into upcoming ignite-1.6 release. 
ignite-1.6 is under voting process right now and may be released next week.


But you may already try latest nightly build.

This ignite-cassandra module is not yet documented (will be done soon), but it has tests - you may take a look.

Hope this help.

On Thu, May 19, 2016 at 8:18 PM, ChickyDutt <[hidden email]> wrote:
Hi Team,

I am trying to implement cache store persistence in Cassandra. Is their any Cassandra specific module available off the shelf or any ignite provided utilities that could help me binf the two?

Please let me know if you need any further information.

Regards,
Chicky D.


View this message in context: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

Thank you for the reply.

Meanwhile could you illuminate on the XML configuration details for a node to operate with read and write through behaviours on Cassandra?

Please let me know if you need any further information.

Regards
Ashish Sharma.

On 19 May 2016 4:23 p.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

Cassandra cache store was merged into upcoming ignite-1.6 release. 
ignite-1.6 is under voting process right now and may be released next week.


But you may already try latest nightly build.

This ignite-cassandra module is not yet documented (will be done soon), but it has tests - you may take a look.

Hope this help.

On Thu, May 19, 2016 at 8:18 PM, ChickyDutt <[hidden email]> wrote:
Hi Team,

I am trying to implement cache store persistence in Cassandra. Is their any Cassandra specific module available off the shelf or any ignite provided utilities that could help me binf the two?

Please let me know if you need any further information.

Regards,
Chicky D.


View this message in context: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5032.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML
ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

In reply to this post by Alexey Kuznetsov
Hi team,

In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?


Please let me know if you need any further information.

Regards. 

On Thu, May 19, 2016 at 9:07 PM, Ashish Dutt Sharma <[hidden email]> wrote:

Thank you for the reply.

Meanwhile could you illuminate on the XML configuration details for a node to operate with read and write through behaviours on Cassandra?

Please let me know if you need any further information.

Regards
Ashish Sharma.

On 19 May 2016 4:23 p.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

Cassandra cache store was merged into upcoming ignite-1.6 release. 
ignite-1.6 is under voting process right now and may be released next week.


But you may already try latest nightly build.

This ignite-cassandra module is not yet documented (will be done soon), but it has tests - you may take a look.

Hope this help.

On Thu, May 19, 2016 at 8:18 PM, ChickyDutt <[hidden email]> wrote:
Hi Team,

I am trying to implement cache store persistence in Cassandra. Is their any Cassandra specific module available off the shelf or any ignite provided utilities that could help me binf the two?

Please let me know if you need any further information.

Regards,
Chicky D.


View this message in context: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5032.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML

Alexey Kuznetsov Alexey Kuznetsov
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML
Alexey Kuznetsov Alexey Kuznetsov
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML

ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

In reply to this post by Alexey Kuznetsov
Mentioned below are the complete logs

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite
/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed t
o import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA9
6OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration
 problem: Failed to import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions f
rom URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:250)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.ja
va:201)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.j
ava:186)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentRea
der.java:143)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReade
r.java:110)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:379)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [org/apach
e/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ignite/te
sts/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:244)
        ... 18 more
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
use it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 22 more
Failed to start grid: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabr
ic-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed to import bean defin
itions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
Press any key to continue . . .

On Mon, May 23, 2016 at 1:41 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


Alexey Kuznetsov Alexey Kuznetsov
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

If you need tests - you need to download sources (https://ignite.apache.org/download.cgi#sources).
Also, today we released Ignite 1.6 it should be available on Maven now.

Hope this help.

On Mon, May 23, 2016 at 6:35 PM, ChickyDutt <[hidden email]> wrote:
Mentioned below are the complete logs

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite
/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed t
o import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA9
6OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration
 problem: Failed to import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions f
rom URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:250)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.ja
va:201)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.j
ava:186)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentRea
der.java:143)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReade
r.java:110)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:379)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [org/apach
e/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ignite/te
sts/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:244)
        ... 18 more
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
use it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 22 more
Failed to start grid: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabr
ic-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed to import bean defin
itions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
Press any key to continue . . .

On Mon, May 23, 2016 at 1:41 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML




View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

Thank you Alexey.

Do you have an example where the CacheConfiguration store is configured using Java ?

Regards,
Ashish Sharma.

On Mon, May 23, 2016 at 3:28 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If you need tests - you need to download sources (https://ignite.apache.org/download.cgi#sources).
Also, today we released Ignite 1.6 it should be available on Maven now.

Hope this help.

On Mon, May 23, 2016 at 6:35 PM, ChickyDutt <[hidden email]> wrote:
Mentioned below are the complete logs

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite
/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed t
o import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA9
6OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration
 problem: Failed to import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions f
rom URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:250)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.ja
va:201)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.j
ava:186)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentRea
der.java:143)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReade
r.java:110)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:379)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [org/apach
e/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ignite/te
sts/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:244)
        ... 18 more
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
use it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 22 more
Failed to start grid: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabr
ic-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed to import bean defin
itions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
Press any key to continue . . .

On Mon, May 23, 2016 at 1:41 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML




View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5114.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML

Alexey Kuznetsov Alexey Kuznetsov
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

Hi, Ashish Sharma.

there I found such note;
----------------
Current implementation of org.apache.ignite.cache.store.cassandra.utils.datasource.DataSource doesn't implement Serializable,
 thus for distributed Ignite clusters, CassandraCacheStoreFactory could only be setup through Spring XML file, but not from code
---------------

I think this could be fixed in next releases.



On Wed, Jun 8, 2016 at 10:35 PM, ChickyDutt <[hidden email]> wrote:
Thank you Alexey.

Do you have an example where the CacheConfiguration store is configured using Java ?

Regards,
Ashish Sharma.

On Mon, May 23, 2016 at 3:28 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If you need tests - you need to download sources (https://ignite.apache.org/download.cgi#sources).
Also, today we released Ignite 1.6 it should be available on Maven now.

Hope this help.

On Mon, May 23, 2016 at 6:35 PM, ChickyDutt <[hidden email]> wrote:
Mentioned below are the complete logs

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite
/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed t
o import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA9
6OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration
 problem: Failed to import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions f
rom URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:250)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.ja
va:201)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.j
ava:186)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentRea
der.java:143)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReade
r.java:110)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:379)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [org/apach
e/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ignite/te
sts/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:244)
        ... 18 more
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
use it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 22 more
Failed to start grid: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabr
ic-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed to import bean defin
itions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
Press any key to continue . . .

On Mon, May 23, 2016 at 1:41 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML




View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5114.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML



View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

Thank you Alexey. 

I am now trying to run the load tests from the source package, After building from the source and editing relevant properties, I run into the following error after I run the 'cassandra-load-tests.bat' file.

Could you please take a look at the attachment and advise on how to resolve? Please let me know if you need any further information.

Regards,
Ashish Sharma,

On Wed, Jun 8, 2016 at 5:43 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
Hi, Ashish Sharma.

there I found such note;
----------------
Current implementation of org.apache.ignite.cache.store.cassandra.utils.datasource.DataSource doesn't implement Serializable,
 thus for distributed Ignite clusters, CassandraCacheStoreFactory could only be setup through Spring XML file, but not from code
---------------

I think this could be fixed in next releases.



On Wed, Jun 8, 2016 at 10:35 PM, ChickyDutt <[hidden email]> wrote:
Thank you Alexey.

Do you have an example where the CacheConfiguration store is configured using Java ?

Regards,
Ashish Sharma.

On Mon, May 23, 2016 at 3:28 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If you need tests - you need to download sources (https://ignite.apache.org/download.cgi#sources).
Also, today we released Ignite 1.6 it should be available on Maven now.

Hope this help.

On Mon, May 23, 2016 at 6:35 PM, ChickyDutt <[hidden email]> wrote:
Mentioned below are the complete logs

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite
/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed t
o import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA9
6OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration
 problem: Failed to import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions f
rom URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:250)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.ja
va:201)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.j
ava:186)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentRea
der.java:143)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReade
r.java:110)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:379)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [org/apach
e/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ignite/te
sts/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:244)
        ... 18 more
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
use it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 22 more
Failed to start grid: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabr
ic-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed to import bean defin
itions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
Press any key to continue . . .

On Mon, May 23, 2016 at 1:41 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML




View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5114.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML



View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5535.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


Heap_SIZE_ERROR.png (66K) Download Attachment
ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

In reply to this post by Alexey Kuznetsov
I decreased the JVM size and it worked. Thank you.

Regards.

On Thu, Jun 9, 2016 at 5:57 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey. 

I am now trying to run the load tests from the source package, After building from the source and editing relevant properties, I run into the following error after I run the 'cassandra-load-tests.bat' file.

Could you please take a look at the attachment and advise on how to resolve? Please let me know if you need any further information.

Regards,
Ashish Sharma,

On Wed, Jun 8, 2016 at 5:43 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
Hi, Ashish Sharma.

there I found such note;
----------------
Current implementation of org.apache.ignite.cache.store.cassandra.utils.datasource.DataSource doesn't implement Serializable,
 thus for distributed Ignite clusters, CassandraCacheStoreFactory could only be setup through Spring XML file, but not from code
---------------

I think this could be fixed in next releases.



On Wed, Jun 8, 2016 at 10:35 PM, ChickyDutt <[hidden email]> wrote:
Thank you Alexey.

Do you have an example where the CacheConfiguration store is configured using Java ?

Regards,
Ashish Sharma.

On Mon, May 23, 2016 at 3:28 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If you need tests - you need to download sources (https://ignite.apache.org/download.cgi#sources).
Also, today we released Ignite 1.6 it should be available on Maven now.

Hope this help.

On Mon, May 23, 2016 at 6:35 PM, ChickyDutt <[hidden email]> wrote:
Mentioned below are the complete logs

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite
/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed t
o import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA9
6OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration
 problem: Failed to import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions f
rom URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:250)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.ja
va:201)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.j
ava:186)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentRea
der.java:143)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReade
r.java:110)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:379)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [org/apach
e/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ignite/te
sts/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:244)
        ... 18 more
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
use it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 22 more
Failed to start grid: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabr
ic-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed to import bean defin
itions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
Press any key to continue . . .

On Mon, May 23, 2016 at 1:41 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML




View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5114.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML



View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5535.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

In reply to this post by Alexey Kuznetsov
Hi Alexey

I run into the attached error after I run the ignite.bat with reference to the server config file as mentioned in Load test examples.

Could you please advise on how to get around it?

On Thu, Jun 9, 2016 at 6:10 PM, Ashish Dutt Sharma <[hidden email]> wrote:
I decreased the JVM size and it worked. Thank you.

Regards.

On Thu, Jun 9, 2016 at 5:57 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey. 

I am now trying to run the load tests from the source package, After building from the source and editing relevant properties, I run into the following error after I run the 'cassandra-load-tests.bat' file.

Could you please take a look at the attachment and advise on how to resolve? Please let me know if you need any further information.

Regards,
Ashish Sharma,

On Wed, Jun 8, 2016 at 5:43 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
Hi, Ashish Sharma.

there I found such note;
----------------
Current implementation of org.apache.ignite.cache.store.cassandra.utils.datasource.DataSource doesn't implement Serializable,
 thus for distributed Ignite clusters, CassandraCacheStoreFactory could only be setup through Spring XML file, but not from code
---------------

I think this could be fixed in next releases.



On Wed, Jun 8, 2016 at 10:35 PM, ChickyDutt <[hidden email]> wrote:
Thank you Alexey.

Do you have an example where the CacheConfiguration store is configured using Java ?

Regards,
Ashish Sharma.

On Mon, May 23, 2016 at 3:28 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If you need tests - you need to download sources (https://ignite.apache.org/download.cgi#sources).
Also, today we released Ignite 1.6 it should be available on Maven now.

Hope this help.

On Mon, May 23, 2016 at 6:35 PM, ChickyDutt <[hidden email]> wrote:
Mentioned below are the complete logs

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite
/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed t
o import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA9
6OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration
 problem: Failed to import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions f
rom URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:250)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.ja
va:201)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.j
ava:186)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentRea
der.java:143)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReade
r.java:110)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:379)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [org/apach
e/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ignite/te
sts/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:244)
        ... 18 more
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
use it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 22 more
Failed to start grid: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabr
ic-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed to import bean defin
itions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
Press any key to continue . . .

On Mon, May 23, 2016 at 1:41 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML




View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5114.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML



View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5535.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML




Error.png (44K) Download Attachment
ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

In reply to this post by Alexey Kuznetsov
Hi Alexey

I reinstalled Ignite on C;\Ignite and I got through.


Regards.

On Thu, Jun 9, 2016 at 10:39 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Hi Alexey

I run into the attached error after I run the ignite.bat with reference to the server config file as mentioned in Load test examples.

Could you please advise on how to get around it?

On Thu, Jun 9, 2016 at 6:10 PM, Ashish Dutt Sharma <[hidden email]> wrote:
I decreased the JVM size and it worked. Thank you.

Regards.

On Thu, Jun 9, 2016 at 5:57 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey. 

I am now trying to run the load tests from the source package, After building from the source and editing relevant properties, I run into the following error after I run the 'cassandra-load-tests.bat' file.

Could you please take a look at the attachment and advise on how to resolve? Please let me know if you need any further information.

Regards,
Ashish Sharma,

On Wed, Jun 8, 2016 at 5:43 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
Hi, Ashish Sharma.

there I found such note;
----------------
Current implementation of org.apache.ignite.cache.store.cassandra.utils.datasource.DataSource doesn't implement Serializable,
 thus for distributed Ignite clusters, CassandraCacheStoreFactory could only be setup through Spring XML file, but not from code
---------------

I think this could be fixed in next releases.



On Wed, Jun 8, 2016 at 10:35 PM, ChickyDutt <[hidden email]> wrote:
Thank you Alexey.

Do you have an example where the CacheConfiguration store is configured using Java ?

Regards,
Ashish Sharma.

On Mon, May 23, 2016 at 3:28 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If you need tests - you need to download sources (https://ignite.apache.org/download.cgi#sources).
Also, today we released Ignite 1.6 it should be available on Maven now.

Hope this help.

On Mon, May 23, 2016 at 6:35 PM, ChickyDutt <[hidden email]> wrote:
Mentioned below are the complete logs

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite
/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed t
o import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA9
6OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration
 problem: Failed to import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions f
rom URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:250)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.ja
va:201)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.j
ava:186)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentRea
der.java:143)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReade
r.java:110)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:379)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [org/apach
e/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ignite/te
sts/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:244)
        ... 18 more
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
use it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 22 more
Failed to start grid: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabr
ic-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed to import bean defin
itions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
Press any key to continue . . .

On Mon, May 23, 2016 at 1:41 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML




View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5114.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML



View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5535.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML




ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

In reply to this post by Alexey Kuznetsov
Good morning Alexey

My use case is to load a object into the cache and then see it get inserted in Cassandra. In other words a simple read and write through implementation.

I am trying to insert a custom object in cache. I have both the server and client instances up and running. Request you to please help me understand the following

1 - Where do I provide the Cassandra keyspace and table creation details?

 2- Apart from the server config file, and the libs folder (I have placed the JAR file of the project there), is there any place else that I have to mention or refer the custom object details?

3 - Also can you elaborate what is the difference between the credentials provided in the server/client config file  and the credentials provided in the credentials.properties file?

Please let me know if you need any further information.

Regards,
Ashish Sharma.






On Thu, Jun 9, 2016 at 11:47 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Hi Alexey

I reinstalled Ignite on C;\Ignite and I got through.


Regards.

On Thu, Jun 9, 2016 at 10:39 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Hi Alexey

I run into the attached error after I run the ignite.bat with reference to the server config file as mentioned in Load test examples.

Could you please advise on how to get around it?

On Thu, Jun 9, 2016 at 6:10 PM, Ashish Dutt Sharma <[hidden email]> wrote:
I decreased the JVM size and it worked. Thank you.

Regards.

On Thu, Jun 9, 2016 at 5:57 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey. 

I am now trying to run the load tests from the source package, After building from the source and editing relevant properties, I run into the following error after I run the 'cassandra-load-tests.bat' file.

Could you please take a look at the attachment and advise on how to resolve? Please let me know if you need any further information.

Regards,
Ashish Sharma,

On Wed, Jun 8, 2016 at 5:43 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
Hi, Ashish Sharma.

there I found such note;
----------------
Current implementation of org.apache.ignite.cache.store.cassandra.utils.datasource.DataSource doesn't implement Serializable,
 thus for distributed Ignite clusters, CassandraCacheStoreFactory could only be setup through Spring XML file, but not from code
---------------

I think this could be fixed in next releases.



On Wed, Jun 8, 2016 at 10:35 PM, ChickyDutt <[hidden email]> wrote:
Thank you Alexey.

Do you have an example where the CacheConfiguration store is configured using Java ?

Regards,
Ashish Sharma.

On Mon, May 23, 2016 at 3:28 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If you need tests - you need to download sources (https://ignite.apache.org/download.cgi#sources).
Also, today we released Ignite 1.6 it should be available on Maven now.

Hope this help.

On Mon, May 23, 2016 at 6:35 PM, ChickyDutt <[hidden email]> wrote:
Mentioned below are the complete logs

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite
/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed t
o import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA9
6OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration
 problem: Failed to import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions f
rom URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:250)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.ja
va:201)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.j
ava:186)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentRea
der.java:143)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReade
r.java:110)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:379)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [org/apach
e/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ignite/te
sts/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:244)
        ... 18 more
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
use it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 22 more
Failed to start grid: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabr
ic-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed to import bean defin
itions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
Press any key to continue . . .

On Mon, May 23, 2016 at 1:41 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML




View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5114.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML



View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5535.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML





ChickyDutt ChickyDutt
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

In reply to this post by Alexey Kuznetsov
More info pertaining to the questions in the previous mails.

I get the below exception when I try to do a put into the server cache .

Exception in thread "main" org.apache.ignite.cache.CachePartialUpdateException: Failed to update keys (retry update if possible).: [12]
 at org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1464)
 at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.cacheException(IgniteCacheProxy.java:1972)
 at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1172)
 at CassandraTest.main(CassandraTest.java:39)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: class org.apache.ignite.internal.processors.cache.CachePartialUpdateCheckedException: Failed to update keys (retry update if possible).: [12]
 at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicSingleUpdateFuture.onResult(GridNearAtomicSingleUpdateFuture.java:224)
 at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.processNearAtomicUpdateResponse(GridDhtAtomicCache.java:2959)
 at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.access$700(GridDhtAtomicCache.java:129)
 at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$6.apply(GridDhtAtomicCache.java:266)
 at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$6.apply(GridDhtAtomicCache.java:264)
 at org.apache.ignite.internal.processors.cache.GridCacheIoManager.processMessage(GridCacheIoManager.java:622)
 at org.apache.ignite.internal.processors.cache.GridCacheIoManager.onMessage0(GridCacheIoManager.java:320)
 at org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:244)
 at org.apache.ignite.internal.processors.cache.GridCacheIoManager.access$000(GridCacheIoManager.java:81)
 at org.apache.ignite.internal.processors.cache.GridCacheIoManager$1.onMessage(GridCacheIoManager.java:203)
 at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1219)
 at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:847)
 at org.apache.ignite.internal.managers.communication.GridIoManager.access$1700(GridIoManager.java:105)
 at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:810)
 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)
 Suppressed: class org.apache.ignite.IgniteCheckedException: Failed to update keys on primary node.
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateResponse.addFailedKeys(GridNearAtomicUpdateResponse.java:369)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1713)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1484)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.processNearAtomicUpdateRequest(GridDhtAtomicCache.java:2940)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.access$600(GridDhtAtomicCache.java:129)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$5.apply(GridDhtAtomicCache.java:260)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$5.apply(GridDhtAtomicCache.java:258)
  ... 12 more
  Suppressed: class org.apache.ignite.binary.BinaryInvalidTypeException: CodingScheme
   at org.apache.ignite.internal.binary.BinaryContext.descriptorForTypeId(BinaryContext.java:608)
   at org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1474)
   at org.apache.ignite.internal.binary.BinaryObjectImpl.deserializeValue(BinaryObjectImpl.java:572)
   at org.apache.ignite.internal.binary.BinaryObjectImpl.value(BinaryObjectImpl.java:131)
   at org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinary(CacheObjectContext.java:257)
   at org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinaryIfNeeded(CacheObjectContext.java:148)
   at org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinaryIfNeeded(CacheObjectContext.java:135)
   at org.apache.ignite.internal.processors.cache.GridCacheContext.unwrapBinaryIfNeeded(GridCacheContext.java:1732)
   at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.put(GridCacheStoreManagerAdapter.java:565)
   at org.apache.ignite.internal.processors.cache.GridCacheMapEntry.innerUpdate(GridCacheMapEntry.java:2358)
   at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateSingle(GridDhtAtomicCache.java:2246)
   at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1644)
   ... 17 more
  Caused by: java.lang.ClassNotFoundException: CodingScheme
   at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:348)
   at org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8250)
   at org.apache.ignite.internal.MarshallerContextAdapter.getClass(MarshallerContextAdapter.java:185)
   at org.apache.ignite.internal.binary.BinaryContext.descriptorForTypeId(BinaryContext.java:599)
   ... 28 more


Source code

public class CassandraTest {


public static void main(String[] args) throws Exception {


String cacheName = "cache1";

String configURL = "C:\\Ignite\\modules\\cassandra\\target\\tests-package\\settings\\org\\apache\\ignite\\tests\\persistence\\primitive\\ignite-remote-client-config.xml";

IgniteConfiguration cfg = new IgniteConfiguration();


// InitiateClient ic = new InitiateClient();
//cfg=ic.Initiate(cacheName, rootPath, cfg);

//Igniting cluster
Ignite ignite = Ignition.start(configURL);

// obtaining cache handle
IgniteCache<String, CodingScheme> testCache = ignite.getOrCreateCache(cacheName);


// Populate coding scheme object
CodingScheme cs = new CodingScheme();
cs.setCode("CS");
cs.setentryId("123");
cs.setTableName("CS");
cs.setValueDE("DE");

testCache.put(String.valueOf(12), cs);

}


}



On Fri, Jun 10, 2016 at 10:03 AM, Ashish Dutt Sharma <[hidden email]> wrote:
Good morning Alexey

My use case is to load a object into the cache and then see it get inserted in Cassandra. In other words a simple read and write through implementation.

I am trying to insert a custom object in cache. I have both the server and client instances up and running. Request you to please help me understand the following

1 - Where do I provide the Cassandra keyspace and table creation details?

 2- Apart from the server config file, and the libs folder (I have placed the JAR file of the project there), is there any place else that I have to mention or refer the custom object details?

3 - Also can you elaborate what is the difference between the credentials provided in the server/client config file  and the credentials provided in the credentials.properties file?

Please let me know if you need any further information.

Regards,
Ashish Sharma.






On Thu, Jun 9, 2016 at 11:47 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Hi Alexey

I reinstalled Ignite on C;\Ignite and I got through.


Regards.

On Thu, Jun 9, 2016 at 10:39 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Hi Alexey

I run into the attached error after I run the ignite.bat with reference to the server config file as mentioned in Load test examples.

Could you please advise on how to get around it?

On Thu, Jun 9, 2016 at 6:10 PM, Ashish Dutt Sharma <[hidden email]> wrote:
I decreased the JVM size and it worked. Thank you.

Regards.

On Thu, Jun 9, 2016 at 5:57 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey. 

I am now trying to run the load tests from the source package, After building from the source and editing relevant properties, I run into the following error after I run the 'cassandra-load-tests.bat' file.

Could you please take a look at the attachment and advise on how to resolve? Please let me know if you need any further information.

Regards,
Ashish Sharma,

On Wed, Jun 8, 2016 at 5:43 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
Hi, Ashish Sharma.

there I found such note;
----------------
Current implementation of org.apache.ignite.cache.store.cassandra.utils.datasource.DataSource doesn't implement Serializable,
 thus for distributed Ignite clusters, CassandraCacheStoreFactory could only be setup through Spring XML file, but not from code
---------------

I think this could be fixed in next releases.



On Wed, Jun 8, 2016 at 10:35 PM, ChickyDutt <[hidden email]> wrote:
Thank you Alexey.

Do you have an example where the CacheConfiguration store is configured using Java ?

Regards,
Ashish Sharma.

On Mon, May 23, 2016 at 3:28 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If you need tests - you need to download sources (https://ignite.apache.org/download.cgi#sources).
Also, today we released Ignite 1.6 it should be available on Maven now.

Hope this help.

On Mon, May 23, 2016 at 6:35 PM, ChickyDutt <[hidden email]> wrote:
Mentioned below are the complete logs

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite
/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed t
o import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA9
6OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration
 problem: Failed to import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions f
rom URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:250)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.ja
va:201)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.j
ava:186)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentRea
der.java:143)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReade
r.java:110)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:379)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [org/apach
e/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ignite/te
sts/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:244)
        ... 18 more
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
use it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 22 more
Failed to start grid: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabr
ic-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed to import bean defin
itions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
Press any key to continue . . .

On Mon, May 23, 2016 at 1:41 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML


View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML




View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5114.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML



View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5535.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML






Igor Rudyak Igor Rudyak
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

This post has NOT been accepted by the mailing list yet.
1) It looks you are trying to use ignite-remote-server-config.xml as is without any modifications. It will not work such a way. You should at least specify something meaningful for Cassandra contact points configuration, instead of using sample config:

<util:list id="contactPoints" value-type="java.lang.String">
    <value>cassandra-node-1.abc.com</value>
    <value>cassandra-node-2.abc.com</value>
</util:list>

2) According to logs screenshot from ingite.bat it looks like IGNITE_LIBS environment variable wasn't configured.

Regarding the questions (see the answers below in bold):

1 - Where do I provide the Cassandra keyspace and table creation details? >> You should do this in persistence descriptor. Here is the link to specification: https://apacheignite.readme.io/docs/base-concepts#persistencesettingsbean

 2- Apart from the server config file, and the libs folder (I have placed the JAR file of the project there), is there any place else that I have to mention or refer the custom object details? >> Custom java classes (and any 3rd party dependencies which they are referencing to) should be in client/server CLASSPATH. The easiest way to do this by adding them to libs folder or tuning IGNITE_LIBS environment variable.

3 - Also can you elaborate what is the difference between the credentials provided in the server/client config file  and the credentials provided in the credentials.properties file? >> credentials.properties file (as well as connection.properties) is only used by Cassandra LoadTests. Thus if you need to check how fast your Cassandra cluster is (bypassing any communication with Ignite) you need to specify Cassandra credentials (and contact points) in these files and launch LoadTests.
Denis Magda Denis Magda
Reply | Threaded
Open this post in threaded view
|

Re: Persistence using Cassandra

In reply to this post by ChickyDutt
Hi,

To bypass this kind of exceptions you need either to add a class of CodingScheme to the class path of all remote nodes or avoid deserialization on a remote side following these principles.

1. Set CacheConfiguraiton.setStoreKeepBinary flag to true. The the deserialization of your custom class won’t happen at the time an object is being placed or get from the store.

2. Get a reference to a cache using ignite.cache(“name”).withKeepBinary() and use such a reference for all cache related operations. 

3. Make sure that your CodingScheme class is neither Externalizable nor overrides witeObject/readObject methods providing custom serialization logic.

For more details please refer to binary format documentation page

Denis

On Jun 10, 2016, at 11:24 AM, ChickyDutt <[hidden email]> wrote:

More info pertaining to the questions in the previous mails. 

I get the below exception when I try to do a put into the server cache .

Exception in thread "main" org.apache.ignite.cache.CachePartialUpdateException: Failed to update keys (retry update if possible).: [12]
 at org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1464)
 at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.cacheException(IgniteCacheProxy.java:1972)
 at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1172)
 at CassandraTest.main(CassandraTest.java:39)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: class org.apache.ignite.internal.processors.cache.CachePartialUpdateCheckedException: Failed to update keys (retry update if possible).: [12]
 at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicSingleUpdateFuture.onResult(GridNearAtomicSingleUpdateFuture.java:224)
 at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.processNearAtomicUpdateResponse(GridDhtAtomicCache.java:2959)
 at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.access$700(GridDhtAtomicCache.java:129)
 at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$6.apply(GridDhtAtomicCache.java:266)
 at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$6.apply(GridDhtAtomicCache.java:264)
 at org.apache.ignite.internal.processors.cache.GridCacheIoManager.processMessage(GridCacheIoManager.java:622)
 at org.apache.ignite.internal.processors.cache.GridCacheIoManager.onMessage0(GridCacheIoManager.java:320)
 at org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:244)
 at org.apache.ignite.internal.processors.cache.GridCacheIoManager.access$000(GridCacheIoManager.java:81)
 at org.apache.ignite.internal.processors.cache.GridCacheIoManager$1.onMessage(GridCacheIoManager.java:203)
 at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1219)
 at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:847)
 at org.apache.ignite.internal.managers.communication.GridIoManager.access$1700(GridIoManager.java:105)
 at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:810)
 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)
 Suppressed: class org.apache.ignite.IgniteCheckedException: Failed to update keys on primary node.
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateResponse.addFailedKeys(GridNearAtomicUpdateResponse.java:369)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1713)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1484)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.processNearAtomicUpdateRequest(GridDhtAtomicCache.java:2940)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.access$600(GridDhtAtomicCache.java:129)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$5.apply(GridDhtAtomicCache.java:260)
  at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$5.apply(GridDhtAtomicCache.java:258)
  ... 12 more
  Suppressed: class org.apache.ignite.binary.BinaryInvalidTypeException: CodingScheme
   at org.apache.ignite.internal.binary.BinaryContext.descriptorForTypeId(BinaryContext.java:608)
   at org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1474)
   at org.apache.ignite.internal.binary.BinaryObjectImpl.deserializeValue(BinaryObjectImpl.java:572)
   at org.apache.ignite.internal.binary.BinaryObjectImpl.value(BinaryObjectImpl.java:131)
   at org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinary(CacheObjectContext.java:257)
   at org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinaryIfNeeded(CacheObjectContext.java:148)
   at org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinaryIfNeeded(CacheObjectContext.java:135)
   at org.apache.ignite.internal.processors.cache.GridCacheContext.unwrapBinaryIfNeeded(GridCacheContext.java:1732)
   at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.put(GridCacheStoreManagerAdapter.java:565)
   at org.apache.ignite.internal.processors.cache.GridCacheMapEntry.innerUpdate(GridCacheMapEntry.java:2358)
   at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateSingle(GridDhtAtomicCache.java:2246)
   at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1644)
   ... 17 more
  Caused by: java.lang.ClassNotFoundException: CodingScheme
   at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:348)
   at org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8250)
   at org.apache.ignite.internal.MarshallerContextAdapter.getClass(MarshallerContextAdapter.java:185)
   at org.apache.ignite.internal.binary.BinaryContext.descriptorForTypeId(BinaryContext.java:599)
   ... 28 more


Source code

public class CassandraTest {


public static void main(String[] args) throws Exception {


String cacheName = "cache1";

String configURL = "C:<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">Ignite<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">modules<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">cassandra<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">target<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">tests-package<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">settings<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">org<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">apache<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">ignite<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">tests<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">persistence<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">primitive<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">\\<a href="smb://Ignite//modules//cassandra//target//tests-package//settings//org//apache//ignite//tests//persistence//primitive//ignite-remote-client-config.xml" class="">ignite-remote-client-config.xml";

IgniteConfiguration cfg = new IgniteConfiguration();


// InitiateClient ic = new InitiateClient();
//cfg=ic.Initiate(cacheName, rootPath, cfg);

//Igniting cluster
Ignite ignite = Ignition.start(configURL);

// obtaining cache handle
IgniteCache<String, CodingScheme> testCache = ignite.getOrCreateCache(cacheName);


// Populate coding scheme object
CodingScheme cs = new CodingScheme();
cs.setCode("CS");
cs.setentryId("123");
cs.setTableName("CS");
cs.setValueDE("DE");

testCache.put(String.valueOf(12), cs);

}


}



On Fri, Jun 10, 2016 at 10:03 AM, Ashish Dutt Sharma <<a href="x-msg://11/user/SendEmail.jtp?type=node&amp;node=5568&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
Good morning Alexey

My use case is to load a object into the cache and then see it get inserted in Cassandra. In other words a simple read and write through implementation.

I am trying to insert a custom object in cache. I have both the server and client instances up and running. Request you to please help me understand the following

1 - Where do I provide the Cassandra keyspace and table creation details?

 2- Apart from the server config file, and the libs folder (I have placed the JAR file of the project there), is there any place else that I have to mention or refer the custom object details?

3 - Also can you elaborate what is the difference between the credentials provided in the server/client config file  and the credentials provided in the credentials.properties file?

Please let me know if you need any further information.

Regards,
Ashish Sharma.






On Thu, Jun 9, 2016 at 11:47 PM, Ashish Dutt Sharma <<a href="x-msg://11/user/SendEmail.jtp?type=node&amp;node=5568&amp;i=1" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
Hi Alexey

I reinstalled Ignite on C;\Ignite and I got through.


Regards.

On Thu, Jun 9, 2016 at 10:39 PM, Ashish Dutt Sharma <<a href="x-msg://11/user/SendEmail.jtp?type=node&amp;node=5568&amp;i=2" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
Hi Alexey

I run into the attached error after I run the ignite.bat with reference to the server config file as mentioned in Load test examples.

Could you please advise on how to get around it?

On Thu, Jun 9, 2016 at 6:10 PM, Ashish Dutt Sharma <<a href="x-msg://11/user/SendEmail.jtp?type=node&amp;node=5568&amp;i=3" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
I decreased the JVM size and it worked. Thank you.

Regards.

On Thu, Jun 9, 2016 at 5:57 PM, Ashish Dutt Sharma <<a href="x-msg://11/user/SendEmail.jtp?type=node&amp;node=5568&amp;i=4" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
Thank you Alexey. 

I am now trying to run the load tests from the source package, After building from the source and editing relevant properties, I run into the following error after I run the 'cassandra-load-tests.bat' file.

Could you please take a look at the attachment and advise on how to resolve? Please let me know if you need any further information.

Regards,
Ashish Sharma,

On Wed, Jun 8, 2016 at 5:43 PM, Alexey Kuznetsov [via Apache Ignite Users] <<a href="x-msg://11/user/SendEmail.jtp?type=node&amp;node=5568&amp;i=5" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
Hi, Ashish Sharma.

there I found such note;
----------------
Current implementation of org.apache.ignite.cache.store.cassandra.utils.datasource.DataSource doesn't implement Serializable,
 thus for distributed Ignite clusters, CassandraCacheStoreFactory could only be setup through Spring XML file, but not from code
---------------

I think this could be fixed in next releases.



On Wed, Jun 8, 2016 at 10:35 PM, ChickyDutt <[hidden email]> wrote:
Thank you Alexey.

Do you have an example where the CacheConfiguration store is configured using Java ?

Regards,
Ashish Sharma.

On Mon, May 23, 2016 at 3:28 PM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]> wrote:
If you need tests - you need to download sources (https://ignite.apache.org/download.cgi#sources).
Also, today we released Ignite 1.6 it should be available on Maven now.

Hope this help.

On Mon, May 23, 2016 at 6:35 PM, ChickyDutt <[hidden email]> wrote:
Mentioned below are the complete logs

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite
/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed t
o import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA9
6OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration
 problem: Failed to import bean definitions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions f
rom URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:250)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.ja
va:201)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.j
ava:186)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentRea
der.java:143)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReade
r.java:110)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:379)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [org/apach
e/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ignite/te
sts/cassandra/connection-settings.xml] cannot be opened because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocument
Reader.java:244)
        ... 18 more
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
use it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 22 more
Failed to start grid: Failed to instantiate Spring XML application context [springUrl=file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabr
ic-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/config/default-config.xml, err=Configuration problem: Failed to import bean defin
itions from URL location [classpath:org/apache/ignite/tests/cassandra/connection-settings.xml]
Offending resource: URL [file:/C:/Users/D-UA96OU/Desktop/Ignite/apache-ignite-fabric-1.6.0-SNAPSHOT-bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin
/config/default-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML docume
nt from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested exception is java.io.FileNotFoundException: cla
ss path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened because it does not exist]
Press any key to continue . . .

On Mon, May 23, 2016 at 1:41 PM, Ashish Dutt Sharma <[hidden email]> wrote:
Thank you Alexey.

I am unable to locate the test resources like the ignite configuration files and the persistent descriptors in the package. Could you please help me find them?

as the latest nightly version and then explored the ignite-Cassandra module in the lib folder.


When I try to start a node with the configuration file present on the link https://github.com/irudyak/ignite/wiki/Examples

I run into the below error..

nested exception is org.springframework.beans.factory.BeanDefinitionS
eException: IOException parsing XML document from class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested ex
tion is java.io.FileNotFoundException: class path resource [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be opened beca
 it does not exist]
        at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)

I understand the problem lies in finding the below resources in the ignite configuration file.

<!-- Cassandra connection settings -->
    <import resource="classpath:org/apache/ignite/tests/cassandra/connection-settings.xml" />
    <!-- Persistence settings for 'cache1' -->
    <bean id="cache1_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-1.xml" />
    </bean>
    <!-- Persistence settings for 'cache2' -->
    <bean id="cache2_persistence_settings" class="org.apache.ignite.cache.store.cassandra.utils.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="org.springframework.core.io.Resource" value="classpath:org/apache/ignite/tests/persistence/blob/persistence-settings-3.xml" />
    </bean>


Could you please help me fill the gap by explaining if there is another module that I should be working with or should there be any updates made? Please let me know if you need any further information.

Regards.


On Fri, May 20, 2016 at 10:19 AM, Alexey Kuznetsov [via Apache Ignite Users] <[hidden email]>wrote:
If release vote will be successful then ignite-1.6 will be released next week.
If not then it may take some time to fix issues and re-vote.

Documentation may be added later, but for now you may use unofficial docs
 from ignite-cassandra module contributor see https://github.com/irudyak/ignite/wiki

Also, you may use latest nightly build and do not wait for release.

Hope this help.

On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]> wrote:

And as conveyed earlier, you expect Ignite 1.6 to be released next week with the documentation for the if Cassandra module. Please correct me if I am wrong.

On 20 May 2016 9:57 a.m., "Alexey Kuznetsov [via Apache Ignite Users]" <[hidden email]> wrote:
Hi Chicky D.!

About you first question about example - take a look for org.apache.ignite.tests.IgnitePersistentStoreTest - it use some xml configs.

>> In addition to my previous query, Could you also help me understand if the patch file available on the below link is likely to undergo any further changes until the final release?

No, this issue is merged into ignite-1.6  and issue is closed (sorry, I forgot to do it before).

But you may open new issues in JIRA if you want.

-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5047.html
To start a new topic under Apache Ignite Users, email [hidden email] 
To unsubscribe from Apache Ignite Users, click here.
NAML



-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5049.html
To start a new topic under Apache Ignite Users, email [hidden email] 
To unsubscribe from Apache Ignite Users, click here.
NAML





-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5114.html
To start a new topic under Apache Ignite Users, email [hidden email] 
To unsubscribe from Apache Ignite Users, click here.
NAML




-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5535.html
To start a new topic under Apache Ignite Users, email <a href="x-msg://11/user/SendEmail.jtp?type=node&amp;node=5568&amp;i=6" target="_top" rel="nofollow" link="external" class="">[hidden email] 
To unsubscribe from Apache Ignite Users, click here.
NAML








View this message in context: Re: Persistence using Cassandra
Sent from the Apache Ignite Users mailing list archive at Nabble.com.