Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 26952 invoked from network); 14 Jun 2010 19:33:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Jun 2010 19:33:27 -0000 Received: (qmail 86269 invoked by uid 500); 14 Jun 2010 19:33:26 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 86226 invoked by uid 500); 14 Jun 2010 19:33:25 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 86218 invoked by uid 99); 14 Jun 2010 19:33:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jun 2010 19:33:25 +0000 X-ASF-Spam-Status: No, hits=4.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,URI_HEX,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.83.41] (HELO mail-gw0-f41.google.com) (74.125.83.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jun 2010 19:33:19 +0000 Received: by gwaa18 with SMTP id a18so2554326gwa.14 for ; Mon, 14 Jun 2010 12:32:57 -0700 (PDT) Received: by 10.150.56.41 with SMTP id e41mr7137064yba.348.1276543977673; Mon, 14 Jun 2010 12:32:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.161.141 with HTTP; Mon, 14 Jun 2010 12:32:37 -0700 (PDT) In-Reply-To: References: From: Todd Lipcon Date: Mon, 14 Jun 2010 12:32:37 -0700 Message-ID: Subject: Re: Bulk load problems.. To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=000e0cd71f665454be0489028ec8 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd71f665454be0489028ec8 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Jun 14, 2010 at 12:14 PM, Vidhyashankar Venkataraman < vidhyash@yahoo-inc.com> wrote: > >> Most likely you are not appending the correct metadata entries (in > >> particular the log sequence ID) > Since I am not creating any logs, the max log sequence ID should be -1, > isnt it? > > In trunk there's a feature whereby the metadata can include a special "this is a bulk load" entry. In 0.20, you have to pick some sequence number - I'd go with something like 0 for a bulk load. Check out what HFileOutputFormat does and copy that :) -Todd > > On 6/14/10 11:36 AM, "Vidhyashankar Venkataraman" > wrote: > > >> Most likely you are not appending the correct metadata entries (in > >> particular the log sequence ID) > Can you elaborate? What additional info do I need to add when I > create/close Hfiles? > > Thank you > vidhya > > > On 6/14/10 11:22 AM, "Todd Lipcon" wrote: > > On Mon, Jun 14, 2010 at 11:08 AM, Vidhyashankar Venkataraman < > vidhyash@yahoo-inc.com> wrote: > > > I tried dumping my own Hfiles (similar to HFileOutputFormat: open an > > Hfile.writer, append the key value pairs and then close the writer) and > > tried loading them using the ruby script.. I had altered loadtable.rb to > > modify the block size for the column family. > > > > The script reported no errors. But on checking with the web interface, > > (table's name is DocData) > > http://b5120231.yst.yahoo.net:60010/table.jsp?name=DocData > > > > I got this: > > org.apache.hadoop.hbase.client.NoServerForRegionException: No server > > address listed in .META. for region DocData,,1276537980228 > > > > And in each region server, I got this > > 2010-06-14 17:57:48,846 ERROR > > org.apache.hadoop.hbase.regionserver.HRegionServer: Error opening > > DocData,0000133832,1276537980224 > > java.lang.IllegalAccessError: Has not been initialized > > at > > > org.apache.hadoop.hbase.regionserver.StoreFile.getMaxSequenceId(StoreFile.java:216) > > at > > org.apache.hadoop.hbase.regionserver.Store.loadStoreFiles(Store.java:417) > > at > org.apache.hadoop.hbase.regionserver.Store.(Store.java:221) > > at > > > org.apache.hadoop.hbase.regionserver.HRegion.instantiateHStore(HRegion.java:1549) > > at > > org.apache.hadoop.hbase.regionserver.HRegion.initialize(HRegion.java:312) > > at > > > org.apache.hadoop.hbase.regionserver.HRegionServer.instantiateRegion(HRegionServer.java:1564) > > at > > > org.apache.hadoop.hbase.regionserver.HRegionServer.openRegion(HRegionServer.java:1531) > > at > > > org.apache.hadoop.hbase.regionserver.HRegionServer$Worker.run(HRegionServer.java:1451) > > at java.lang.Thread.run(Thread.java:619) > > > > > > I am using Hbase 0.20.3... Have I made a mistake while dumping Hfiles? > > > > > Most likely you are not appending the correct metadata entries (in > particular the log sequence ID) > > -Todd > > > > -- > Todd Lipcon > Software Engineer, Cloudera > > > -- Todd Lipcon Software Engineer, Cloudera --000e0cd71f665454be0489028ec8--