Uploaded image for project: 'Chukwa'
  1. Chukwa
  2. CHUKWA-95

Provide webservice API to extract data points

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.2.0
    • Component/s: User Interface
    • Labels:
      None

      Description

      Similar to permalink except for the output format. In addition to source and time range, the API should also support options like min, max and average.

      1. rest7.patch
        88 kB
        Terence Kwan
      2. rest6.patch
        2 kB
        Terence Kwan
      3. rest5.patch
        334 kB
        Terence Kwan
      4. rest4.patch
        332 kB
        Terence Kwan
      5. rest3.patch
        330 kB
        Terence Kwan
      6. rest2.patch
        329 kB
        Terence Kwan
      7. rest1.patch
        329 kB
        Terence Kwan
      8. rest.patch
        347 kB
        Terence Kwan
      9. newjar.zip
        903 kB
        Terence Kwan
      10. json-lib-2.2.3-jdk15.jar
        145 kB
        Terence Kwan
      11. CHUKWA-95-1.patch
        29 kB
        Eric Yang
      12. CHUKWA-95.patch
        326 kB
        Eric Yang

        Activity

        Hide
        hudson Hudson added a comment -
        Show
        hudson Hudson added a comment - Integrated in Chukwa-trunk #53 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/53/ )
        Hide
        eyang Eric Yang added a comment -

        I just committed this, thanks Terence.

        Show
        eyang Eric Yang added a comment - I just committed this, thanks Terence.
        Hide
        eyang Eric Yang added a comment -

        Rename non test case classes into filename that does not start with Test, and added jetty startup as part of the setup class for rest API.

        Show
        eyang Eric Yang added a comment - Rename non test case classes into filename that does not start with Test, and added jetty startup as part of the setup class for rest API.
        Hide
        eyang Eric Yang added a comment -

        Reopen for renaming test cases.

        Show
        eyang Eric Yang added a comment - Reopen for renaming test cases.
        Hide
        terencekwan Terence Kwan added a comment -

        change the test cases filename.

        Show
        terencekwan Terence Kwan added a comment - change the test cases filename.
        Hide
        hudson Hudson added a comment -

        Integrated in Chukwa-trunk #49 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/49/)
        . Added Web Service API to export data from database. (Terence Kwan via Eric Yang)
        . Added Web Service API to export data from database. (Terence Kwan via Eric Yang)

        Show
        hudson Hudson added a comment - Integrated in Chukwa-trunk #49 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/49/ ) . Added Web Service API to export data from database. (Terence Kwan via Eric Yang) . Added Web Service API to export data from database. (Terence Kwan via Eric Yang)
        Hide
        eyang Eric Yang added a comment -

        I just committed this, thanks Terence.

        Show
        eyang Eric Yang added a comment - I just committed this, thanks Terence.
        Hide
        eyang Eric Yang added a comment -

        +1 looks good on the null method handling.

        Show
        eyang Eric Yang added a comment - +1 looks good on the null method handling.
        Hide
        terencekwan Terence Kwan added a comment -

        Add another patch to change null method problem.

        Show
        terencekwan Terence Kwan added a comment - Add another patch to change null method problem.
        Hide
        terencekwan Terence Kwan added a comment -

        one more time.

        Show
        terencekwan Terence Kwan added a comment - one more time.
        Hide
        terencekwan Terence Kwan added a comment -

        Fixed JsonDataBeanProcessor problem

        Show
        terencekwan Terence Kwan added a comment - Fixed JsonDataBeanProcessor problem
        Hide
        eyang Eric Yang added a comment -

        +1 Looks good.

        Show
        eyang Eric Yang added a comment - +1 Looks good.
        Hide
        terencekwan Terence Kwan added a comment -

        Let try it one more time.

        This is the combined patch with build.xml file change and also it fix the timestamp value problem.

        Show
        terencekwan Terence Kwan added a comment - Let try it one more time. This is the combined patch with build.xml file change and also it fix the timestamp value problem.
        Hide
        eyang Eric Yang added a comment -

        Update build structure, make separation between REST API and HICC.

        Show
        eyang Eric Yang added a comment - Update build structure, make separation between REST API and HICC.
        Hide
        terencekwan Terence Kwan added a comment -

        one more time to remove the reflection getMethod warning.

        Show
        terencekwan Terence Kwan added a comment - one more time to remove the reflection getMethod warning.
        Hide
        terencekwan Terence Kwan added a comment -

        new rest patch file

        Show
        terencekwan Terence Kwan added a comment - new rest patch file
        Hide
        eyang Eric Yang added a comment -

        It looks like the patch tries to download another vendor's json library which conflict with the existing json library in Chukwa.
        Please resolve json library conflict. Thanks

        Show
        eyang Eric Yang added a comment - It looks like the patch tries to download another vendor's json library which conflict with the existing json library in Chukwa. Please resolve json library conflict. Thanks
        Hide
        terencekwan Terence Kwan added a comment -

        Post the rest API patch.

        To build it, you need to do the following:
        1. unzip newjar.zip in your trunk/lib directory which will create jsr311-api-1.0.jar jersey-bundle-1.1.0-ea.jar asm-3.1.jar
        (they are not supported in the current maven repository)
        2. ant chukwa_war to build the chukwa.war file
        3. deploy chukwa.war as hicc.war under tomcat
        4. To test it do:
        http://<server-name>:8080/chukwa/v1/hadoop_jvm/timestamp/<timestamp_long>

        Show
        terencekwan Terence Kwan added a comment - Post the rest API patch. To build it, you need to do the following: 1. unzip newjar.zip in your trunk/lib directory which will create jsr311-api-1.0.jar jersey-bundle-1.1.0-ea.jar asm-3.1.jar (they are not supported in the current maven repository) 2. ant chukwa_war to build the chukwa.war file 3. deploy chukwa.war as hicc.war under tomcat 4. To test it do: http://<server-name>:8080/chukwa/v1/hadoop_jvm/timestamp/<timestamp_long>
        Hide
        macyang Mac Yang added a comment -

        Leaving it in the "User Interface" component for lack of a better option. Might be useful to add a "Web Service" component.

        Show
        macyang Mac Yang added a comment - Leaving it in the "User Interface" component for lack of a better option. Might be useful to add a "Web Service" component.

          People

          • Assignee:
            terencekwan Terence Kwan
            Reporter:
            macyang Mac Yang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development