Hi Pavel,

I would also be grateful, if you could send me the solution for C#

Regards,
Charlin


On Mon, 9 Jan 2023 at 18:12, Charlin S <[email protected]> wrote:

> Hi Pavel,
> I am using the same jar file but no luck for me. I am missing something
> related to classpath of this jar file.
>
> Regards,
> Charlin
>
>
> On Mon, 9 Jan 2023 at 17:49, Pavel Tupitsyn <[email protected]> wrote:
>
>> You can find Cassandra jars inside the full distribution [1] at
>>
>> apache-ignite-2.10.0-bin.zip/apache-ignite-2.10.0-bin/libs/optional/ignite-cassandra-store
>>
>> [1] https://ignite.apache.org/download.cgi
>>
>> On Mon, Jan 9, 2023 at 2:01 PM Charlin S <[email protected]> wrote:
>>
>>> Hi Pavel,
>>> Where can I find the Ignite cassandra jar file? Could you please share.
>>> Note: I am using Ignite 2.10 now.
>>>
>>> Regards,
>>> Charlin
>>>
>>>
>>> On Mon, 9 Jan 2023 at 16:34, Charlin S <[email protected]> wrote:
>>>
>>>> Hi Pavel,
>>>> Thank you for your response.
>>>> I have placed the ignite-cassandra-store
>>>> & ignite-cassandra-serializers(which is available in optional) folder
>>>> under /home/soft/apache-ignite-2.10.0-bin/libs.
>>>> and  classpath has been set as by command export
>>>> CLASSPATH="/home/soft/apache-ignite-2.10.0-bin/libs".
>>>>
>>>> Regards,
>>>> Charlin
>>>>
>>>>
>>>> On Mon, 9 Jan 2023 at 15:53, Pavel Tupitsyn <[email protected]>
>>>> wrote:
>>>>
>>>>> Check inner exceptions, probably Cassandra jars are missing
>>>>>
>>>>> On Mon, Jan 9, 2023 at 10:01 AM Charlin S <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi Pavel,
>>>>>> Thank you for your reply.
>>>>>> I have tried the following options.
>>>>>> 1. Moved connection-settings.xml inside the Ignite spring xml
>>>>>> configuration file.
>>>>>> 2. added classpath by this command export
>>>>>> CLASSPATH="/home/soft/apache-ignite-2.10.0-bin/libs".
>>>>>> but still same error class org.apache.ignite.IgniteException: Failed
>>>>>> to instantiate Spring XML application context (make sure all classes used
>>>>>> in Spring configuration are present at CLASSPATH)
>>>>>> [springUrl=file:/home/soft/apache-ignite-2.10.0-bin/config/ignite-config-cassandra.xml]
>>>>>>
>>>>>> Regards,
>>>>>> Charlin
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, 9 Jan 2023 at 11:58, Pavel Tupitsyn <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Ok, it seems this requires quite a bit of configuration, we can't
>>>>>>> just use those linked configs directly.
>>>>>>> 'import resource="classpath: ' looks into Java classpath, so this
>>>>>>> would depend on your setup.
>>>>>>>
>>>>>>> You can replace <import> with the contents
>>>>>>> of connection-settings.xml.
>>>>>>> But there are other things to fix. You'll need Cassandra jars in
>>>>>>> IgniteConfiguration.JvmClasspath, etc.
>>>>>>>
>>>>>>> Unfortunately, I don't have the capacity to develop a fully working
>>>>>>> sample right now. Please try to follow the docs, source code, and error
>>>>>>> messages.
>>>>>>>
>>>>>>> On Fri, Jan 6, 2023 at 6:08 AM Charlin S <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Pavel,
>>>>>>>> I have specified absolute path(/org/apache/ignite/tests/
>>>>>>>> cassandra/connection-settings.xml) in the config file but in
>>>>>>>> exception it's showing only org/apache/ignite/tests/
>>>>>>>> cassandra/connection-settings.xml.
>>>>>>>>
>>>>>>>> Verified file content using cat command and file path.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Charlin
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, 5 Jan 2023 at 20:02, Pavel Tupitsyn <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> > org/apache/ignite/tests/cassandra/connection-settings.xml cannot
>>>>>>>>> be opened because it does not exist
>>>>>>>>>
>>>>>>>>> Try specifying an absolute path to this xml file. Looks like the
>>>>>>>>> relative path is not correct.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Jan 5, 2023 at 1:12 PM Charlin S <[email protected]>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Hi All,
>>>>>>>>>> Ignite server node not starting with the following configuration(
>>>>>>>>>> all configuration files attached)
>>>>>>>>>> 1. created org/apache/ignite/tests/cassandra/ and
>>>>>>>>>> placed connection-settings.xml
>>>>>>>>>> 2. created /org/apache/ignite/tests/cassandra/persistence and
>>>>>>>>>> placed persistence-settings-1.xml
>>>>>>>>>> 3. placed Ignite server bean xml (ignite-config-cassandra) under
>>>>>>>>>> /home/soft/apache-ignite-2.10.0-bin/config
>>>>>>>>>> 4. starting Ignite by command nohup
>>>>>>>>>> /home/soft/apache-ignite-2.10.0-bin/bin/ignite.sh
>>>>>>>>>> /home/soft/apache-ignite-2.10.0-bin/config/ignite-config-cassandra.xml
>>>>>>>>>>  &
>>>>>>>>>>
>>>>>>>>>> below error while starting server node
>>>>>>>>>> Caused by:
>>>>>>>>>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>>>>>>>>>> Configuration problem: Failed to import bean definitions from URL 
>>>>>>>>>> location
>>>>>>>>>> [classpath:/org/apache/ignite/tests/cassandra/connection-settings.xml]
>>>>>>>>>> Offending resource: URL
>>>>>>>>>> [file:/home/soft/apache-ignite-2.10.0-bin/config/ignite-config-cassandra.xml];
>>>>>>>>>> nested exception is
>>>>>>>>>> org.springframework.beans.factory.BeanDefinitionStoreException: 
>>>>>>>>>> IOException
>>>>>>>>>> parsing XML document from class path resource
>>>>>>>>>> [org/apache/ignite/tests/cassandra/connection-settings.xml]; nested
>>>>>>>>>> exception is java.io.FileNotFoundException: class path resource
>>>>>>>>>> [org/apache/ignite/tests/cassandra/connection-settings.xml] cannot be
>>>>>>>>>> opened because it does not exist
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> Charlin
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, 3 Jan 2023 at 21:52, Pavel Tupitsyn <[email protected]>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Leave it as is. You can grab the settings file at
>>>>>>>>>>>
>>>>>>>>>>> https://github.com/apache/ignite/blob/231ead01d186c75ebb48f1d19e5a95fc9c459202/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/primitive/persistence-settings-1.xml
>>>>>>>>>>>
>>>>>>>>>>> There is nothing C# specific at all in this example, just start
>>>>>>>>>>> the node with the config file and you should be set.
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Jan 3, 2023 at 6:08 PM Charlin S <[email protected]>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Pavel,
>>>>>>>>>>>> Thanks for updating, how does the support below xml config
>>>>>>>>>>>> works in C#, or do I need to skip this part for cassandra 
>>>>>>>>>>>> persistence
>>>>>>>>>>>> storage implementation in c#.
>>>>>>>>>>>>
>>>>>>>>>>>> <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>
>>>>>>>>>>>>
>>>>>>>>>>>> Regards,
>>>>>>>>>>>> Charlin
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, 3 Jan 2023 at 21:07, Pavel Tupitsyn <
>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Charlin, happy new year!
>>>>>>>>>>>>>
>>>>>>>>>>>>> Those examples are mostly XML configs, you can use them as is
>>>>>>>>>>>>> in C#, something like:
>>>>>>>>>>>>> var cfg = new IgniteConfiguration { SpringConfigUrl =
>>>>>>>>>>>>> "ignite-cassandra.xml" };
>>>>>>>>>>>>> Ignition.Start(cfg);
>>>>>>>>>>>>>
>>>>>>>>>>>>> Let me know if you need more details.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Pavel
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Tue, Jan 3, 2023 at 1:50 PM Charlin S <
>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi All,
>>>>>>>>>>>>>> Happy new year to all !
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://ignite.apache.org/docs/latest/extensions-and-integrations/cassandra/usage-examples
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> As per documentation, we see examples for support of data
>>>>>>>>>>>>>> types in Java. we have not seen support for dotnet data types.
>>>>>>>>>>>>>> Could you please advise on this for C# implementation?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>> Charlin
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>

Reply via email to