Hello Gianluca, Here I have attached a pom you can check.
I think It may be happening because of other dependencies of spark and ignite-spark. On Wed, Mar 1, 2023 at 7:00 PM Gianluca Bonetti <gianluca.bone...@gmail.com> wrote: > Hello > > I only use: > > <dependency> > <groupId>org.apache.ignite</groupId> > <artifactId>ignite-core</artifactId> > <version>2.14.0</version> > </dependency> > > Which brings in what is required and actually does NOT bring in H2, > because it's not required any more. > > I guess you should fix your pom.xml, which I have no information about, as > you didn't share. > > Cheers > Gianluca > > On Wed, 1 Mar 2023 at 13:22, Abhishek Ubhe <abhishekubhe0...@gmail.com> > wrote: > >> Okay, Can you suggest any changes in maven dependencies? >> >> On Wed, Mar 1, 2023 at 2:07 PM Gianluca Bonetti < >> gianluca.bone...@gmail.com> wrote: >> >>> Hello >>> >>> It's very strange that this method does not exist in the H2 library. >>> Can you please check you're not including the H2 library twice? >>> For what I know, Ignite works with h2-1.4.197.jar which is included in >>> the last bundle. >>> I think you are including a newer version instead, or aside. >>> >>> Cheers >>> Gianluca >>> >>> On Wed, 1 Mar 2023 at 06:43, Abhishek Ubhe <abhishekubhe0...@gmail.com> >>> wrote: >>> >>>> Hello, >>>> >>>> I am unable to start ignite server node with default configurations. >>>> Getting below error >>>> >>>> Exception in thread "main" java.lang.NoSuchMethodError: >>>> org.apache.ignite.internal.processors.cache.persistence.tree.io.PageIO.registerH2(Lorg/apache/ignite/internal/processors/cache/persistence/tree/io/IOVersions;Lorg/apache/ignite/internal/processors/cache/persistence/tree/io/IOVersions;)V >>>> >>>> *stacktrace :* at >>>> org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.<clinit>(IgniteH2Indexing.java:197) >>>> at java.lang.Class.forName0(Native Method) >>>> at java.lang.Class.forName(Class.java:264) >>>> at >>>> org.apache.ignite.internal.util.IgniteUtils.inClassPath(IgniteUtils.java:1753) >>>> at >>>> org.apache.ignite.internal.IgniteComponentType.inClassPath(IgniteComponentType.java:172) >>>> at >>>> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1999) >>>> at >>>> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1758) >>>> at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1143) >>>> at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:663) >>>> at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589) >>>> at org.apache.ignite.Ignition.start(Ignition.java:328) >>>> >>>> >>>> Please help with this and let me know why this error is getting and how >>>> I can avoid it in future. >>>> My API : >>>> IgniteConfiguration cfg = new IgniteConfiguration(); >>>> cfg.setClientMode(false); >>>> >>>> cfg.setWorkDirectory("/home/developers/apache_ignite_home/apache-ignite-2.14.0-bin/work"); >>>> Ignite ignite = Ignition.start(cfg); >>>> >>>> version using : 2.14.0 >>>> -- >>>> *Regards,* >>>> *Abhishek Ubhe* >>>> >>>> >> >> -- >> *Regards,* >> *Abhishek Ubhe* >> >> -- *Regards,* *Abhishek Ubhe*
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com</groupId> <artifactId>clouds-ignitesparksql</artifactId> <version>0.0.7</version> <packaging>jar</packaging> <name>clouds-ignitesparksql</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <clouds-core.version>1.10.94</clouds-core.version> </properties> <repositories> <repository> <id>MavenCentral</id> <url>https://repo.maven.apache.org/maven2/</url> </repository> <repository> <id>central</id> <url>http://maven.clouzerindia.com:8081/artifactory/plugins-release-local/</url> </repository> </repositories> <distributionManagement> <repository> <id>central</id> <name>nodedev-releases</name> <url>http://maven.clouzerindia.com:8081/artifactory/plugins-release-local/</url> </repository> </distributionManagement> <dependencies> <dependency> <groupId>com.clouds</groupId> <artifactId>clouds-core</artifactId> <version>${clouds-core.version}</version> <exclusions> <exclusion> <groupId>com.clouds</groupId> <artifactId>clouds-ignite-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com</groupId> <artifactId>clouds-ignite-cluster</artifactId> <version>IGN_0.2.0</version> <exclusions> <exclusion> <groupId>org.apache.ignite</groupId> <artifactId>ignite-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.ignite</groupId> <artifactId>ignite-core</artifactId> <version>2.14.0</version> </dependency> <!-- https://mvnrepository.com/artifact/org.gridgain/ignite-spark --> <dependency> <groupId>org.apache.ignite</groupId> <artifactId>ignite-spark</artifactId> <version>2.4.0</version> <exclusions> <exclusion> <groupId>org.apache.ignite</groupId> <artifactId>ignite-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_2.12</artifactId> <version>3.1.1</version> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql_2.12</artifactId> <version>3.1.1</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project>