ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Kuznetsov <akuznet...@gridgain.com>
Subject Re: Persistence using Cassandra
Date Wed, 08 Jun 2016 15:59:13 GMT
Hi, Ashish Sharma.

Take a look at docs: https://apacheignite.readme.io/docs/overview
As far as I see in docs
https://apacheignite.readme.io/v1.6/docs/base-concepts
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 <ash.dutt.sharma@gmail.com>
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]
> <http:///user/SendEmail.jtp?type=node&node=5534&i=0>> 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]
>> <http:///user/SendEmail.jtp?type=node&node=5114&i=0>> 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]
>>> <http:///user/SendEmail.jtp?type=node&node=5097&i=0>> 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?
>>>>
>>>> I downloaded apache-ignite-fabric-1.6.0-SNAPSHOT-bin.zip
>>>> <https://builds.apache.org/view/H-L/view/Ignite/job/Ignite-nightly/lastSuccessfulBuild/artifact/target/bin/apache-ignite-fabric-1.6.0-SNAPSHOT-bin.zip>
from
>>>> the link
>>>> https://builds.apache.org/view/H-L/view/Ignite/job/Ignite-nightly/lastSuccessfulBuild/
>>>> as the latest nightly version and then explored the ignite-Cassandra
>>>> module in the lib folder.
>>>>
>>>> I then downloaded the ignite-cassandra-1.6.0-SNAPSHOT.jar
>>>> <https://builds.apache.org/view/H-L/view/Ignite/job/Ignite-nightly/lastSuccessfulBuild/org.apache.ignite$ignite-cassandra/artifact/org.apache.ignite/ignite-cassandra/1.6.0-SNAPSHOT/ignite-cassandra-1.6.0-SNAPSHOT.jar>
module
>>>> from the link
>>>> https://builds.apache.org/view/H-L/view/Ignite/job/Ignite-nightly/lastSuccessfulBuild/org.apache.ignite$ignite-cassandra/
>>>> but still could not find any test resources in it.
>>>>
>>>> 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]
>>>> <http:///user/SendEmail.jtp?type=node&node=5097&i=1>> 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.
>>>>>  https://ignite.apache.org/community/contribute.html#nightly-builds
>>>>>
>>>>> Hope this help.
>>>>>
>>>>> On Fri, May 20, 2016 at 2:51 PM, ChickyDutt <[hidden email]
>>>>> <http:///user/SendEmail.jtp?type=node&node=5049&i=0>>
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]
>>>>>> <http:///user/SendEmail.jtp?type=node&node=5048&i=0>>
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?
>>>>>>> >> https://issues.apache.org/jira/browse/IGNITE-1371
>>>>>>>
>>>>>>> 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]
>>>>>>> <http:///user/SendEmail.jtp?type=node&node=5048&i=1>
>>>>>>> To unsubscribe from Apache Ignite Users, click here.
>>>>>>> NAML
>>>>>>> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>>>>>
>>>>>>
>>>>>> ------------------------------
>>>>>> View this message in context: Re: Persistence using Cassandra
>>>>>> <http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5048.html>
>>>>>> Sent from the Apache Ignite Users mailing list archive
>>>>>> <http://apache-ignite-users.70518.x6.nabble.com/> 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]
>>>>> <http:///user/SendEmail.jtp?type=node&node=5097&i=2>
>>>>> To unsubscribe from Apache Ignite Users, click here.
>>>>> NAML
>>>>> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>>>
>>>>
>>>>
>>>
>>> ------------------------------
>>> View this message in context: Re: Persistence using Cassandra
>>> <http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5097.html>
>>> Sent from the Apache Ignite Users mailing list archive
>>> <http://apache-ignite-users.70518.x6.nabble.com/> 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]
>> <http:///user/SendEmail.jtp?type=node&node=5534&i=1>
>> To unsubscribe from Apache Ignite Users, click here.
>> NAML
>> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
> ------------------------------
> View this message in context: Re: Persistence using Cassandra
> <http://apache-ignite-users.70518.x6.nabble.com/Persistence-using-Cassandra-tp5031p5534.html>
> Sent from the Apache Ignite Users mailing list archive
> <http://apache-ignite-users.70518.x6.nabble.com/> at Nabble.com.
>



-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com

Mime
View raw message