HBase rest API 无法获取命名空间

HBase rest API not working for getting namespaces

我配置了HBase-1.1.5 rest服务。 API 以下工作正常

但是获取命名空间和创建新的 table 不起作用。

  1. 列出命名空间

    $ curl -vi -X GET \
        -H "Accept: application/json" \
        "http://example.com:8000/namespaces/"
    

Exception: HTTP Error 405 - Method not allowed

  1. 创建或更新 table 架构

    $ curl -vi -X POST \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
      -d '{"TableSchema": {"name": "users","ColumnSchema": { "name": "cf" }}' \
      "http://example.com:8000/users/schema"
    

Exception: Bad request - The remote server returned an error: (500) Internal Server Error

我正在关注以下文档:

为什么不起作用?任何其他可用于 HBase 的示例 rest API?

1.1.5 版本中未添加 HBase 命名空间支持。

此支持可从 1.2.x、1.3.x 和 2.x 版本获得。

https://issues.apache.org/jira/browse/HBASE-14147