2013-05-10 101 views
0

我已经安装了HBase的,并设置属性hbase.zookeeper.property.clientPort到2222单机HBASE服务器

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

当我尝试使用curl命令

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

创建一个表

的答复,我得到

* About to connect() to localhost port 2222 
* Trying 127.0.0.1... connected 
* Connected to 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 from server 

Connection #0 to host localhost left intact 

curl: (52) Empty reply from server 

Closing connection #0 

我知道HBase的服务器是银行经营荷兰国际集团,因为我能够打

http://localhost:60010/master-status 

的问题是,它不应该给我一个空的响应,也不会创建

巴普

+1

,问题是......? – Ramunas 2013-05-10 10:14:32

+0

在最后添加了该问题 – sethi 2013-05-10 11:31:28

回答

1

我错过了启动的HBase的步骤其余服务器

/斌/ HBase的休息开始

这个事情atarted为我工作。

而且我使用的是旧的红宝石客户端连接到HBase的从红宝石客户端连接到HBase的正确方法是这里

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