From dev-return-2957-apmail-crunch-dev-archive=crunch.apache.org@crunch.apache.org Fri Aug 2 12:33:58 2013 Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D81A610F1B for ; Fri, 2 Aug 2013 12:33:58 +0000 (UTC) Received: (qmail 80479 invoked by uid 500); 2 Aug 2013 12:33:57 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 79643 invoked by uid 500); 2 Aug 2013 12:33:51 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 79275 invoked by uid 500); 2 Aug 2013 12:33:48 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 79267 invoked by uid 99); 2 Aug 2013 12:33:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Aug 2013 12:33:48 +0000 Date: Fri, 2 Aug 2013 12:33:48 +0000 (UTC) From: "Micah Whitacre (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CRUNCH-245) hbase.zookeeper.quorum is overriden by hbase-default.xml MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CRUNCH-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13727627#comment-13727627 ] Micah Whitacre commented on CRUNCH-245: --------------------------------------- +1 for removing. I would expect consumers to have used HBaseConfiguration.create() or add the resources themselves prior to constructing the Pipeline. > hbase.zookeeper.quorum is overriden by hbase-default.xml > -------------------------------------------------------- > > Key: CRUNCH-245 > URL: https://issues.apache.org/jira/browse/CRUNCH-245 > Project: Crunch > Issue Type: Bug > Components: IO > Reporter: Chao Shi > Assignee: Chao Shi > > I'm using crunch-hbase on a small cluster with 4 nodes. The job complains cannot talk to ZK at *localhost*. In fact, I specify hbase.zookeeper.quorum programmatically, but it seems it is not passed to the job (as observed in JT's webpage). > After some investigation, I found the cause is the following code. I have no idea why addHBaseResources is called here. Anybody knows? After comment it out, the job can read data from HBase. > @Override > public void configureSource(Job job, int inputId) throws IOException { > Configuration conf = job.getConfiguration(); > HBaseConfiguration.addHbaseResources(conf); > TableMapReduceUtil.addDependencyJars(job); > if (inputId == -1) { > job.setMapperClass(CrunchMapper.class); > job.setInputFormatClass(inputBundle.getFormatClass()); > inputBundle.configure(job.getConfiguration()); > } else { > Path dummy = new Path("/hbase/" + table); > CrunchInputs.addInputPath(job, dummy, inputBundle, inputId); > } > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira