From issues-return-69797-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Tue Jul 17 05:50:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 6DC8518067A for ; Tue, 17 Jul 2018 05:50:04 +0200 (CEST) Received: (qmail 63348 invoked by uid 500); 17 Jul 2018 03:50:03 -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 63339 invoked by uid 99); 17 Jul 2018 03:50:03 -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; Tue, 17 Jul 2018 03:50:03 +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 D918B180796 for ; Tue, 17 Jul 2018 03:50:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, 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 Rqg1rm0GbaVH for ; Tue, 17 Jul 2018 03:50:01 +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 381785F300 for ; Tue, 17 Jul 2018 03:50:01 +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 A22E7E20B2 for ; Tue, 17 Jul 2018 03:50:00 +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 372CC21EE2 for ; Tue, 17 Jul 2018 03:50:00 +0000 (UTC) Date: Tue, 17 Jul 2018 03:50:00 +0000 (UTC) From: "Saikat Maitra (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-8697) Flink sink throws java.lang.IllegalArgumentException when running in flink cluster mode. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-8697?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165= 46002#comment-16546002 ]=20 Saikat Maitra commented on IGNITE-8697: --------------------------------------- Hi [~ldz], =C2=A0 Thank you for validating the changes, I see that in cluster mode when I am = checking the IgniteSink it is working as desired.=C2=A0In stand alone mode = I can see we are getting the exception=C2=A0class org.apache.ignite.IgniteE= xception: Default=C2=A0Ignite=C2=A0instance has already=C2=A0been started. =C2=A0 Please take a look into this sample application=C2=A0https://github.com/sam= aitra/streamers which I used to run it with flink in cluster mode. =C2=A0 I am considering if I should make changes to run the IgniteSink in client m= ode similar to the ways flink connector for redis and flume were implemente= d in Apache Bahir =C2=A0 https://github.com/apache/bahir-flink =C2=A0 I will share update soon. =C2=A0 Regards, Saikat > Flink sink throws java.lang.IllegalArgumentException when running in flin= k cluster mode. > -------------------------------------------------------------------------= --------------- > > Key: IGNITE-8697 > URL: https://issues.apache.org/jira/browse/IGNITE-8697 > Project: Ignite > Issue Type: Bug > Affects Versions: 2.3, 2.4, 2.5 > Reporter: Ray > Priority: Blocker > > if I submit the Application to the=C2=A0Flink=C2=A0Cluster using Ignite f= link sink I get this=C2=A0error > =C2=A0 > java.lang.ExceptionInInitializerError > =09at org.apache.ignite.sink.flink.IgniteSink$SinkContext.getStreamer(Ign= iteSink.java:201) > =09at org.apache.ignite.sink.flink.IgniteSink$SinkContext.access$100(Igni= teSink.java:175) > =09at org.apache.ignite.sink.flink.IgniteSink.invoke(IgniteSink.java:165) > =09at org.apache.flink.streaming.api.functions.sink.SinkFunction.invoke(S= inkFunction.java:52) > =09at org.apache.flink.streaming.api.operators.StreamSink.processElement(= StreamSink.java:56) > =09at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChain= ingOutput.pushToOperator(OperatorChain.java:560) > =09at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChain= ingOutput.collect(OperatorChain.java:535) > =09at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChain= ingOutput.collect(OperatorChain.java:515) > =09at org.apache.flink.streaming.api.operators.AbstractStreamOperator$Cou= ntingOutput.collect(AbstractStreamOperator.java:679) > =09at org.apache.flink.streaming.api.operators.AbstractStreamOperator$Cou= ntingOutput.collect(AbstractStreamOperator.java:657) > =09at org.apache.flink.streaming.api.operators.TimestampedCollector.colle= ct(TimestampedCollector.java:51) > =09at org.myorg.quickstart.InstrumentStreamer$Splitter.flatMap(Instrument= Streamer.java:97) > =09at org.myorg.quickstart.InstrumentStreamer$Splitter.flatMap(Instrument= Streamer.java:1) > =09at org.apache.flink.streaming.api.operators.StreamFlatMap.processEleme= nt(StreamFlatMap.java:50) > =09at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChain= ingOutput.pushToOperator(OperatorChain.java:560) > =09at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChain= ingOutput.collect(OperatorChain.java:535) > =09at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChain= ingOutput.collect(OperatorChain.java:515) > =09at org.apache.flink.streaming.api.operators.AbstractStreamOperator$Cou= ntingOutput.collect(AbstractStreamOperator.java:679) > =09at org.apache.flink.streaming.api.operators.AbstractStreamOperator$Cou= ntingOutput.collect(AbstractStreamOperator.java:657) > =09at org.apache.flink.streaming.api.operators.StreamSourceContexts$NonTi= mestampContext.collect(StreamSourceContexts.java:104) > =09at org.apache.flink.streaming.api.functions.source.SocketTextStreamFun= ction.run(SocketTextStreamFunction.java:110) > =09at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSou= rce.java:87) > =09at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSou= rce.java:56) > =09at org.apache.flink.streaming.runtime.tasks.SourceStreamTask.run(Sourc= eStreamTask.java:99) > =09at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTa= sk.java:306) > =09at org.apache.flink.runtime.taskmanager.Task.run(Task.java:703) > =09at java.lang.Thread.run(Thread.java:748) > Caused by: java.lang.IllegalArgumentException: Ouch! Argument is invalid:= Cache name must not be null or empty. > =09at org.apache.ignite.internal.util.GridArgumentCheck.ensure(GridArgume= ntCheck.java:109) > =09at org.apache.ignite.internal.processors.cache.GridCacheUtils.validate= CacheName(GridCacheUtils.java:1581) > =09at org.apache.ignite.internal.IgniteKernal.dataStreamer(IgniteKernal.j= ava:3284) > =09at org.apache.ignite.sink.flink.IgniteSink$SinkContext$Holder.= (IgniteSink.java:183) > =09... 27 more -- This message was sent by Atlassian JIRA (v7.6.3#76005)