Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8CC78200C79 for ; Fri, 19 May 2017 21:54:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8B608160BB0; Fri, 19 May 2017 19:54:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D2465160BD4 for ; Fri, 19 May 2017 21:54:08 +0200 (CEST) Received: (qmail 52536 invoked by uid 500); 19 May 2017 19:54:07 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 52527 invoked by uid 99); 19 May 2017 19:54:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2017 19:54:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5B0D81804F7 for ; Fri, 19 May 2017 19:54:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tDA7vNMp_BwQ for ; Fri, 19 May 2017 19:54:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B45FE5FC84 for ; Fri, 19 May 2017 19:54:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E06C1E0D4D for ; Fri, 19 May 2017 19:54:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4BB1921B5D for ; Fri, 19 May 2017 19:54:04 +0000 (UTC) Date: Fri, 19 May 2017 19:54:04 +0000 (UTC) From: "Denis Magda (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (IGNITE-5238) Ignite Spark can't be used with Ignite REST MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 19 May 2017 19:54:09 -0000 [ https://issues.apache.org/jira/browse/IGNITE-5238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Denis Magda reassigned IGNITE-5238: ----------------------------------- Assignee: Roman Shtykh (was: Denis Magda) > 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: Roman Shtykh > 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$.(RDDOperationScope.scala:82) > at org.apache.spark.rdd.RDDOperationScope$.(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)