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 <charli...@hotelhub.com> 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 <ptupit...@apache.org> 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 <charli...@hotelhub.com> 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 <ptupit...@apache.org> >>> 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 <charli...@hotelhub.com> >>>> 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 <ptupit...@apache.org> >>>>> 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 <charli...@hotelhub.com> >>>>>> 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 >>>>>>> >>>>>>>