hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karel Minařík <karel.mina...@gmail.com>
Subject Cannot create table over REST
Date Tue, 13 Sep 2011 20:15:42 GMT
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.sun.jersey.spi.container.ContainerResponse mapMappableContainerException
SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
java.lang.NullPointerException
	at org.apache.hadoop.hbase.util.Bytes.toBytes(Bytes.java:401)

What I'm doing wrong?

Thanks!,

Karel


Mime
View raw message