Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3FEB310590 for ; Fri, 19 Jul 2013 22:18:22 +0000 (UTC) Received: (qmail 34681 invoked by uid 500); 19 Jul 2013 22:18:20 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 34631 invoked by uid 500); 19 Jul 2013 22:18:20 -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 34623 invoked by uid 99); 19 Jul 2013 22:18:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2013 22:18:20 +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 (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.220.42 as permitted sender) Received: from [209.85.220.42] (HELO mail-pa0-f42.google.com) (209.85.220.42) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2013 22:18:14 +0000 Received: by mail-pa0-f42.google.com with SMTP id rl6so4924841pac.29 for ; Fri, 19 Jul 2013 15:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=HMuZrut8Z1f5VyJASvejGfqF2b99lSSWof81jmii3u0=; b=M2lCoeDl6jWA7/guUl8RCKyc6Vudz0no/dT7WqqF9TAI3gEpo9Z7a/GsZOkd6u/Qf+ MrT9iYYZUPTmSQt2uIZsSbhTco6GXR//fVpJN6r24Bk+S8nDVFxaunZHbQA/VKpXItsG V8S5CBQiQ1kaH4KldVBAustHEUSYkVbgwrbKMQ0H+Nx/v4W9EvnGbhEq0Rj/EzUzhtiI RVX1mlr6mOOdt9bE85H/buvzJbXd02VyfsCR/VSCeXjqiO1COyrxollt7Eav6krgkuRs tM8Etg71GyoTjuHtEnOrsdBU94rmuWaFL9cuOe42JxGAanjcTSrhqzy+MiRwA8Srvc4k Ih5g== MIME-Version: 1.0 X-Received: by 10.66.37.43 with SMTP id v11mr20453314paj.108.1374272272594; Fri, 19 Jul 2013 15:17:52 -0700 (PDT) Received: by 10.70.61.167 with HTTP; Fri, 19 Jul 2013 15:17:52 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Jul 2013 15:17:52 -0700 Message-ID: Subject: Re: Encountered problems when prefetch META table From: Ted Yu To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=bcaec5304f45a1fbe004e1e4b265 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec5304f45a1fbe004e1e4b265 Content-Type: text/plain; charset=ISO-8859-1 How did you create the table ? If using shell, you can get help by typing: help 'create' You can also create table programmatically. See http://hbase.apache.org/book.html#rowkey.regionsplits Cheers On Fri, Jul 19, 2013 at 3:05 PM, Zhenzhen Yan wrote: > Hi, Ted, in the hbase shell I typed 'list', the 'HBaseSamples' table is not > there. Following is the java file. > > package hbase; > > import java.io.IOException; > > import org.apache.hadoop.conf.Configuration; > import org.apache.hadoop.hbase.HBaseConfiguration; > import org.apache.hadoop.hbase.client.HTable; > import org.apache.hadoop.hbase.client.Put; > import static org.apache.hadoop.hbase.util.Bytes.*; > > public class PutExample { > > public static void main(String[] args) throws IOException { > Configuration conf = HBaseConfiguration.create(); > HTable hTable = new HTable(conf, "HBaseSamples"); > Put put1 = new Put(toBytes("row1")); > put1.add(toBytes("test"), toBytes("col1"), toBytes("val1")); > put1.add(toBytes("test"), toBytes("col2"), toBytes("val2")); > hTable.put(put1); > hTable.close(); > } > > } > > > > On Fri, Jul 19, 2013 at 3:33 PM, Ted Yu wrote: > > > Exception in thread "main" > org.apache.hadoop.hbase.TableNotFoundException: > > HBaseSamples > > > > Were you able to access HBaseSamples in hbase shell ? > > > > Did you see any exception in master log w.r.t. the creation of > HBaseSamples > > ? > > > > Cheers > > > > On Fri, Jul 19, 2013 at 2:29 PM, Zhenzhen Yan > >wrote: > > > > > Hello, I'm a newbie to Hadoop HBase. > > > I downloaded and installed Hadoop Traning Ubundu Image (Cloudera > > > Distribution for Hadoop). > > > When I tried to create a table and create put instances using java > API. I > > > got the following error. Could anybody help me out? Thanks! > > > > > > 13/07/19 16:46:45 WARN > > client.HConnectionManager$HConnectionImplementation: > > > Encountered problems when prefetch META table: > > > org.apache.hadoop.hbase.TableNotFoundException: Cannot find row in > .META. > > > for table: HBaseSamples, row=HBaseSamples,,99999999999999 > > > at > > > > org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:158) > > > at > > > > > > org.apache.hadoop.hbase.client.MetaScanner.access$000(MetaScanner.java:52) > > > at > > > > > > org.apache.hadoop.hbase.client.MetaScanner$1.connect(MetaScanner.java:130) > > > at > > > > > > org.apache.hadoop.hbase.client.MetaScanner$1.connect(MetaScanner.java:127) > > > at > > > > > > > > > org.apache.hadoop.hbase.client.HConnectionManager.execute(HConnectionManager.java:360) > > > at > > > > org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:127) > > > at > > > > org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:103) > > > at > > > > > > > > > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.prefetchRegionCache(HConnectionManager.java:876) > > > at > > > > > > > > > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:930) > > > at > > > > > > > > > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:818) > > > at > > > > > > > > > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:782) > > > at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:249) > > > at org.apache.hadoop.hbase.client.HTable.(HTable.java:213) > > > at org.apache.hadoop.hbase.client.HTable.(HTable.java:171) > > > at hbase.PutExample.main(PutExample.java:15) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > at > > > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > at java.lang.reflect.Method.invoke(Method.java:597) > > > at org.apache.hadoop.util.RunJar.main(RunJar.java:208) > > > Exception in thread "main" > > org.apache.hadoop.hbase.TableNotFoundException: > > > HBaseSamples > > > at > > > > > > > > > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:952) > > > at > > > > > > > > > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:818) > > > at > > > > > > > > > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:782) > > > at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:249) > > > at org.apache.hadoop.hbase.client.HTable.(HTable.java:213) > > > at org.apache.hadoop.hbase.client.HTable.(HTable.java:171) > > > at hbase.PutExample.main(PutExample.java:15) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > at > > > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > at java.lang.reflect.Method.invoke(Method.java:597) > > > at org.apache.hadoop.util.RunJar.main(RunJar.java:208) > > > > > > --bcaec5304f45a1fbe004e1e4b265--