hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Purtell <apurt...@apache.org>
Subject Re: [Stargate] Cell Store Operation
Date Thu, 28 Jan 2010 05:06:03 GMT
./bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Version: 0.20.3, r902974, Thu Jan 28 12:50:34 CST 2010
hbase(main):001:0> create 'hbase_test', {NAME=>'score'}
0 row(s) in 2.3310 seconds

echo '{"Row":[{"key":"Y2xheQ==","Cell":[{"column":"c2NvcmU6","$":"NzM="}]}]}' > test

curl -d @test -H "Content-type: application/JSON" http://localhost:8080/hbase_test/clay/score

10/01/28 13:03:40 DEBUG stargate.RowResource: POST http://localhost:8080/hbase_test/clay/score
10/01/28 13:03:40 DEBUG stargate.RowResource: PUT row=clay, families={(family=score, keyvalues=(clay/score:/9223372036854775807/Put/vlen=2)}

What am I missing?


   - Andy


----- Original Message ----
> From: Reggie Lai <tclai@yahoo-inc.com>
> To: "hbase-user@hadoop.apache.org" <hbase-user@hadoop.apache.org>
> Sent: Thu, January 28, 2010 12:27:48 PM
> Subject: Re: [Stargate] Cell Store Operation
> 
> ## Schema in JSON:
> {"name":"hbase_test","IS_META":"false","IS_ROOT":"false","ColumnSchema":[{"n
> ame":"score","BLOCKSIZE":"65536","BLOOMFILTER":"false","BLOCKCACHE":"true","
> COMPRESSION":"NONE","VERSIONS":"3","TTL":"2147483647","IN_MEMORY":"false"}]}
> 
> ## Row file in JSON:
> {"Row":[{"key":"Y2xheQ==","Cell":[{"column":"c2NvcmU6","$":"NzM="}]}]}
> 
> ## CURL command:
> curl -d @[row_file] -H "Content-type: application/JSON"
> "[servlet_url]/hbase_test/clay/score"
> 
> Thanks,
> 
> On 1/28/10 12:38 AM, "Greg Lu" wrote:
> 
> > Can you show us the table schema and curl command you're using?
> > 
> > Sent from my iPhone
> > - Greg
> > 
> > On Jan 27, 2010, at 6:28 AM, Reggie Lai wrote:
> > 
> >> Hi,
> >> 
> >> I'm trying out the RESTful front end for Hbase. When I try to do
> >> cell store
> >> with command line CURL, the data successfully stored but error
> >> message shown
> >> as the following:
> >> 
> >> [...] 
> >> org.apache.hadoop.hbase.regionserver.NoSuchColumnFamilyException:
> >> Column family xxx does not exist in region [...]
> >> 
> >> It seems there're quite a few people having hard time on this, too:
> >> http://stackoverflow.com/questions/2135692/how-to-insert-data-into-hbase-tab
> >> les-using-php-stargate-client
> >> 
> >> Any idea?
> >> 
> >> Thanks,
> >> Reggie
> >> 
> > 



      


Mime
View raw message