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 AAC19200D3A for ; Wed, 15 Nov 2017 13:50:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A7EE0160BEA; Wed, 15 Nov 2017 12:50:06 +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 ECFDA160BF4 for ; Wed, 15 Nov 2017 13:50:05 +0100 (CET) Received: (qmail 24335 invoked by uid 500); 15 Nov 2017 12:50:05 -0000 Mailing-List: contact issues-help@carbondata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.apache.org Delivered-To: mailing list issues@carbondata.apache.org Received: (qmail 24326 invoked by uid 99); 15 Nov 2017 12:50:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Nov 2017 12:50:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 61353C8EFF for ; Wed, 15 Nov 2017 12:50:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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=[LOTS_OF_MONEY=0.001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id tQrL_8cRfqGP for ; Wed, 15 Nov 2017 12:50:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id DFDDE5FCFB for ; Wed, 15 Nov 2017 12: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 F125DE0F13 for ; Wed, 15 Nov 2017 12: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 71B24240E6 for ; Wed, 15 Nov 2017 12:50:00 +0000 (UTC) Date: Wed, 15 Nov 2017 12:50:00 +0000 (UTC) From: "Chetan Bhat (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CARBONDATA-1726) Carbon1.3.0-Streaming - Select query from spark-sql does not execute successfully for streaming table load MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 15 Nov 2017 12:50:06 -0000 Chetan Bhat created CARBONDATA-1726: --------------------------------------- Summary: Carbon1.3.0-Streaming - Select query from spark-sql does not execute successfully for streaming table load Key: CARBONDATA-1726 URL: https://issues.apache.org/jira/browse/CARBONDATA-1726 Project: CarbonData Issue Type: Bug Components: data-query Affects Versions: 1.3.0 Environment: 3 node ant cluster SUSE 11 SP4 Reporter: Chetan Bhat Steps : // prepare csv file for batch loading cd /srv/spark2.2Bigdata/install/hadoop/datanode/bin // generate streamSample.csv id,name,city,salary,file 100000001,batch_1,city_1,0.1,school_1:school_11$20 100000002,batch_2,city_2,0.2,school_2:school_22$30 100000003,batch_3,city_3,0.3,school_3:school_33$40 100000004,batch_4,city_4,0.4,school_4:school_44$50 100000005,batch_5,city_5,0.5,school_5:school_55$60 // put to hdfs /tmp/streamSample.csv ./hadoop fs -put streamSample.csv /tmp // spark-beeline cd /srv/spark2.2Bigdata/install/spark/sparkJdbc bin/spark-submit --master yarn-client --executor-memory 10G --executor-cores 5 --driver-memory 5G --num-executors 3 --class org.apache.carbondata.spark.thriftserver.CarbonThriftServer /srv/spark2.2Bigdata/install/spark/sparkJdbc/carbonlib/carbondata_2.11-1.3.0-SNAPSHOT-shade-hadoop2.7.2.jar "hdfs://hacluster/user/sparkhive/warehouse" bin/beeline -u jdbc:hive2://10.18.98.34:23040 CREATE TABLE stream_table( id INT, name STRING, city STRING, salary FLOAT ) STORED BY 'carbondata' TBLPROPERTIES('streaming'='true', 'sort_columns'='name'); LOAD DATA LOCAL INPATH 'hdfs://hacluster/chetan/streamSample.csv' INTO TABLE stream_table OPTIONS('HEADER'='true'); // spark-shell cd /srv/spark2.2Bigdata/install/spark/sparkJdbc bin/spark-shell --master yarn-client import java.io.{File, PrintWriter} import java.net.ServerSocket import org.apache.spark.sql.{CarbonEnv, SparkSession} import org.apache.spark.sql.hive.CarbonRelation import org.apache.spark.sql.streaming.{ProcessingTime, StreamingQuery} import org.apache.carbondata.core.constants.CarbonCommonConstants import org.apache.carbondata.core.util.CarbonProperties import org.apache.carbondata.core.util.path.{CarbonStorePath, CarbonTablePath} CarbonProperties.getInstance().addProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT, "yyyy/MM/dd") import org.apache.spark.sql.CarbonSession._ val carbonSession = SparkSession. builder(). appName("StreamExample"). config("spark.sql.warehouse.dir", "hdfs://hacluster/user/sparkhive/warehouse"). config("javax.jdo.option.ConnectionURL", "jdbc:mysql://10.18.98.34:3306/sparksql?characterEncoding=UTF-8"). config("javax.jdo.option.ConnectionDriverName", "com.mysql.jdbc.Driver"). config("javax.jdo.option.ConnectionPassword", "huawei"). config("javax.jdo.option.ConnectionUserName", "sparksql"). getOrCreateCarbonSession() carbonSession.sparkContext.setLogLevel("ERROR") carbonSession.sql("select * from stream_table").show Issue : Select query from spark-sql does not execute successfully for streaming table load. Expected : Select query from spark-sql should execute successfully for streaming table load. -- This message was sent by Atlassian JIRA (v6.4.14#64029)