-1

I’m using ignite1.9 with CDH5.9. I’m unable to run sampe spark jobs with below exception. I have followed the steps mentioned in documentation.

Failed to create Ignite component (consider adding ignite-spring module to classpath) [component=SPRING, cls=org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl]
Caused by: java.lang.ClassNotFoundException: org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl
inetphantom
  • 2,498
  • 4
  • 38
  • 61

1 Answers1

1

Add the following dependency to your project:

 <dependency>
            <groupId>org.apache.ignite</groupId>
            <artifactId>ignite-spring</artifactId>
            <version>${ignite.version}</version>
 </dependency>

this should fix the problem.

Michael
  • 640
  • 3
  • 11
  • Im using ignite in linux. Do i have to add this and build the project again?? – Rajesh Reddy B Jul 14 '17 at 16:19
  • 2
    It is enough to add ignite-spring-.jar to classpath of your application. – a_gura Jul 15 '17 at 13:12
  • @a_gura i have tried this already but the exception is still occuring. – Rajesh Reddy B Jul 17 '17 at 04:55
  • @RajeshReddyB org/apache/ignite/internal/util/spring/IgniteSpringHelperImpl.java is a part of ignite-spring jar, looks like you have a problem with your environment configuration, if you run map-reduce jobs and use ignite in those jobs on remote nodes, make sure that those remote nodes have ignite-spring jar in classpath too. – Michael Jul 17 '17 at 10:15
  • Hi @Michael i'm able to run mapreduce jobs successfully. This issue is occuring only with spark. – Rajesh Reddy B Jul 19 '17 at 04:42
  • @RajeshReddyB Please check the answer from user3688187 by this link https://stackoverflow.com/questions/29099115/spark-submit-add-multiple-jars-in-classpath – Michael Jul 19 '17 at 08:19
  • @Michael thanks for pointing to the answer. I have tried that before creating the question. I have now installed Ignite 2.0.0. But the issue remains. – Rajesh Reddy B Jul 19 '17 at 09:35