[ 
https://issues.apache.org/jira/browse/IGNITE-3710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anton Vinogradov reopened IGNITE-3710:
--------------------------------------

Examples compilation from sources broken, please check.

{noformat}
exec] [INFO] Compiling 136 source files to 
/home/teamcity/buildAgent/work/b1f08d39c96b68d1/ggtest/var/apache-ignite-fabric-1.9.0-bin/examples/target/classes
 at 1487618185118
[22:16:30][exec] [ERROR] 
/home/teamcity/buildAgent/work/b1f08d39c96b68d1/ggtest/var/apache-ignite-fabric-1.9.0-bin/examples/src/main/scala/org/apache/ignite/scalar/examples/spark/ScalarSharedRDDExample.scala:20:
 error: object spark is not a member of package org.apache.ignite
[22:16:30][exec] [ERROR] import org.apache.ignite.spark.{IgniteContext, 
IgniteRDD}
[22:16:30][exec] [ERROR]                          ^
[22:16:30][exec] [ERROR] 
/home/teamcity/buildAgent/work/b1f08d39c96b68d1/ggtest/var/apache-ignite-fabric-1.9.0-bin/examples/src/main/scala/org/apache/ignite/scalar/examples/spark/ScalarSharedRDDExample.scala:22:
 error: object spark is not a member of package org.apache
[22:16:30][exec] [ERROR] import org.apache.spark.{SparkConf, SparkContext}
[22:16:30][exec] [ERROR]                   ^
[22:16:30][exec] [ERROR] 
/home/teamcity/buildAgent/work/b1f08d39c96b68d1/ggtest/var/apache-ignite-fabric-1.9.0-bin/examples/src/main/scala/org/apache/ignite/scalar/examples/spark/ScalarSharedRDDExample.scala:37:
 error: not found: type SparkConf
[22:16:30][exec] [ERROR]     private val conf = new SparkConf()
[22:16:30][exec] [ERROR]                            ^
[22:16:30][exec] [ERROR] 
/home/teamcity/buildAgent/work/b1f08d39c96b68d1/ggtest/var/apache-ignite-fabric-1.9.0-bin/examples/src/main/scala/org/apache/ignite/scalar/examples/spark/ScalarSharedRDDExample.scala:43:
 error: not found: type SparkContext
[22:16:30][exec] [ERROR]     val sparkContext = new SparkContext(conf)
[22:16:30][exec] [ERROR]                            ^
[22:16:30][exec] [ERROR] 
/home/teamcity/buildAgent/work/b1f08d39c96b68d1/ggtest/var/apache-ignite-fabric-1.9.0-bin/examples/src/main/scala/org/apache/ignite/scalar/examples/spark/ScalarSharedRDDExample.scala:53:
 error: not found: type IgniteContext
[22:16:30][exec] [ERROR]     val igniteContext = new 
IgniteContext(sparkContext, CONFIG, false)
[22:16:30][exec] [ERROR]                             ^
[22:16:30][exec] [ERROR] 
/home/teamcity/buildAgent/work/b1f08d39c96b68d1/ggtest/var/apache-ignite-fabric-1.9.0-bin/examples/src/main/scala/org/apache/ignite/scalar/examples/spark/ScalarSharedRDDExample.scala:56:
 error: not found: type IgniteRDD
[22:16:30][exec] [ERROR]     val sharedRDD: IgniteRDD[Int, Int] = 
igniteContext.fromCache[Int, Int]("sharedRDD")
[22:16:30][exec] [ERROR]                    ^
[22:16:30][exec] [ERROR] 
/home/teamcity/buildAgent/work/b1f08d39c96b68d1/ggtest/var/apache-ignite-fabric-1.9.0-bin/examples/src/main/scala/org/apache/ignite/scalar/examples/spark/ScalarSharedRDDExample.scala:65:
 error: not found: type IgniteRDD
[22:16:30][exec] [ERROR]     val transformedValues: IgniteRDD[Int, Int] = 
igniteContext.fromCache("sharedRDD")
[22:16:30][exec] [ERROR]                            ^
[22:16:30][exec] [ERROR] 7 errors found
[22:16:30][exec] [INFO] 
------------------------------------------------------------------------
[22:16:30][exec] [INFO] BUILD FAILURE
[22:16:30][exec] [INFO] 
------------------------------------------------------------------------
[22:16:30][exec] [INFO] Total time: 11.416s
[22:16:30][exec] [INFO] Finished at: Mon Feb 20 22:16:30 MSK 2017
[22:16:30][exec] [INFO] Final Memory: 16M/163M
[22:16:30][exec] [INFO] 
------------------------------------------------------------------------
[22:16:30][exec] [ERROR] Failed to execute goal 
net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile-first) on 
project ignite-examples: wrap: org.apache.commons.exec.ExecuteException: Pr
{noformat}

> Upgrade ignite-spark module to Spark 2.0
> ----------------------------------------
>
>                 Key: IGNITE-3710
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3710
>             Project: Ignite
>          Issue Type: Improvement
>          Components: Ignite RDD
>    Affects Versions: 1.7
>            Reporter: Valentin Kulichenko
>            Assignee: Evgenii Zhuravlev
>            Priority: Critical
>             Fix For: 1.9
>
>         Attachments: Ignite_Tests_Ignite_RDD_495.log
>
>
> Currently {{ignite-spark}} depends on Spark 1.5.2 and fails with 2.0 with 
> this exception:
> {noformat}
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/spark/Logging 
>         at java.lang.ClassLoader.defineClass1(Native Method) 
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:763) 
>         at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) 
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) 
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:73) 
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:368) 
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:362) 
>         at java.security.AccessController.doPrivileged(Native Method) 
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:361) 
>         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) 
>         at 
> org.apache.ignite.spark.JavaIgniteContext.<init>(JavaIgniteContext.scala:42) 
>         at client.SparkIgniteClient.main(SparkIgniteClient.java:75) 
>         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:498) 
>         at 
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) 
> Caused by: java.lang.ClassNotFoundException: org.apache.spark.Logging 
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 
> {noformat}
> Need to investigate if we can upgrade without breaking compatibility with old 
> versions.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to