hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Encountered problems when prefetch META table
Date Fri, 19 Jul 2013 22:17:52 GMT
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 <zhenzhen.yan@seagate.com>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 <yuzhihong@gmail.com> 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 <zhenzhen.yan@seagate.com
> > >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.<init>(HTable.java:213)
> > > at org.apache.hadoop.hbase.client.HTable.<init>(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.<init>(HTable.java:213)
> > > at org.apache.hadoop.hbase.client.HTable.<init>(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)
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message