Re: Unable to start Ignite server node through java API

2023-03-01 Thread Abhishek Ubhe
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 
wrote:

> Hello
>
> I only use:
>
>   
> org.apache.ignite
> ignite-core
> 2.14.0
>   
>
> 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 
> 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 
>>> 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.(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*
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;>
  4.0.0

  com
  clouds-ignitesparksql
  0.0.7
  jar

  clouds-ignitesparksql
  http://maven.apache.org

  
  
  
		UTF-8
		1.10.94

	

	
		
			MavenCentral
			https://repo.maven.apache.org/maven2/
		

		
			central
			http://maven.clouzerindia.com:8081/artifactory/plugins-release-local/
		
	


	
		
			central
			nodedev-releases
			http://maven.clouzerindia.com:8081/artifactory/plugins-release-local/
		
	

	
   
			com.clouds
			clouds-core
			${clouds-core.version}
			

	com.clouds
			clouds-ignite-core

			
		
		
		 
		com
		  clouds-ignite-cluster
		  IGN_0.2.0
		  

	org.apache.ignite
			ignite-core

			
		  
		  
		  
	org.apache.ignite
	ignite-core
	2.14.0
	
		  
		  
			
		org.apache.ignite
ignite-spark
2.4.0


	org.apache.ignite
			ignite-core

			
			
		  
		  
		  
  org.apache.spark
   spark-core_2.12
   3.1.1
  			
  			
 			 
org.apache.spark
   spark-sql_2.12
3.1.1
  			
  			

  junit
  junit
  3.8.1
  test


  



Re: Unable to start Ignite server node through java API

2023-03-01 Thread Gianluca Bonetti
Hello

I only use:

  
org.apache.ignite
ignite-core
2.14.0
  

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 
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 
>> 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.(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*
>
>


Re: Unable to start Ignite server node through java API

2023-03-01 Thread Abhishek Ubhe
Okay, Can you suggest any changes in maven dependencies?

On Wed, Mar 1, 2023 at 2:07 PM Gianluca Bonetti 
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 
> 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.(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*


Re: Unable to start Ignite server node through java API

2023-03-01 Thread Gianluca Bonetti
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 
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.(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*
>
>


Unable to start Ignite server node through java API

2023-02-28 Thread Abhishek Ubhe
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.(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*