它是 Hbase REST API `get version/cluster` 中的错误吗?
Is it a bug in Hbase REST API `get version/cluster`?
Hbase REST API,这个接口get 'version/cluster'
,当我使用header Accept: application/json
时,响应不是JSON而是纯文本。
curl -X GET \
-H "Accept: application/json" \
"http://localhost:8888/version/cluster"
# "1.2.2"
但是当我使用Accept: text/xml
时,响应是正确的XML。
curl -X GET \
-H "Accept: text/xml" \
"http://localhost:8888/version/cluster"
# <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ClusterVersion>1.2.2</ClusterVersion>
Hbase REST API,这个接口get 'version/cluster'
,当我使用header Accept: application/json
时,响应不是JSON而是纯文本。
curl -X GET \
-H "Accept: application/json" \
"http://localhost:8888/version/cluster"
# "1.2.2"
但是当我使用Accept: text/xml
时,响应是正确的XML。
curl -X GET \
-H "Accept: text/xml" \
"http://localhost:8888/version/cluster"
# <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ClusterVersion>1.2.2</ClusterVersion>