Stand alone HBASE server -


i have installed hbase , set property hbase.zookeeper.property.clientport 2222

 <property>         <name>hbase.zookeeper.property.clientport</name>         <value>2222</value>   </property> 

when try create table using curl command

curl -v -d "<?xml version='1.0' encoding='utf-8'?><table><name>users</name> <columnfamilies><columnfamily><name>habbit</name></columnfamily></columnfamilies></table>" -h "content-type:text/xml" http://127.0.0.1:2222/api

the reply get

* connect() localhost port 2222 *   trying 127.0.0.1... connected * connected localhost (127.0.0.1) port 2222  post /api http/1.1 user-agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 openssl/0.9.8b zlib/1.2.3 libidn/0.6.5 host: localhost:2222 accept: */* content-type:text/xml content-length: 152   empty reply server  connection #0 host localhost left intact  curl: (52) empty reply server  closing connection #0 

i know hbase server running because able hit

http://localhost:60010/master-status 

the question should not give me empty response , table not created

bapu

i had missed step of starting hbase rest server

/bin/hbase rest start

with things atarted working me.

also using old ruby client connect hbase correct way connect hbase ruby client here

https://github.com/greglu/hbase-stargate#readme


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -