Return-Path: Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: (qmail 84116 invoked from network); 18 Feb 2011 00:14:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2011 00:14:29 -0000 Received: (qmail 4961 invoked by uid 500); 18 Feb 2011 00:14:28 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 4898 invoked by uid 500); 18 Feb 2011 00:14:28 -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 4890 invoked by uid 99); 18 Feb 2011 00:14:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 00:14:28 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of todd@cloudera.com designates 209.85.214.169 as permitted sender) Received: from [209.85.214.169] (HELO mail-iw0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 00:14:22 +0000 Received: by iwc10 with SMTP id 10so3085565iwc.14 for ; Thu, 17 Feb 2011 16:14:02 -0800 (PST) Received: by 10.231.171.197 with SMTP id i5mr48113ibz.54.1297988042104; Thu, 17 Feb 2011 16:14:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.42.201 with HTTP; Thu, 17 Feb 2011 16:13:42 -0800 (PST) In-Reply-To: References: From: Todd Lipcon Date: Thu, 17 Feb 2011 16:13:42 -0800 Message-ID: Subject: Re: version check for hbase-default.xml To: dev@hbase.apache.org Cc: Ted Yu Content-Type: multipart/alternative; boundary=001636c924362c2001049c8364b6 --001636c924362c2001049c8364b6 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Feb 17, 2011 at 4:03 PM, Ted Yu wrote: > An alternative is to check the value of a well-known config parameter which > has changed from 20.6 (0.89) to 0.90.x > > After almost all 0.20.6 and 0.89 deployments are gone in the world, toggle > to version check. > Better would be to use the classloader to find the hbase-default.xml path that got loaded and include that in the error. File a JIRA and let's fix for 0.90.2. -Todd > > On Thu, Feb 17, 2011 at 3:51 PM, Ted Yu wrote: > > > 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 > >> > > > > > -- Todd Lipcon Software Engineer, Cloudera --001636c924362c2001049c8364b6--