HBase
  1. HBase
  2. HBASE-7757

Add web UI to REST server and Thrift server

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.94.5, 0.95.0
    • Component/s: REST, Thrift, UI
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Add Hadoop HttpServer (web UI) to REST server and Thrift server. The Hadoop HttpServer supports metrics/jmx/conf/logLevel/stacks, which is useful to monitor REST/Thrift server.

      For REST server, use a separate listener/context to avoid path mapping conflicts.

      1. 0.94_7757_v1.patch
        21 kB
        Jimmy Xiang
      2. rest-0.96.png
        113 kB
        Jimmy Xiang
      3. thrift-0.96.png
        129 kB
        Jimmy Xiang
      4. rest-0.94.png
        124 kB
        Jimmy Xiang
      5. thrift-0.94.png
        150 kB
        Jimmy Xiang
      6. trunk-7757_v1.patch
        23 kB
        Jimmy Xiang

        Issue Links

          Activity

          Jimmy Xiang created issue -
          Jimmy Xiang made changes -
          Field Original Value New Value
          Link This issue relates to HBASE-7738 [ HBASE-7738 ]
          Hide
          Andrew Purtell added a comment -

          +1, add a UI and move the recent addition of /metrics and /jmx servlets onto another connector (service port).

          Show
          Andrew Purtell added a comment - +1, add a UI and move the recent addition of /metrics and /jmx servlets onto another connector (service port).
          Elliott Clark made changes -
          Component/s UI [ 12319669 ]
          Hide
          Elliott Clark added a comment -

          +1 it would make using the rest server more inviting to new users.

          Show
          Elliott Clark added a comment - +1 it would make using the rest server more inviting to new users.
          Hide
          Jimmy Xiang added a comment -

          0.94 patch is attached.

          Show
          Jimmy Xiang added a comment - 0.94 patch is attached.
          Jimmy Xiang made changes -
          Attachment 0.94_7757_v1.patch [ 12568097 ]
          Jimmy Xiang made changes -
          Attachment rest-0.96.png [ 12568100 ]
          Jimmy Xiang made changes -
          Attachment thrift-0.96.png [ 12568101 ]
          Jimmy Xiang made changes -
          Attachment rest-0.94.png [ 12568115 ]
          Jimmy Xiang made changes -
          Attachment thrift-0.94.png [ 12568116 ]
          Jimmy Xiang made changes -
          Attachment trunk-7757_v1.patch [ 12568117 ]
          Jimmy Xiang made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Hide
          stack added a comment -

          +1 especially because these info servers are exactly same as others running in hbase.

          Show
          stack added a comment - +1 especially because these info servers are exactly same as others running in hbase.
          Hide
          Elliott Clark added a comment -

          +1

          Show
          Elliott Clark added a comment - +1
          Hide
          Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12568117/trunk-7757_v1.patch
          against trunk revision .

          +1 @author. The patch does not contain any @author tags.

          -1 tests included. The patch doesn't appear to include any new or modified tests.
          Please justify why no new tests are needed for this patch.
          Also please list what manual steps were performed to verify this patch.

          +1 hadoop2.0. The patch compiles against the hadoop 2.0 profile.

          +1 javadoc. The javadoc tool did not generate any warning messages.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          -1 lineLengths. The patch introduces lines longer than 100

          +1 core tests. The patch passed unit tests in .

          Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//testReport/
          Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
          Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html
          Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
          Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html
          Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html
          Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
          Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//console

          This message is automatically generated.

          Show
          Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12568117/trunk-7757_v1.patch against trunk revision . +1 @author . The patch does not contain any @author tags. -1 tests included . The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 hadoop2.0 . The patch compiles against the hadoop 2.0 profile. +1 javadoc . The javadoc tool did not generate any warning messages. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 findbugs . The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. -1 lineLengths . The patch introduces lines longer than 100 +1 core tests . The patch passed unit tests in . Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/4345//console This message is automatically generated.
          Hide
          Andrew Purtell added a comment -

          +1 looks good.

          Show
          Andrew Purtell added a comment - +1 looks good.
          Hide
          Jimmy Xiang added a comment -

          Integrated into trunk and 0.94 (with minor fix). Thanks all for reviewing it.

          Show
          Jimmy Xiang added a comment - Integrated into trunk and 0.94 (with minor fix). Thanks all for reviewing it.
          Jimmy Xiang made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 0.96.0 [ 12320040 ]
          Fix Version/s 0.94.5 [ 12323874 ]
          Resolution Fixed [ 1 ]
          Hide
          Hudson added a comment -

          Integrated in HBase-TRUNK #3856 (See https://builds.apache.org/job/HBase-TRUNK/3856/)
          HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443069)

          Result = FAILURE
          jxiang :
          Files :

          • /hbase/trunk/hbase-server/pom.xml
          • /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java
          • /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
          • /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest/index.html
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest/rest.jsp
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift/index.html
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Show
          Hudson added a comment - Integrated in HBase-TRUNK #3856 (See https://builds.apache.org/job/HBase-TRUNK/3856/ ) HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443069) Result = FAILURE jxiang : Files : /hbase/trunk/hbase-server/pom.xml /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest/index.html /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest/rest.jsp /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift/index.html /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Hide
          Hudson added a comment -

          Integrated in HBase-0.94 #828 (See https://builds.apache.org/job/HBase-0.94/828/)
          HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443064)

          Result = ABORTED
          jxiang :
          Files :

          • /hbase/branches/0.94/pom.xml
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/rest/Main.java
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/index.html
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/rest.jsp
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/index.html
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Show
          Hudson added a comment - Integrated in HBase-0.94 #828 (See https://builds.apache.org/job/HBase-0.94/828/ ) HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443064) Result = ABORTED jxiang : Files : /hbase/branches/0.94/pom.xml /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/rest/Main.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java /hbase/branches/0.94/src/main/resources/hbase-webapps/rest /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/index.html /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/rest.jsp /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/index.html /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Hide
          Hudson added a comment -

          Integrated in HBase-0.94 #829 (See https://builds.apache.org/job/HBase-0.94/829/)
          HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443064)

          Result = ABORTED
          jxiang :
          Files :

          • /hbase/branches/0.94/pom.xml
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/rest/Main.java
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/index.html
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/rest.jsp
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/index.html
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Show
          Hudson added a comment - Integrated in HBase-0.94 #829 (See https://builds.apache.org/job/HBase-0.94/829/ ) HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443064) Result = ABORTED jxiang : Files : /hbase/branches/0.94/pom.xml /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/rest/Main.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java /hbase/branches/0.94/src/main/resources/hbase-webapps/rest /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/index.html /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/rest.jsp /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/index.html /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Hide
          Hudson added a comment -

          Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #395 (See https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/395/)
          HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443069)

          Result = FAILURE
          jxiang :
          Files :

          • /hbase/trunk/hbase-server/pom.xml
          • /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java
          • /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
          • /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest/index.html
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest/rest.jsp
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift/index.html
          • /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Show
          Hudson added a comment - Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #395 (See https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/395/ ) HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443069) Result = FAILURE jxiang : Files : /hbase/trunk/hbase-server/pom.xml /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest/index.html /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/rest/rest.jsp /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift/index.html /hbase/trunk/hbase-server/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Hide
          Hudson added a comment -

          Integrated in HBase-0.94-security #109 (See https://builds.apache.org/job/HBase-0.94-security/109/)
          HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443064)

          Result = SUCCESS
          jxiang :
          Files :

          • /hbase/branches/0.94/pom.xml
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/rest/Main.java
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/index.html
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/rest.jsp
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/index.html
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Show
          Hudson added a comment - Integrated in HBase-0.94-security #109 (See https://builds.apache.org/job/HBase-0.94-security/109/ ) HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443064) Result = SUCCESS jxiang : Files : /hbase/branches/0.94/pom.xml /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/rest/Main.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java /hbase/branches/0.94/src/main/resources/hbase-webapps/rest /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/index.html /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/rest.jsp /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/index.html /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Lars Hofhansl made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          stack made changes -
          Fix Version/s 0.95.0 [ 12324094 ]
          Fix Version/s 0.96.0 [ 12320040 ]
          Fix Version/s 0.94.5 [ 12323874 ]
          Lars Hofhansl made changes -
          Fix Version/s 0.94.5 [ 12323874 ]
          Hide
          Hudson added a comment -

          Integrated in HBase-0.94-security-on-Hadoop-23 #12 (See https://builds.apache.org/job/HBase-0.94-security-on-Hadoop-23/12/)
          HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443064)

          Result = FAILURE
          jxiang :
          Files :

          • /hbase/branches/0.94/pom.xml
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/rest/Main.java
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
          • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/index.html
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/rest.jsp
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/index.html
          • /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Show
          Hudson added a comment - Integrated in HBase-0.94-security-on-Hadoop-23 #12 (See https://builds.apache.org/job/HBase-0.94-security-on-Hadoop-23/12/ ) HBASE-7757 Add web UI to REST server and Thrift server (Revision 1443064) Result = FAILURE jxiang : Files : /hbase/branches/0.94/pom.xml /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/rest/Main.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java /hbase/branches/0.94/src/main/resources/hbase-webapps/rest /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/index.html /hbase/branches/0.94/src/main/resources/hbase-webapps/rest/rest.jsp /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/index.html /hbase/branches/0.94/src/main/resources/hbase-webapps/thrift/thrift.jsp
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Patch Available Patch Available
          1d 5h 16m 1 Jimmy Xiang 05/Feb/13 23:04
          Patch Available Patch Available Resolved Resolved
          17h 59m 1 Jimmy Xiang 06/Feb/13 17:04
          Resolved Resolved Closed Closed
          9d 11h 10m 1 Lars Hofhansl 16/Feb/13 04:14

            People

            • Assignee:
              Jimmy Xiang
              Reporter:
              Jimmy Xiang
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development