[ 
https://issues.apache.org/jira/browse/IGNITE-5238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16017932#comment-16017932
 ] 

Denis Magda commented on IGNITE-5238:
-------------------------------------

[~roman_s], the example still fails with the same error if I move it sources 
under "ignite/examples/" folder and run from here applying your patch. 
Probably, this is because your patch is not synced up with master and it caused 
chaos in my local repo. :)

How did you check that example works on your side? Did you make sure it fails 
before applying the patch? Currently, the project that is in the repository 
includes a hack - I imported ignite-http-rest directly as a lib (not using 
maven). You need to go to the project settings and remove all the external libs 
(not imported by Maven) from there.

Finally, as for TC we need to make sure all Spark suites and Examples suite are 
green.

> Ignite Spark can't be used with Ignite REST
> -------------------------------------------
>
>                 Key: IGNITE-5238
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5238
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Denis Magda
>            Assignee: Denis Magda
>            Priority: Blocker
>             Fix For: 2.1
>
>
> {{ignite-rest-http}} can't be used together with {{ignite-spark}} because the 
> former imports some legacy version of Jackson library and the following 
> exception is thrown from an IDEA in attempt to use Ignite+Spark application:
> {code}
> Exception in thread "main" java.lang.ExceptionInInitializerError
>       at org.apache.spark.SparkContext.withScope(SparkContext.scala:701)
>       at org.apache.spark.SparkContext.parallelize(SparkContext.scala:715)
>       at 
> org.apache.spark.api.java.JavaSparkContext.parallelizePairs(JavaSparkContext.scala:153)
>       at 
> org.apache.spark.api.java.JavaSparkContext.parallelizePairs(JavaSparkContext.scala:158)
>       at 
> org.apache.ignite.iot.SparkStreamerStartup.preloadSensorsData(SparkStreamerStartup.java:123)
>       at 
> org.apache.ignite.iot.SparkStreamerStartup.main(SparkStreamerStartup.java:96)
>       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: com.fasterxml.jackson.databind.JsonMappingException: Incompatible 
> Jackson version: 2.8.8
>       at 
> com.fasterxml.jackson.module.scala.JacksonModule$class.setupModule(JacksonModule.scala:64)
>       at 
> com.fasterxml.jackson.module.scala.DefaultScalaModule.setupModule(DefaultScalaModule.scala:19)
>       at 
> com.fasterxml.jackson.databind.ObjectMapper.registerModule(ObjectMapper.java:745)
>       at 
> org.apache.spark.rdd.RDDOperationScope$.<init>(RDDOperationScope.scala:82)
>       at 
> org.apache.spark.rdd.RDDOperationScope$.<clinit>(RDDOperationScope.scala)
>       ... 11 more
> {code}
> To reproduce:
> - Download this project and open in IntellijIdea: 
> https://github.com/dmagda/IgniteSparkIoT
> - Go to pom.xml and uncomment {{ignite-rest-http}} module. It has to be 
> imported.
> - Start a cluster node with IgniteNodeStartup
> - Start SparkStreamerStartup and you will get the error above.
> Looks like the Ignite REST module has to be upgraded to the recent Jackson 
> version.



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

Reply via email to