Return-Path: X-Original-To: apmail-ignite-user-archive@minotaur.apache.org Delivered-To: apmail-ignite-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93B1618BFD for ; Fri, 1 Apr 2016 01:41:28 +0000 (UTC) Received: (qmail 4888 invoked by uid 500); 1 Apr 2016 01:41:28 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 4836 invoked by uid 500); 1 Apr 2016 01:41:28 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 4816 invoked by uid 99); 1 Apr 2016 01:41:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2016 01:41:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9FC9C1A0951 for ; Fri, 1 Apr 2016 01:41:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.772 X-Spam-Level: * X-Spam-Status: No, score=1.772 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id WVg5iZLV0AK4 for ; Fri, 1 Apr 2016 01:41:22 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 163A15F1D5 for ; Fri, 1 Apr 2016 01:41:22 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id 6A6B72434398 for ; Thu, 31 Mar 2016 18:29:57 -0700 (PDT) Date: Thu, 31 Mar 2016 18:27:57 -0700 (PDT) From: F7753 To: user@ignite.apache.org Message-ID: <1459474077820-3835.post@n6.nabble.com> In-Reply-To: <1459418710613-3815.post@n6.nabble.com> References: <1459418710613-3815.post@n6.nabble.com> Subject: Re: A question of ignite on spark streaming MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Thanks for your advice ,that helps me a lot.I've received a mail list below, is there something wrong? ---------------------------The mail------------------------------------------------------ Hi. This is the qmail-send program at apache.org. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. : Must be sent from an @apache.org address or a subscriber address or an address in LDAP. --- Below this line is a copy of the message. Return-Path: Received: (qmail 17052 invoked by uid 99); 31 Mar 2016 10:18:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2016 10:18:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DC2ADC0222 for ; Thu, 31 Mar 2016 10:18:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.772 X-Spam-Level: * X-Spam-Status: No, score=1.772 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 1WFzTO9CbMCJ for ; Thu, 31 Mar 2016 10:18:34 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 1FCDE5FAD9 for ; Thu, 31 Mar 2016 10:18:34 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id 1CA3F24242A1 for ; Thu, 31 Mar 2016 03:07:13 -0700 (PDT) Date: Thu, 31 Mar 2016 03:05:10 -0700 (PDT) From: F7753 To: user@ignite.apache.org Message-ID: <1459418710613-3815.post@n6.nabble.com> Subject: How to use ignite on spark streaming to join two tables in ignite cache? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I want to use two igniteRDD to cache dataFrames: one is a static table, and the other is a stream table which the data comes from kafka or socket and etc. But the IgniteContext has only two parameters so that I can only create one cache. Below are the details: This is the static table ,the data has already known ------------------------------------------------------------------------------------------------- val smallTableDF = sqlCtx.createDataFrame(smallTableData.rdd, classOf[zb_test]) // create ignite context (embeded mode) val igniteContext = new IgniteContext[String, staticTb](ssc.sparkContext, () => new IgniteConfiguration().setPeerClassLoadingEnabled(true), false) // small table cache config val smallTableCacheCfg = new CacheConfiguration[String, staticTb]() smallTableCacheCfg.setName("cache01") smallTableCacheCfg.setIndexedTypes(classOf[String], classOf[staticTb]) // table has "staticTb" name smallTableCacheCfg.setCacheMode(CacheMode.REPLICATED) -------------------------------------------------------------------------------------------------- This is the stream table , the data comes from socket -------------------------------------------------------------------------------------------------- val sourceTableCacheCfg = new CacheConfiguration[String, streamTb]() sourceTableCacheCfg.setName("cache02") sourceTableCacheCfg.setIndexedTypes(classOf[String], classOf[streamTb]) // table has "streamTb" name sourceTableCacheCfg.setCacheMode(CacheMode.PARTITIONED) ignite.addCacheConfiguration(sourceTableCacheCfg) ------------------------------------------------------------------------------------------------- I want to write a join sql to get some result, But I can not create the second cache ------------------------------------------------------------------------------------------------- // ignite source table cache val sourceTableCache = igniteContext.fromCache(sourceTableCacheCfg) ------------------------------------------------------------------------------------------------- Warmest Regards -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-use-ignite-on-spark-streaming-to-join-two-tables-in-ignite-cache-tp3815.html Sent from the Apache Ignite Users mailing list archive at Nabble.com. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/A-question-of-ignite-on-spark-streaming-tp3815p3835.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.