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 E358B91DA for ; Thu, 29 Mar 2012 22:47:50 +0000 (UTC) Received: (qmail 28997 invoked by uid 500); 29 Mar 2012 22:47:50 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 28960 invoked by uid 500); 29 Mar 2012 22:47:50 -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 28952 invoked by uid 99); 29 Mar 2012 22:47:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 22:47:50 +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.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 22:47:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2D23C34DB03 for ; Thu, 29 Mar 2012 22:47:29 +0000 (UTC) Date: Thu, 29 Mar 2012 22:47:29 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1136695987.35629.1333061249186.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <110858148.24867.1315962969354.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4398) If HRegionPartitioner is used in MapReduce, client side configurations are overwritten by hbase-site.xml. 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/HBASE-4398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241891#comment-13241891 ] Hudson commented on HBASE-4398: ------------------------------- Integrated in HBase-0.94 #67 (See [https://builds.apache.org/job/HBase-0.94/67/]) HBASE-4398 If HRegionPartitioner is used in MapReduce, client side configurations are overwritten by hbase-site.xml (Revision 1307117) Result = SUCCESS stack : Files : * /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/mapreduce/HRegionPartitioner.java > If HRegionPartitioner is used in MapReduce, client side configurations are overwritten by hbase-site.xml. > --------------------------------------------------------------------------------------------------------- > > Key: HBASE-4398 > URL: https://issues.apache.org/jira/browse/HBASE-4398 > Project: HBase > Issue Type: Bug > Components: mapreduce > Affects Versions: 0.90.4 > Reporter: Takuya Ueshin > Assignee: Takuya Ueshin > Fix For: 0.92.2, 0.94.1 > > Attachments: HBASE-4398.patch > > > If HRegionPartitioner is used in MapReduce, client side configurations are overwritten by hbase-site.xml. > We can reproduce the problem by the following instructions: > {noformat} > - Add HRegionPartitioner.class to the 4th argument of > TableMapReduceUtil#initTableReducerJob() > at line around 133 > in src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableMapReduce.java > - Change or remove "hbase.zookeeper.property.clientPort" property > in hbase-site.xml ( for example, changed to 12345 ). > - run testMultiRegionTable() > {noformat} > Then I got error messages as following: > {noformat} > 2011-09-12 22:28:51,020 DEBUG [Thread-832] zookeeper.ZKUtil(93): hconnection opening connection to ZooKeeper with ensemble (localhost:12345) > 2011-09-12 22:28:51,022 INFO [Thread-832] zookeeper.RecoverableZooKeeper(89): The identifier of this process is 43200@imac.local > 2011-09-12 22:28:51,123 WARN [Thread-832] zookeeper.RecoverableZooKeeper(161): Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master > 2011-09-12 22:28:51,123 INFO [Thread-832] zookeeper.RecoverableZooKeeper(173): The 1 times to retry ZooKeeper after sleeping 1000 ms > ===== > 2011-09-12 22:29:02,418 ERROR [Thread-832] mapreduce.HRegionPartitioner(125): java.io.IOException: org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@2e54e48d closed > 2011-09-12 22:29:02,422 WARN [Thread-832] mapred.LocalJobRunner$Job(256): job_local_0001 > java.lang.NullPointerException > at org.apache.hadoop.hbase.mapreduce.HRegionPartitioner.setConf(HRegionPartitioner.java:128) > at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:62) > at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117) > at org.apache.hadoop.mapred.MapTask$NewOutputCollector.(MapTask.java:527) > at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:613) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305) > at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:177) > {noformat} > I think HTable should connect to ZooKeeper at port 21818 configured at client side instead of 12345 in hbase-site.xml > and It might be caused by "HBaseConfiguration.addHbaseResources(conf);" in HRegionPartitioner#setConf(Configuration). > And this might mean that all of client side configurations, also configured in hbase-site.xml, are overwritten caused by this problem. -- 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