Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-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 4AEED17452 for ; Sat, 31 Jan 2015 17:25:13 +0000 (UTC) Received: (qmail 46361 invoked by uid 500); 31 Jan 2015 17:25:13 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 46309 invoked by uid 500); 31 Jan 2015 17:25:13 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 46298 invoked by uid 99); 31 Jan 2015 17:25:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Jan 2015 17:25:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 31 Jan 2015 17:24:52 +0000 Received: (qmail 45595 invoked by uid 99); 31 Jan 2015 17:23:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Jan 2015 17:23:34 +0000 Date: Sat, 31 Jan 2015 17:23:34 +0000 (UTC) From: "Gabriel Reid (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-1248) CsvBulkLoadTool is failing with IAE when local index specified for --index-table parameter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PHOENIX-1248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gabriel Reid updated PHOENIX-1248: ---------------------------------- Attachment: PHOENIX-1248b.patch [~rajeshbabu], I finally took a look at this, sorry for taking so long. I've uploaded a slightly alternate patch that (I think) simplifies things by simply using the physical index table name when originally building up the list of index tables, instead of adding an additional configuration parameter for the job, etc. This patch also has the impact that the physical index table name (and not the logical index name) is to be supplied with the --index-table option. I see this as an improvement, as the option is called "index-table" and not "index-name". The patch also includes a test where a local index is loaded together with the core table content. Can you take a look and let me know what you think? > CsvBulkLoadTool is failing with IAE when local index specified for --index-table parameter > ------------------------------------------------------------------------------------------ > > Key: PHOENIX-1248 > URL: https://issues.apache.org/jira/browse/PHOENIX-1248 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.1 > Reporter: rajeshbabu > Assignee: Rajeshbabu Chintaguntla > Fix For: 5.0.0, 4.3 > > Attachments: PHOENIX-1248.patch, PHOENIX-1248b.patch, p1248_0.log > > > {code} > 14/09/11 22:38:11 INFO mapreduce.HFileOutputFormat2: Writing partition information to /tmp/partitions_81e2ee23-836c-4eae-b413-ac6bd6a96623 > 14/09/11 22:38:11 ERROR mapreduce.CsvBulkLoadTool: Import job on table=TEST_IDX failed due to exception:java.lang.IllegalArgumentException: No regions passed > 14/09/11 22:38:11 INFO client.HConnectionManager$HConnectionImplementation: Closing zookeeper sessionid=0x148123145090287 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)