hi,

    I am new to ignite. I downloaded "apache-ignite-hadoop-1.7.0-bin.zip". I
unzip it and configured it as the doc
"https://apacheignite-fs.readme.io/docs/installing-on-apache-hadoop"; says.

    When I try to run the script "ignite.sh", it gave out the exception:



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/appadmin/apache-ignite-hadoop-1.7.0-bin/config/default-config.xml]
        at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:908)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
instantiate Spring XML application context (make sure all classes used in
Spring configuration are present at CLASSPATH)
[springUrl=file:/home/appadmin/apache-ignite-hadoop-1.7.0-bin/config/default-config.xml]
        at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:387)
        at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at
org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.apache.ignite.configuration.FileSystemConfiguration#0' defined in URL
[file:/home/appadmin/apache-ignite-hadoop-1.7.0-bin/config/default-config.xml]:
Cannot create inner bean
'org.apache.ignite.hadoop.fs.IgniteHadoopIgfsSecondaryFileSystem#7a187f14'
of type [org.apache.ignite.hadoop.fs.IgniteHadoopIgfsSecondaryFileSystem]
while setting bean property 'secondaryFileSystem'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.apache.ignite.hadoop.fs.IgniteHadoopIgfsSecondaryFileSystem#7a187f14'
defined in URL
[file:/home/appadmin/apache-ignite-hadoop-1.7.0-bin/config/default-config.xml]:
Instantiation of bean failed; nested exception is
java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataOutputStream
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:290)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1471)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1216)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:725)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
        at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:381)
        ... 9 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.apache.ignite.hadoop.fs.IgniteHadoopIgfsSecondaryFileSystem#7a187f14'
defined in URL
[file:/home/appadmin/apache-ignite-hadoop-1.7.0-bin/config/default-config.xml]:
Instantiation of bean failed; nested exception is
java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataOutputStream
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1095)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1040)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:505)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276)
        ... 22 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/hadoop/fs/FSDataOutputStream
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
        at java.lang.Class.getConstructor0(Class.java:3075)
        at java.lang.Class.getDeclaredConstructor(Class.java:2178)
        at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:80)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1088)
        ... 26 more
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.fs.FSDataOutputStream
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 32 more
Failed to start grid: Failed to instantiate Spring XML application context
(make sure all classes used in Spring configuration are present at
CLASSPATH)
[springUrl=file:/home/appadmin/apache-ignite-hadoop-1.7.0-bin/config/default-config.xml]
Note! You may use 'USER_LIBS' environment variable to specify your
classpath.




My .bashrc file is set as:

# ignite
export IGNITE_HOME=/home/appadmin/apache-ignite-hadoop-1.7.0-bin
export PATH=$PATH:$IGNITE_HOME/bin
export USER_LIBS=$IGNITE_HOME/libs/ignite-hadoop/ignite-hadoop-1.7.0.jar







--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Failed-to-running-hadoop-accelerator-tp9174.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to