Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31860945A for ; Fri, 21 Oct 2011 13:06:53 +0000 (UTC) Received: (qmail 95626 invoked by uid 500); 21 Oct 2011 13:06:53 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 95606 invoked by uid 500); 21 Oct 2011 13:06:53 -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 95598 invoked by uid 99); 21 Oct 2011 13:06:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2011 13:06:53 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2011 13:06:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5E897315EF1 for ; Fri, 21 Oct 2011 13:04:32 +0000 (UTC) Date: Fri, 21 Oct 2011 13:04:32 +0000 (UTC) From: "Alexey Zotov (Created) (JIRA)" To: issues@hbase.apache.org Message-ID: <228784787.750.1319202272388.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HBASE-4644) LoadIncrementalHFiles ignores additional configurations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 LoadIncrementalHFiles ignores additional configurations ------------------------------------------------------- Key: HBASE-4644 URL: https://issues.apache.org/jira/browse/HBASE-4644 Project: HBase Issue Type: Bug Affects Versions: 0.90.3 Environment: Centos 5.5, Cloudera cdh3u1 distribution. Reporter: Alexey Zotov Method run ignores configuration if LoadIncrementalHFiles was runned from user's application: {code} LoadIncrementalHFiles hFilesMergeTask = new LoadIncrementalHFiles(conf); ToolRunner.run(hFilesMergeTask, args); {code} Quick fix: {code} --- LoadIncrementalHFiles.java 2011-07-18 08:20:38.000000000 +0400 +++ LoadIncrementalHFiles.java 2011-10-19 18:08:31.228972054 +0400 @@ -447,14 +446,20 @@ if (!tableExists) this.createTable(tableName,dirPath); Path hfofDir = new Path(dirPath); - HTable table = new HTable(tableName); + HTable table; + Configuration configuration = getConf(); + if (configuration != null) { + table = new HTable(configuration, tableName); + } else { + table = new HTable(tableName); + } doBulkLoad(hfofDir, table); return 0; } {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira