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 019DD200C08 for ; Thu, 26 Jan 2017 18:20:38 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 00282160B4C; Thu, 26 Jan 2017 17:20:38 +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 4ABA1160B31 for ; Thu, 26 Jan 2017 18:20:37 +0100 (CET) Received: (qmail 62802 invoked by uid 500); 26 Jan 2017 17:20:36 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 62791 invoked by uid 99); 26 Jan 2017 17:20:36 -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; Thu, 26 Jan 2017 17:20:36 +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 D6E4AC16AD for ; Thu, 26 Jan 2017 17:20:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id fg_ViAs609GL for ; Thu, 26 Jan 2017 17:20:31 +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 967DE5FE3E for ; Thu, 26 Jan 2017 17:20:29 +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 29EB8E0416 for ; Thu, 26 Jan 2017 17:20:25 +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 9E49425293 for ; Thu, 26 Jan 2017 17:20:24 +0000 (UTC) Date: Thu, 26 Jan 2017 17:20:24 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-17547) HBase-Spark Module : TableCatelog doesn't supports multiple columns from Single Column family MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 26 Jan 2017 17:20:38 -0000 [ https://issues.apache.org/jira/browse/HBASE-17547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu updated HBASE-17547: --------------------------- Status: Patch Available (was: Open) > HBase-Spark Module : TableCatelog doesn't supports multiple columns from Single Column family > --------------------------------------------------------------------------------------------- > > Key: HBASE-17547 > URL: https://issues.apache.org/jira/browse/HBASE-17547 > Project: HBase > Issue Type: Bug > Components: spark > Affects Versions: 1.1.8 > Reporter: Chetan Khatri > Assignee: Chetan Khatri > Attachments: HBASE-17547.master.001.patch > > > Issue: HBase-Spark Module : TableCatelog doesn't supports multiple columns from single column family. > Description: > Datasource API under HBase-Spark Module having error, which accessing more than 1 columns from same column family. > If your catalog having the format where you have multiple columns from single / multiple column family, at that point it throws an exception, for example. > def empcatalog = s"""{ > |"table":{"namespace":"empschema", "name":"emp"}, > |"rowkey":"key", > |"columns":{ > |"empNumber":{"cf":"rowkey", "col":"key", "type":"string"}, > |"city":{"cf":"pdata", "col":"city", "type":"string"}, > |"empName":{"cf":"pdata", "col":"name", "type":"string"}, > |"jobDesignation":{"cf":"pdata", "col":"designation", "type":"string"}, > |"salary":{"cf":"pdata", "col":"salary", "type":"string"} > |} > |}""".stripMargin > Here, we have city, name, designation, salary from pdata column family. > Exception while saving Dataframe at HBase. > java.lang.IllegalArgumentException: Family 'pdata' already exists so cannot be added > at org.apache.hadoop.hbase.HTableDescriptor.addFamily(HTableDescriptor.java:827) > at org.apache.spark.sql.execution.datasources.hbase.HBaseRelation$$anonfun$createTable$1.apply(HBaseRelation.scala:98) > at org.apache.spark.sql.execution.datasources.hbase.HBaseRelation$$anonfun$createTable$1.apply(HBaseRelation.scala:95) > at scala.collection.immutable.List.foreach(List.scala:381) > at org.apache.spark.sql.execution.datasources.hbase.HBaseRelation.createTable(HBaseRelation.scala:95) > at org.apache.spark.sql.execution.datasources.hbase.DefaultSource.createRelation(HBaseRelation.scala:58) > at org.apache.spark.sql.execution.datasources.DataSource.write(DataSource.scala:457) > at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:211) > HBaseTableCatalog.scala class has getColumnFamilies method which returns duplicates, which should not return. > Unit test has been written for the same at DefaultSourceSuite.scala, writeCatalog object definition. -- This message was sent by Atlassian JIRA (v6.3.4#6332)