我已经安装了 hbase 并将属性 hbase.zookeeper.property.clientPort 设置为 2222
<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
问题是它不应该给我一个空的回复,并且表格也没有创建
八浦