You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by the_palakkaran <ji...@suntecsbs.com> on 2018/05/22 18:22:25 UTC

Dependencies required to use ignite in embedded mode?

Hi,

Can someone help me with the dependencies needed for starting ignite in
embedded mode ? (Oracle DB).

I miss something so that my ignition does not start and hence cache is not
getting loaded, but no error thrown from Ignite.

Please help.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

RE: Dependencies required to use ignite in embedded mode?

Posted by Stanislav Lukyanov <st...@gmail.com>.
As you can see in the log, there is an exception
------
2018-05-23 00:41:58,863 ERROR [org.apache.ignite.logger.log4j.Log4JLogger]
Got exception while starting (will rollback startup routine).
class org.apache.ignite.IgniteException: Failed to load class names
properties file packaged with ignite binaries
[file=META-INF/classnames.properties,
ldr=com.suntecgroup.tbms.container.deploy.loader.RuntimeClassLoader@399c656d] 
------

ignite-core.jar contains a file META-INF/classnames.properties.
It looks like your custom class loader (com.suntecgroup.tbms.container.deploy.loader.RuntimeClassLoader)
fails to find this resource.
Check your class loader code and configuration, the issue should be there.

Stan

From: the_palakkaran
Sent: 22 мая 2018 г. 22:17
To: user@ignite.apache.org
Subject: RE: Dependencies required to use ignite in embedded mode?

@Stanislav

*This is my configuration:
*
    IgniteConfiguration igniteConfig = new IgniteConfiguration();
    DataStorageConfiguration dataStorageCfg = new
DataStorageConfiguration();
    DataRegionConfiguration dataRegionCfg = new DataRegionConfiguration();
    igniteConfig.setIgniteInstanceName("ignite");
    igniteConfig.setPeerClassLoadingEnabled(true);
    TcpDiscoverySpi spi = new TcpDiscoverySpi();
    TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryVmIpFinder();
    String hosts[] = {"127.0.0.1"};
    ipFinder.setAddresses(Arrays.asList(hosts));
    spi.setIpFinder(ipFinder);
    igniteConfig.setDiscoverySpi(spi);
    dataRegionCfg.setName("CacheDataRegion");
    dataRegionCfg.setInitialSize(2L * 1024 * 1024 * 1024);
    dataRegionCfg.setMaxSize(10L*1024*1024*1024);
    dataRegionCfg.setPersistenceEnabled(true);
    dataStorageCfg.setDataRegionConfigurations(dataRegionCfg);
    processingAttributesCacheConfig = new
CacheConfiguration<>("processingAttributesCache");
   
processingAttributesCacheConfig.setIndexedTypes(ProcessingAttributesKey.class, 
    ProcessingAttributes.class);
    processingAttributesCacheConfig.setReadThrough(true);
    processingAttributesCacheConfig.setAtomicityMode(TRANSACTIONAL);
    processingAttributesCacheConfig.setCacheMode(CacheMode.PARTITIONED);
    ProcessingAttributesFactory processingAttributesFactory = new
ProcessingAttributesFactory();
    igniteConfig.setDataStorageConfiguration(dataStorageCfg);
    igniteConfig.setCacheConfiguration(processingAttributesCacheConfig);
    IgniteLogger log = null;
	try {
		log = new Log4JLogger();
	} catch (Exception e) {
	}
    igniteConfig.setGridLogger(log);  
    ignite = Ignition.start(igniteConfig);
    ignite.active(true);


*And here's the log :*

2018-05-23 00:41:58,638 INFO  [org.apache.ignite.logger.log4j.Log4JLogger] 

>>>    __________  ________________  
>>>   /  _/ ___/ |/ /  _/_  __/ __/  
>>>  _/ // (7 7    // /  / / / _/    
>>> /___/\___/_/|_/___/ /_/ /___/   
>>> 
>>> ver. 2.3.0#20171028-sha1:8add7fd5
>>> 2017 Copyright(C) Apache Software Foundation
>>> 
>>> Ignite documentation: http://ignite.apache.org

2018-05-23 00:41:58,638 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
Config URL: n/a
2018-05-23 00:41:58,638 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
Daemon mode: off
2018-05-23 00:41:58,639 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
OS: Linux 3.8.13-68.3.4.el6uek.x86_64 amd64
2018-05-23 00:41:58,639 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
OS user: hsbc
2018-05-23 00:41:58,639 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
PID: 36975
2018-05-23 00:41:58,639 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
Language runtime: Java Platform API Specification ver. 1.8
2018-05-23 00:41:58,640 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
VM information: Java(TM) SE Runtime Environment 1.8.0_51-b16 Oracle
Corporation Java HotSpot(TM) 64-Bit Server VM 25.51-b03
2018-05-23 00:41:58,640 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
VM total memory: 10.0GB
2018-05-23 00:41:58,640 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
Remote Management [restart: off, REST: on, JMX (remote: off)]
2018-05-23 00:41:58,672 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
IGNITE_HOME=/home/hsbc/HSBC_RCM_DEV_PC/Instance1
2018-05-23 00:41:58,672 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
VM arguments: [-Xms2G, -Xmx10G, -Xss1024k, -XX:PermSize=1500M,
-XX:MaxPermSize=1800M, -XX:NewSize=209715K, -XX:MaxNewSize=209715K,
-XX:SurvivorRatio=8, -XX:MaxTenuringThreshold=6, -XX:+UseParallelOldGC,
-XX:ParallelCMSThreads=2, -XX:ParallelGCThreads=6,
-XX:-UseAdaptiveSizePolicy, -XX:+CMSClassUnloadingEnabled,
-XX:+UseStringCache, -XX:+OptimizeStringConcat, -XX:+UseFastAccessorMethods,
-XX:+AggressiveOpts, -Djava.net.preferIPv4Stack=true,
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl,
-Dcom.atomikos.icatch.no_file=true,
-Dcom.atomikos.icatch.service=com.atomikos.icatch.standalone.UserTransactionServiceFactory,
-Djavax.net.ssl.trustStore=/home/Final_8AG_PC/Instance1/pot/web/ecp_sscert/pctruststore,
-Djavax.net.ssl.trustStorePassword=suntec,
-Doracle.jdbc.J2EE13Compliant=true, -Dbind.address=127.0.0.1, -Xdebug,
-Xrunjdwp:server=y,transport=dt_socket,address=8087,suspend=n]
2018-05-23 00:41:58,673 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
System cache's DataRegion size is configured to 40 MB. Use
DataStorageConfiguration.systemCacheMemorySize property to change the
setting.
2018-05-23 00:41:58,673 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
Configured caches [in 'sysMemPlc' dataRegion: ['ignite-sys-cache'], in
'CacheDataRegion' dataRegion: ['processingAttributesCache']
2018-05-23 00:41:58,673 WARN  [org.apache.ignite.logger.log4j.Log4JLogger]
Peer class loading is enabled (disable it in production for performance and
deployment consistency reasons)
2018-05-23 00:41:58,777 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
3-rd party licenses can be found at:
/home/hsbc/HSBC_RCM_DEV_PC/Instance1/libs/licenses
2018-05-23 00:41:58,863 ERROR [org.apache.ignite.logger.log4j.Log4JLogger]
Got exception while starting (will rollback startup routine).
class org.apache.ignite.IgniteException: Failed to load class names
properties file packaged with ignite binaries
[file=META-INF/classnames.properties,
ldr=com.suntecgroup.tbms.container.deploy.loader.RuntimeClassLoader@399c656d]
	at
org.apache.ignite.internal.MarshallerContextImpl.<init>(MarshallerContextImpl.java:120)
	at
org.apache.ignite.internal.GridKernalContextImpl.<init>(GridKernalContextImpl.java:463)
	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:847)
	at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1909)
	at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1652)
	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1080)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:600)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:525)
	at org.apache.ignite.Ignition.start(Ignition.java:322)
	at
com.suntecgroup.tbms.tpe.caching.config.IgniteConfig.igniteInstance(IgniteConfig.java:2123)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:166)
	at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:586)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
	at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
	at
com.suntecgroup.tbms.tpe.caching.controller.IgniteController.loadCache(IgniteController.java:428)
	at
com.suntecgroup.tbms.tpe.core.server.ServerManager.init(ServerManager.java:3663)
	at
com.suntecgroup.tbms.container.core.ServiceContainerCommandDespatcher.run(ServiceContainerCommandDespatcher.java:46)
2018-05-23 00:41:58,865 WARN  [org.apache.ignite.logger.log4j.Log4JLogger]
Attempt to stop starting grid. This operation cannot be guaranteed to be
successful.
2018-05-23 00:42:05,651 WARN  [org.jgroups.protocols.TP]
192.168.61.24:7700:1331-61896: no physical address for
573b8b39-a70d-e5fc-eb60-5436bd8e37a9, dropping message



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


RE: Dependencies required to use ignite in embedded mode?

Posted by the_palakkaran <ji...@suntecsbs.com>.
@Stanislav

*This is my configuration:
*
    IgniteConfiguration igniteConfig = new IgniteConfiguration();
    DataStorageConfiguration dataStorageCfg = new
DataStorageConfiguration();
    DataRegionConfiguration dataRegionCfg = new DataRegionConfiguration();
    igniteConfig.setIgniteInstanceName("ignite");
    igniteConfig.setPeerClassLoadingEnabled(true);
    TcpDiscoverySpi spi = new TcpDiscoverySpi();
    TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryVmIpFinder();
    String hosts[] = {"127.0.0.1"};
    ipFinder.setAddresses(Arrays.asList(hosts));
    spi.setIpFinder(ipFinder);
    igniteConfig.setDiscoverySpi(spi);
    dataRegionCfg.setName("CacheDataRegion");
    dataRegionCfg.setInitialSize(2L * 1024 * 1024 * 1024);
    dataRegionCfg.setMaxSize(10L*1024*1024*1024);
    dataRegionCfg.setPersistenceEnabled(true);
    dataStorageCfg.setDataRegionConfigurations(dataRegionCfg);
    processingAttributesCacheConfig = new
CacheConfiguration<>("processingAttributesCache");
   
processingAttributesCacheConfig.setIndexedTypes(ProcessingAttributesKey.class, 
    ProcessingAttributes.class);
    processingAttributesCacheConfig.setReadThrough(true);
    processingAttributesCacheConfig.setAtomicityMode(TRANSACTIONAL);
    processingAttributesCacheConfig.setCacheMode(CacheMode.PARTITIONED);
    ProcessingAttributesFactory processingAttributesFactory = new
ProcessingAttributesFactory();
    igniteConfig.setDataStorageConfiguration(dataStorageCfg);
    igniteConfig.setCacheConfiguration(processingAttributesCacheConfig);
    IgniteLogger log = null;
	try {
		log = new Log4JLogger();
	} catch (Exception e) {
	}
    igniteConfig.setGridLogger(log);  
    ignite = Ignition.start(igniteConfig);
    ignite.active(true);


*And here's the log :*

2018-05-23 00:41:58,638 INFO  [org.apache.ignite.logger.log4j.Log4JLogger] 

>>>    __________  ________________  
>>>   /  _/ ___/ |/ /  _/_  __/ __/  
>>>  _/ // (7 7    // /  / / / _/    
>>> /___/\___/_/|_/___/ /_/ /___/   
>>> 
>>> ver. 2.3.0#20171028-sha1:8add7fd5
>>> 2017 Copyright(C) Apache Software Foundation
>>> 
>>> Ignite documentation: http://ignite.apache.org

2018-05-23 00:41:58,638 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
Config URL: n/a
2018-05-23 00:41:58,638 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
Daemon mode: off
2018-05-23 00:41:58,639 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
OS: Linux 3.8.13-68.3.4.el6uek.x86_64 amd64
2018-05-23 00:41:58,639 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
OS user: hsbc
2018-05-23 00:41:58,639 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
PID: 36975
2018-05-23 00:41:58,639 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
Language runtime: Java Platform API Specification ver. 1.8
2018-05-23 00:41:58,640 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
VM information: Java(TM) SE Runtime Environment 1.8.0_51-b16 Oracle
Corporation Java HotSpot(TM) 64-Bit Server VM 25.51-b03
2018-05-23 00:41:58,640 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
VM total memory: 10.0GB
2018-05-23 00:41:58,640 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
Remote Management [restart: off, REST: on, JMX (remote: off)]
2018-05-23 00:41:58,672 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
IGNITE_HOME=/home/hsbc/HSBC_RCM_DEV_PC/Instance1
2018-05-23 00:41:58,672 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
VM arguments: [-Xms2G, -Xmx10G, -Xss1024k, -XX:PermSize=1500M,
-XX:MaxPermSize=1800M, -XX:NewSize=209715K, -XX:MaxNewSize=209715K,
-XX:SurvivorRatio=8, -XX:MaxTenuringThreshold=6, -XX:+UseParallelOldGC,
-XX:ParallelCMSThreads=2, -XX:ParallelGCThreads=6,
-XX:-UseAdaptiveSizePolicy, -XX:+CMSClassUnloadingEnabled,
-XX:+UseStringCache, -XX:+OptimizeStringConcat, -XX:+UseFastAccessorMethods,
-XX:+AggressiveOpts, -Djava.net.preferIPv4Stack=true,
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl,
-Dcom.atomikos.icatch.no_file=true,
-Dcom.atomikos.icatch.service=com.atomikos.icatch.standalone.UserTransactionServiceFactory,
-Djavax.net.ssl.trustStore=/home/Final_8AG_PC/Instance1/pot/web/ecp_sscert/pctruststore,
-Djavax.net.ssl.trustStorePassword=suntec,
-Doracle.jdbc.J2EE13Compliant=true, -Dbind.address=127.0.0.1, -Xdebug,
-Xrunjdwp:server=y,transport=dt_socket,address=8087,suspend=n]
2018-05-23 00:41:58,673 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
System cache's DataRegion size is configured to 40 MB. Use
DataStorageConfiguration.systemCacheMemorySize property to change the
setting.
2018-05-23 00:41:58,673 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
Configured caches [in 'sysMemPlc' dataRegion: ['ignite-sys-cache'], in
'CacheDataRegion' dataRegion: ['processingAttributesCache']
2018-05-23 00:41:58,673 WARN  [org.apache.ignite.logger.log4j.Log4JLogger]
Peer class loading is enabled (disable it in production for performance and
deployment consistency reasons)
2018-05-23 00:41:58,777 INFO  [org.apache.ignite.logger.log4j.Log4JLogger]
3-rd party licenses can be found at:
/home/hsbc/HSBC_RCM_DEV_PC/Instance1/libs/licenses
2018-05-23 00:41:58,863 ERROR [org.apache.ignite.logger.log4j.Log4JLogger]
Got exception while starting (will rollback startup routine).
class org.apache.ignite.IgniteException: Failed to load class names
properties file packaged with ignite binaries
[file=META-INF/classnames.properties,
ldr=com.suntecgroup.tbms.container.deploy.loader.RuntimeClassLoader@399c656d]
	at
org.apache.ignite.internal.MarshallerContextImpl.<init>(MarshallerContextImpl.java:120)
	at
org.apache.ignite.internal.GridKernalContextImpl.<init>(GridKernalContextImpl.java:463)
	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:847)
	at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1909)
	at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1652)
	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1080)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:600)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:525)
	at org.apache.ignite.Ignition.start(Ignition.java:322)
	at
com.suntecgroup.tbms.tpe.caching.config.IgniteConfig.igniteInstance(IgniteConfig.java:2123)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:166)
	at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:586)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
	at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
	at
com.suntecgroup.tbms.tpe.caching.controller.IgniteController.loadCache(IgniteController.java:428)
	at
com.suntecgroup.tbms.tpe.core.server.ServerManager.init(ServerManager.java:3663)
	at
com.suntecgroup.tbms.container.core.ServiceContainerCommandDespatcher.run(ServiceContainerCommandDespatcher.java:46)
2018-05-23 00:41:58,865 WARN  [org.apache.ignite.logger.log4j.Log4JLogger]
Attempt to stop starting grid. This operation cannot be guaranteed to be
successful.
2018-05-23 00:42:05,651 WARN  [org.jgroups.protocols.TP]
192.168.61.24:7700:1331-61896: no physical address for
573b8b39-a70d-e5fc-eb60-5436bd8e37a9, dropping message



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

RE: Dependencies required to use ignite in embedded mode?

Posted by Stanislav Lukyanov <st...@gmail.com>.
Hi,

Could you please start with -DIGNITE_QUIET=false and share the logs and the configuration?

In general, Ignite can start with just ignite-core.
A couple of modules that are also used very often are:
- ignite-indexing to use SqlQuery and SqlFieldQuery
- ignite-spring to use XML-based Ignite configs.

Thanks,
Stan

From: the_palakkaran
Sent: 22 мая 2018 г. 21:22
To: user@ignite.apache.org
Subject: Dependencies required to use ignite in embedded mode?

Hi,

Can someone help me with the dependencies needed for starting ignite in
embedded mode ? (Oracle DB).

I miss something so that my ignition does not start and hence cache is not
getting loaded, but no error thrown from Ignite.

Please help.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/