Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E971718361 for ; Sat, 26 Sep 2015 13:54:20 +0000 (UTC) Received: (qmail 49907 invoked by uid 500); 26 Sep 2015 13:54:20 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 49864 invoked by uid 500); 26 Sep 2015 13:54:20 -0000 Mailing-List: contact dev-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 dev@ignite.apache.org Received: (qmail 49852 invoked by uid 99); 26 Sep 2015 13:54:20 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Sep 2015 13:54:20 +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 CFC62181159 for ; Sat, 26 Sep 2015 13:54:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.901 X-Spam-Level: ** X-Spam-Status: No, score=2.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id HWbpMeVkg8I0 for ; Sat, 26 Sep 2015 13:54:04 +0000 (UTC) Received: from mail-io0-f179.google.com (mail-io0-f179.google.com [209.85.223.179]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 6D152439B4 for ; Sat, 26 Sep 2015 13:54:04 +0000 (UTC) Received: by iofb144 with SMTP id b144so137005329iof.1 for ; Sat, 26 Sep 2015 06:54:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xPkF571l//7ZZH2Cvrdmtds9yZRuWrZ6QReG5oucgrw=; b=ZboKEuAZelYdxus9NnNcBSSZQV3eC2Qls0xoXRDnc+p7SGnGsPwPV4igZX7RpnLQcL rK8vuihIdcGV4+1T5pIzi9SrwiNo4JFpnERBQylg7pcAfKkR6oeoD+ViOdQK146qEN2F IKVkaw+ndt0LuO0hnPzh3ZrAvjl1YPNaqJapDXusZJjvyhGROPRo1oaXNd+6+MojhRsI mZPeJqyJdNSSpaNE6WfxHTEt7mjFzHkgj6oxh7HntvlR/hWUlf1rlaGOY9l86H+BOgqV ubVFucZHYpsJT3/dzN2NaFds8htO8iqpjUw6FdaQUVxQQo8opYj8s3hIPB0EwWFGMm6r xKTg== MIME-Version: 1.0 X-Received: by 10.107.136.87 with SMTP id k84mr10611367iod.26.1443275644008; Sat, 26 Sep 2015 06:54:04 -0700 (PDT) Received: by 10.79.91.2 with HTTP; Sat, 26 Sep 2015 06:54:03 -0700 (PDT) In-Reply-To: References: <42359F2E-F406-4951-8995-380E479C9B68@gmail.com> Date: Sat, 26 Sep 2015 15:54:03 +0200 Message-ID: Subject: Re: After setting streamer and ignite,getting NULL From: Gianfranco Murador To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a113ec5fe1301430520a6cc98 --001a113ec5fe1301430520a6cc98 Content-Type: text/plain; charset=UTF-8 Chan, I've fixed some issue, please take a look here: https://github.com/murador/ignite/blob/IGNITE-429/modules/storm/src/test/java/org/apache/ignite/stream/storm/StormIgniteStreamerSelfTest.java 2015-09-26 8:29 GMT+02:00 chandresh pancholi : > Gian, > > I have followed instructions given by you. I instantiate IgniteDateStreamer > and ignite in prepare() method of bolt. but getting "*Cache doesn't > exist*". > > Code snippet from stormStreamer class in prepare() method > > StormStreamer stormStreamer = null; > > Ignite ignite = Ignition.start(); > > System.out.println(" ignite ====== "+ignite.toString()); > > try(IgniteDataStreamer stmr = > ignite.dataStreamer("cache-0")) { > > stormStreamer = new StormStreamer<>(); > > IgniteCache cache = ignite.cache("cache-0"); > > stmr.allowOverwrite(true); > > /* Set ignite instance */ > stormStreamer.setIgnite(ignite); > > /* Set streamer instance */ > stormStreamer.setStreamer(stmr); > > /* set thread count */ > setThreads(5); > > } > > > > On Thu, Sep 24, 2015 at 4:19 PM, Anton Vinogradov < > avinogradov@gridgain.com> > wrote: > > > Chandresh, > > As far as understand IBolt implementation should setup all external > > connections at .prepare() method. > > So, better way is to get existing Ignite instance or create new at > > .prepare() > > method. > > > > > > On Thu, Sep 24, 2015 at 10:55 AM, Gianfranco Murador < > > murador.gianfranco@gmail.com> wrote: > > > > > Chandresh, > > > I will launch the unit test later this week , if the problem persists. > I > > > think that you should instantiate Ignite through the start() method of > > > Ignition class > > > and retrieve the Ignite cache specifying a name for the default cache. > > You > > > should provide a name also for data streamer, not passing null. > > > Could you do this and run again the unit test ? > > > Thank you, > > > Regards, > > > Gianfranco > > > > > > > > > 2015-09-24 5:40 GMT+02:00 chandresh pancholi < > > > chandreshpancholi007@gmail.com > > > >: > > > > > > > Anton, > > > > > > > > Clone this repo https://github.com/chandresh-pancholi/ignite and run > > > this > > > > class > > > > > > > > > > > > > > https://github.com/chandresh-pancholi/ignite/blob/master/modules/storm/src/test/java/org/apache/ignite/stream/storm/IgniteStormStreamerSelfTestSuite.java > > > > > > > > You will get the Error saying "Oouch,Argument is Null" for > > getStreamer(). > > > > > > > > On Wed, Sep 23, 2015 at 9:46 PM, Anton Vinogradov < > > > > avinogradov@gridgain.com> > > > > wrote: > > > > > > > > > Chandresh, > > > > > I'm trying to analize problem. > > > > > Could you please provide more details and explain step-by-step how > > can > > > I > > > > > reproduce problem? > > > > > > > > > > On Tue, Sep 22, 2015 at 11:06 PM, chandresh pancholi < > > > > > chandreshpancholi007@gmail.com> wrote: > > > > > > > > > > > Not yet. > > > > > > Still doing brainstorming why StormStreamer object is getting > NULLL > > > > > > in-spite setting up ignite and streamer instances. > > > > > > > > > > > > On Tue, Sep 22, 2015 at 7:22 PM, Vishal Garg > > > > > wrote: > > > > > > > > > > > > > Did you figure it out? Something related to your storm > > integration? > > > > > > > Vishal > > > > > > > > > > > > > > Sent from my iPhone > > > > > > > > > > > > > > > On Sep 22, 2015, at 4:50 AM, chandresh pancholi < > > > > > > > chandreshpancholi007@gmail.com> wrote: > > > > > > > > > > > > > > > > Problem here is with Storm. Its making streamer object null > > once > > > it > > > > > > goes > > > > > > > > into submit topology. > > > > > > > > > > > > > > > > On Mon, Sep 21, 2015 at 7:13 PM, Lalit Kumar Jha < > > > > > lalitj.dev@gmail.com > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > >> Hi Chandresh, > > > > > > > >> > > > > > > > >> See test suite class here, its based on annotations > > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://github.com/sylentprayer/ignite/blob/ignite-530/modules/twitter/src/test/java/org/apache/ignite/stream/twitter/IgniteTwitterStreamerTestSuite.java > > > > > > > >> > > > > > > > >> No code required in class body. > > > > > > > >> > > > > > > > >> On Mon, Sep 21, 2015 at 6:24 PM, chandresh pancholi < > > > > > > > >> chandreshpancholi007@gmail.com> wrote: > > > > > > > >> > > > > > > > >>> Hi Gian/Vishal/Lalit, > > > > > > > >>> > > > > > > > >>> You guys have worked on Streamer integration with Ignite. I > > am > > > > > > working > > > > > > > on > > > > > > > >>> Storm-ignite integration. > > > > > > > >>> > > > > > > > >>> I am setting up setStreamer() and setIgnite() in Test class > > and > > > > > > sending > > > > > > > >>> this object to setBolt() method. > > > > > > > >>> > > > > > > > >>> When i try to read via gettreamer() and getIgnite() i am > > > getting > > > > > > NULL. > > > > > > > I > > > > > > > >> am > > > > > > > >>> trying to find out why is it happening but No Luck. > > > > > > > >>> > > > > > > > >>> If any one of you find some time and look into the code and > > > help > > > > me > > > > > > to > > > > > > > >>> resolve this. It would be great. > > > > > > > >>> > > > > > > > >>> Git : https://github.com/chandresh-pancholi/ignite > > > > > > > >>> Module : storm > > > > > > > >>> > > > > > > > >>> -- > > > > > > > >>> Chandresh Pancholi > > > > > > > >>> Senior Software Engineer > > > > > > > >>> Flipkart.com > > > > > > > >>> Email-id:chandresh.pancholi@flipkart.com > > > > > > > >>> Contact:08951803660 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > Chandresh Pancholi > > > > > > > > Senior Software Engineer > > > > > > > > Flipkart.com > > > > > > > > Email-id:chandresh.pancholi@flipkart.com > > > > > > > > Contact:08951803660 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Chandresh Pancholi > > > > > > Senior Software Engineer > > > > > > Flipkart.com > > > > > > Email-id:chandresh.pancholi@flipkart.com > > > > > > Contact:08951803660 > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Chandresh Pancholi > > > > Senior Software Engineer > > > > Flipkart.com > > > > Email-id:chandresh.pancholi@flipkart.com > > > > Contact:08951803660 > > > > > > > > > > > > > -- > Chandresh Pancholi > Senior Software Engineer > Flipkart.com > Email-id:chandresh.pancholi@flipkart.com > Contact:08951803660 > --001a113ec5fe1301430520a6cc98--