Return-Path: Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: (qmail 68709 invoked from network); 17 Feb 2011 23:51:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2011 23:51:54 -0000 Received: (qmail 88873 invoked by uid 500); 17 Feb 2011 23:51:54 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 88815 invoked by uid 500); 17 Feb 2011 23:51:53 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 88807 invoked by uid 99); 17 Feb 2011 23:51:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 23:51:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 209.85.161.41 as permitted sender) Received: from [209.85.161.41] (HELO mail-fx0-f41.google.com) (209.85.161.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 23:51:48 +0000 Received: by fxm12 with SMTP id 12so3265481fxm.14 for ; Thu, 17 Feb 2011 15:51:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=PBYlOYye3rQMDHN1KEpSqG4nC3c3V4ATFwOOEMTI2tc=; b=scgtOeW9HS5RS2PY0oNtPOR7iF1UGQX+/7tSKdwm5aM+LCajZIVRzfGu2kQswJwH2I weVdpLayfzsyyuTQTXzfFQOAlUkw+YNU90jwwPKyurM5fncCDgMe2QQgmjj1GtZ+M+Zg cn/8b5wDvMXnDaWZL/AJ3X4BnUdqD2axrKQnc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Awvip6IOzcH9Wj9BMdhDuQ1zMXM9SQQoOmtaZaXh0seAYYA0QCbWPSjAhyUuArG92v NkND98R31uIm/ssYNeo3XivRN8Uh7vf1QzhXdgFISDLmIEOUT6gKfocNsNud13dkMQIL HUWmYSfo+ymWSqeZ7ArhvNuPgAci80ABOmAmM= MIME-Version: 1.0 Received: by 10.223.101.131 with SMTP id c3mr69756fao.50.1297986686673; Thu, 17 Feb 2011 15:51:26 -0800 (PST) Received: by 10.223.151.6 with HTTP; Thu, 17 Feb 2011 15:51:26 -0800 (PST) In-Reply-To: References: Date: Thu, 17 Feb 2011 15:51:26 -0800 Message-ID: Subject: Re: version check for hbase-default.xml From: Ted Yu To: dev@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf3054a71961e554049c8313c5 --20cf3054a71961e554049c8313c5 Content-Type: text/plain; charset=ISO-8859-1 Your change cannot distinguish missing hbase-default.xml and the old hbase-default.xml This makes debugging hard, considering what I said in my first email. On Thu, Feb 17, 2011 at 3:26 PM, Todd Lipcon wrote: > Then you've probably got another hbase-default somewhere on your classpath. > > > On Thu, Feb 17, 2011 at 3:26 PM, Ted Yu wrote: > >> I checked the size of the packaged file which is the same as the build >> artifact: >> >> tyumac:hbase-0.90.1 tyu$ ls -l target/classes/hbase-default.xml >> -rw-r--r-- 1 tyu staff 23610 Feb 11 11:50 >> target/classes/hbase-default.xml >> >> I also unpacked the file and saw the correct version. >> >> >> On Thu, Feb 17, 2011 at 3:17 PM, Todd Lipcon wrote: >> >>> Where are you getting the hbase-defaults.xml file that you're packaging >>> into your jar? >>> >>> You need to take it out of the hbase jar that ships with 0.90.1 and >>> package that one -- my guess is you've packaged one from an older version. >>> >>> -Todd >>> >>> On Thu, Feb 17, 2011 at 3:01 PM, Ted Yu wrote: >>> >>>> We re-package hbase jar into the jar containing our classes. >>>> >>>> [sjc1-hadoop0.sjc1:hadoop 36789]jar tvf >>>> /usr/local/hadoop/sims/lib/flow-m2m_hbase_regr-38.jar | grep MetaSca >>>> 7030 Fri Feb 11 11:50:28 GMT+00:00 2011 >>>> org/apache/hadoop/hbase/client/MetaScanner.class >>>> 2027 Fri Feb 11 11:50:28 GMT+00:00 2011 >>>> org/apache/hadoop/hbase/client/MetaScanner$1.class >>>> [sjc1-hadoop0.sjc1:hadoop 36791]jar tvf >>>> /usr/local/hadoop/sims/lib/flow-m2m_hbase_regr-38.jar | grep default | >>>> grep >>>> hbase >>>> 23610 Fri Feb 11 11:50:22 GMT+00:00 2011 hbase-default.xml >>>> >>>> If the above jar structure is incorrect, please comment. >>>> >>>> Using 0.90.1 jar as client, I saw: >>>> >>>> INFO [2011-02-17 06:52:23] (ExecUtil.java:261) - >>>> java.lang.RuntimeException: hbase-default.xml file seems to be for and >>>> old version of HBase (null), this version is 0.90.1 >>>> INFO [2011-02-17 06:52:23] (ExecUtil.java:261) - at >>>> >>>> org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:66) >>>> INFO [2011-02-17 06:52:23] (ExecUtil.java:261) - at >>>> >>>> org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:76) >>>> INFO [2011-02-17 06:52:23] (ExecUtil.java:261) - at >>>> >>>> org.apache.hadoop.hbase.HBaseConfiguration.(HBaseConfiguration.java:44) >>>> INFO [2011-02-17 06:52:23] (ExecUtil.java:261) - at >>>> >>>> org.apache.hadoop.hbase.HBaseConfiguration.(HBaseConfiguration.java:56) >>>> >>>> I looked at Configuration.java which has quiet mode setter. But the >>>> above >>>> exception happened in ctor. >>>> >>>> Please advise how I can troubleshoot this. >>>> >>> >>> >>> >>> -- >>> Todd Lipcon >>> Software Engineer, Cloudera >>> >> >> > > > -- > Todd Lipcon > Software Engineer, Cloudera > --20cf3054a71961e554049c8313c5--