Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5756

Ignite with spark fails with class not found

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 1.9
    • Fix Version/s: 2.3
    • Component/s: spark
    • Labels:
    • Environment:

      Apache ignite 1.9 with CDH 5.9 and spark 1.6

      Description

      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.

      Type :help for more information.
      Spark context available as sc (master = yarn-client, app id = application_1499940258814_0024).
      SQL context available as sqlContext.

      scala> import org.apache.ignite.spark._
      import org.apache.ignite.spark._

      scala> import org.apache.ignite.configuration._
      import org.apache.ignite.configuration._

      scala> import javax.cache.configuration.MutableConfiguration
      import javax.cache.configuration.MutableConfiguration

      scala> val ic = new IgniteContext(sc, "config/default-config.xml")
      class org.apache.ignite.IgniteCheckedException: Failed to create Ignite component (consider adding ignite-spring module to classpath) [component=SPRING, cls=org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl]
      at org.apache.ignite.internal.IgniteComponentType.componentException(IgniteComponentType.java:320)
      at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:296)
      at org.apache.ignite.internal.IgniteComponentType.create(IgniteComponentType.java:207)
      at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:637)
      at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:678)
      at org.apache.ignite.internal.IgnitionEx.loadConfiguration(IgnitionEx.java:717)
      at org.apache.ignite.spark.IgniteContext$$anonfun$$lessinit$greater$2.apply(IgniteContext.scala:84)
      at org.apache.ignite.spark.IgniteContext$$anonfun$$lessinit$greater$2.apply(IgniteContext.scala:84)
      at org.apache.ignite.spark.Once.apply(IgniteContext.scala:197)
      at org.apache.ignite.spark.IgniteContext.ignite(IgniteContext.scala:137)
      at org.apache.ignite.spark.IgniteContext.<init>(IgniteContext.scala:58)
      at org.apache.ignite.spark.IgniteContext.<init>(IgniteContext.scala:84)
      at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:34)
      at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:39)
      at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:41)
      at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:43)
      at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:45)
      at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:47)
      at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:49)
      at $iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:51)
      at $iwC$$iwC$$iwC$$iwC.<init>(<console>:53)
      at $iwC$$iwC$$iwC.<init>(<console>:55)
      at $iwC$$iwC.<init>(<console>:57)
      at $iwC.<init>(<console>:59)
      at <init>(<console>:61)
      at .<init>(<console>:65)
      at .<clinit>(<console>)
      at .<init>(<console>:7)
      at .<clinit>(<console>)
      at $print(<console>)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.spark.repl.SparkIMain$ReadEvalPrint.call(SparkIMain.scala:1045)
      at org.apache.spark.repl.SparkIMain$Request.loadAndRun(SparkIMain.scala:1326)
      at org.apache.spark.repl.SparkIMain.loadAndRunReq$1(SparkIMain.scala:821)
      at org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:852)
      at org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:800)
      at org.apache.spark.repl.SparkILoop.reallyInterpret$1(SparkILoop.scala:857)
      at org.apache.spark.repl.SparkILoop.interpretStartingWith(SparkILoop.scala:902)
      at org.apache.spark.repl.SparkILoop.command(SparkILoop.scala:814)
      at org.apache.spark.repl.SparkILoop.processLine$1(SparkILoop.scala:657)
      at org.apache.spark.repl.SparkILoop.innerLoop$1(SparkILoop.scala:665)
      at org.apache.spark.repl.SparkILoop.org$apache$spark$repl$SparkILoop$$loop(SparkILoop.scala:670)
      at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply$mcZ$sp(SparkILoop.scala:997)
      at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply(SparkILoop.scala:945)
      at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply(SparkILoop.scala:945)
      at scala.tools.nsc.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:135)
      at org.apache.spark.repl.SparkILoop.org$apache$spark$repl$SparkILoop$$process(SparkILoop.scala:945)
      at org.apache.spark.repl.SparkILoop.process(SparkILoop.scala:1064)
      at org.apache.spark.repl.Main$.main(Main.scala:35)
      at org.apache.spark.repl.Main.main(Main.scala)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
      at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
      at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
      at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
      at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
      Caused by: java.lang.ClassNotFoundException: org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:190)
      at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:282)
      ... 60 more

        Attachments

          Activity

            People

            • Assignee:
              mcherkasov Mikhail Cherkasov
              Reporter:
              rajeshb61 Rajesh
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: