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 CE2E4200BC7 for ; Thu, 10 Nov 2016 16:58:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CCC33160AF7; Thu, 10 Nov 2016 15:58:03 +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 23597160B01 for ; Thu, 10 Nov 2016 16:58:02 +0100 (CET) Received: (qmail 67267 invoked by uid 500); 10 Nov 2016 15:58:02 -0000 Mailing-List: contact issues-help@carbondata.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.incubator.apache.org Delivered-To: mailing list issues@carbondata.incubator.apache.org Received: (qmail 67258 invoked by uid 99); 10 Nov 2016 15:58:02 -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, 10 Nov 2016 15:58:02 +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 A2DAAC023E for ; Thu, 10 Nov 2016 15:58:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-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 U7EPhYfeXOTN for ; Thu, 10 Nov 2016 15:58:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id C7DE760E13 for ; Thu, 10 Nov 2016 15:57:59 +0000 (UTC) Received: (qmail 65838 invoked by uid 99); 10 Nov 2016 15:57:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2016 15:57:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 83BBD2C4C77 for ; Thu, 10 Nov 2016 15:57:58 +0000 (UTC) Date: Thu, 10 Nov 2016 15:57:58 +0000 (UTC) From: "Babulal (JIRA)" To: issues@carbondata.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CARBONDATA-406) Empty Folder is created when data load from dataframe MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 10 Nov 2016 15:58:04 -0000 Babulal created CARBONDATA-406: ---------------------------------- Summary: Empty Folder is created when data load from dataframe Key: CARBONDATA-406 URL: https://issues.apache.org/jira/browse/CARBONDATA-406 Project: CarbonData Issue Type: Bug Components: data-load Affects Versions: 0.1.0-incubating Reporter: Babulal Priority: Trivial Load the data from dataframe to carbon table with tempCSV=false option . Load is success but emtyFolder is getting created in HDFS Cluster size= 3 node . Type:- Stanalone Spark Steps val customSchema = StructType(Array( StructField("imei", StringType, true), StructField("deviceInformationId", IntegerType, true), StructField("mac", StringType, true), StructField("productdate", TimestampType , true), StructField("updatetime", TimestampType, true), StructField("gamePointId", DoubleType, true), StructField("contractNumber", DoubleType, true) )); val df = cc.read.format("com.databricks.spark.csv").option("header", "false").schema(customSchema).load("/opt/data/xyz/100_default_date_11_header.csv"); Start data loading scala> df.write.format("carbondata").option("tableName","mycarbon2").save(); Check Logs leges:{}, groupPrivileges:null, rolePrivileges:null)) INFO 10-11 23:52:44,005 - Creating directory if it doesn't exist: hdfs://10.18.102.236:54310/opt/Carbon/Spark/spark/bin/null/bin/carbonshellstore/hivemetadata/mycarbon4 AUDIT 10-11 23:52:44,037 - [BLR1000007781][root][Thread-1]Table created with Database name [default] and Table name [mycarbon4] INFO 10-11 23:52:44,040 - Successfully able to get the table metadata file lock In the HDFS this Path is empty hdfs://10.18.102.236:54310/opt/Carbon/Spark/spark/bin/null/bin/carbonshellstore/hivemetadata/mycarbon4 Actual Store location is :- hdfs://10.18.102.236:54310/opt/Carbon/mystore Expect :- Empty folder should not be created. . It seems that it is created in SPARK_HOME/bin . SPARK_HOME is /opt/Carbon/Spark/spark/bin -- This message was sent by Atlassian JIRA (v6.3.4#6332)