hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stack <st...@duboce.net>
Subject Re: TableNotFoundException ? on the end of my table name
Date Tue, 15 Jul 2008 03:58:11 GMT
Billy Pearson wrote:
> Thanks stack that done the trick we should update wiki faq #1
>
Good.

I think you meant #2?  I fixed it up Billy.

Thanks,
St.Ack

> Billy
>
> ----- Original Message ----- From: "stack" 
> <stack-+c050i++PmesTnJN9+BGXg@public.gmane.org>
> Newsgroups: gmane.comp.java.hadoop.hbase.user
> To: <hbase-user-7ArZoLwFLBtd/SJB6HiN2Ni2O/JbrIOy@public.gmane.org>
> Sent: Monday, July 07, 2008 6:14 PM
> Subject: Re: TableNotFoundException ? on the end of my table name
>
>
>> Billy:
>>
>> I wonder if this is because hbase is now all byte arrays where once 
>> it was Text.   The convertion from Text to byte array may be leaving 
>> a trailing byte in the array.
>>
>> In your code, presuming your on TRUNK, try doing:
>>
>> HTable table = new HTable(c, "webdata_test");
>>
>> This will leave Text out of the mix.
>>
>> St.Ack
>>
>> P.S. Thanks for the testing of the memcache size fix
>>
>>
>>
>>
>> Billy Pearson wrote:
>>> Tried to make one with thrift and I get the same results when I copy 
>>> the error from the task log the ? turns in to a box
>>>
>>> org.apache.hadoop.hbase.TableNotFoundException: Table 
>>> 'webdata_test?' was not found.
>>> at 
>>> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:534)

>>>
>>> at 
>>> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:470)

>>>
>>> at 
>>> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:430)

>>>
>>> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:124)
>>> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:97)
>>> at 
>>> com.compspy.mapred.RecordImport$MapClass.getTable(RecordImport.java:50)
>>> at com.compspy.mapred.RecordImport$MapClass.map(RecordImport.java:76)
>>> at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
>>> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:219)
>>> at 
>>> org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2124)
>>>
>>> Billy
>>>
>>>
>>>
>>>
>>> "Jean-Daniel Cryans" 
>>> <jdcryans-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote in message 
>>> news:31a243e70807040344t5839289dmaf3704623864d560-JsoAwUIsXouq+1Nelnf3ueG/Ez6ZCGd0@public.gmane.org

>>>
>>>> It really seems shell-related. Can you confirm this on your setup by
>>>> creating a new table using the Java API or thrift or anything else 
>>>> but the
>>>> shell?
>>>>
>>>> Thx
>>>>
>>>> J-D
>>>>
>>>> On Fri, Jul 4, 2008 at 4:35 AM, Billy Pearson 
>>>> <sales-bilS+b3c8gufP+p43NWRKVaTQe2KTcn/@public.gmane.org>
>>>> wrote:
>>>>
>>>>> I run a job on a old table webdata that I have had before I 
>>>>> updated to
>>>>> latest trunk and everything runs fine then
>>>>> I made a new table just like this one with the name webdata_test 
>>>>> and this
>>>>> is what I get in the task logs:
>>>>>
>>>>> 2008-07-04 02:30:06,318 WARN org.apache.hadoop.mapred.TaskTracker: 
>>>>> Error
>>>>> running child
>>>>> org.apache.hadoop.hbase.TableNotFoundException: Table 
>>>>> 'webdata_test?' was
>>>>> not found.
>>>>> at
>>>>> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:534)

>>>>>
>>>>> at
>>>>> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:470)

>>>>>
>>>>> at
>>>>> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:430)

>>>>>
>>>>> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:124)
>>>>> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:97)
>>>>> at 
>>>>> com.compspy.mapred.RecordImport$MapClass.getTable(RecordImport.java:50)

>>>>>
>>>>> at com.compspy.mapred.RecordImport$MapClass.map(RecordImport.java:76)
>>>>> at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
>>>>> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:219)
>>>>> at 
>>>>> org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2124)

>>>>>
>>>>>
>>>>> It has a ? on the end of the name and I can not find out why I 
>>>>> tryed this
>>>>> with several new tables and all turn out the same error above 
>>>>> execpt the old
>>>>> table webdata
>>>>>
>>>>> my job does this
>>>>> HTable table = new HTable(c, new Text("webdata"));
>>>>> no problem but any new table I make I get the above error like 
>>>>> when I do
>>>>> this
>>>>> HTable table = new HTable(c, new Text("webdata_test"));
>>>>>
>>>>> I scaned meta with the shell and the name appears correctly there 
>>>>> from what
>>>>> I can tell.
>>>>> I have been createing the tables with the shell.
>>>>>
>>>>> Any suggestions on where the ? is comming from?
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>>
>
>


Mime
View raw message