Re: Cannot create table over REST

2011-09-13 Thread Karel Minařík
@Andy: Great! @Sonal: I've read it cover to cover -- unfortunately, the REST section does not give examples for _creating_ a table (schema), so I had to reverse-engineer the docs for _querying_ the table (schema). I've added a comment to the appropriate chapter [http://ofps.oreilly.com/titles/

Re: Cannot create table over REST

2011-09-13 Thread Sonal Goyal
;> Accept: application/json > >> Content-Type: application/json > >> Content-Length: 48 > >> > > < HTTP/1.1 201 Created > > < Location: http://localhost:8085/test/schema > > < Content-Length: 0 > > > > > > Best regards

Re: Cannot create table over REST

2011-09-13 Thread Andrew Purtell
ack. - Piet Hein (via Tom White) > >From: Karel Minařík >To: user@hbase.apache.org >Sent: Tuesday, September 13, 2011 9:33 PM >Subject: Re: Cannot create table over REST > >Thanks, Andy! I see I've had one more `@` in the column "name

Re: Cannot create table over REST

2011-09-13 Thread Karel Minařík
gards, > > > - Andy > > > Problems worthy of attack prove their worth by hitting back. - Piet Hein (via > Tom White) > > > - Original Message - >> From: Karel Minařík >> To: user@hbase.apache.org >> Cc: >> Sent: Tuesday,

Re: Cannot create table over REST

2011-09-13 Thread Andrew Purtell
on: http://localhost:8085/test/schema < Content-Length: 0 Best regards, - Andy Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White) - Original Message - > From: Karel Minařík > To: user@hbase.apache.org > Cc: > Sent: Tuesday, Septembe

Cannot create table over REST

2011-09-13 Thread Karel Minařík
Hi, when I try to create a table via the REST interface: curl -v -X PUT \ 'http://localhost:8080/test/schema' \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{"@name":"test","ColumnSchema":[{"@name":"data"}]}' I get an exception: Sep 13, 2011 10:11:47 PM com.