[
https://issues.apache.org/jira/browse/HBASE-21133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16598135#comment-16598135
]
Guangxu Cheng commented on HBASE-21133:
---------------------------------------
Thanks [~busbey] for reviewing.
There is already an interface '/version/cluster' to return the version of the
HBase cluster.It is okay to add a new field to record the HBase client version.
However, the REST client is part of HBase, is it necessary to keep a version
number inside the REST? If it is needed to retain, then when will the version
number be changed? As you said, there is no standard. As far as I know, after
HBASE-10952, the version number of REST has not changed.
> '/version' in rest should return hbase rest client version
> ----------------------------------------------------------
>
> Key: HBASE-21133
> URL: https://issues.apache.org/jira/browse/HBASE-21133
> Project: HBase
> Issue Type: Bug
> Components: REST
> Affects Versions: 3.0.0, 2.0.1, 2.2.0
> Reporter: Guangxu Cheng
> Assignee: Guangxu Cheng
> Priority: Major
> Attachments: HBASE-21133.master.001.patch
>
>
> restVersion is a constant, which is meaningless.
> {code:java}
> public VersionModel(ServletContext context) {
> restVersion = RESTServlet.VERSION_STRING;
> {code}
> {code:java}
> String VERSION_STRING = "0.0.3";
> {code}
> the result of '/version'
> {code:json}
> {"Server":"jetty/6.1.26","Jersey":"1.9","REST":"0.0.3","JVM":"Oracle
> Corporation 1.8.0_102-25.102-b14","OS":"Linux
> 2.6.32.57-tlinux-1.1.2-container amd64"}
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)