Chukwa
  1. Chukwa
  2. CHUKWA-71

Add status/version command to chukwa agent

    Details

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

      Description

      Add a command to display the status and version of the agent running via the
      command port. This would be helpful to check the health of the agent.

      The output preferably concise, limited to a single line output.
      eg: "myHost Chukwa Agent ver 0.1.1, 8 running adapters"

        Activity

        Hide
        Ari Rabkin added a comment -

        What's the right way for an agent to determine its version? Cat $CHUKWA_HOME/bin/VERSION?
        Something baked into the jar at compile time, a la hadoop?

        Show
        Ari Rabkin added a comment - What's the right way for an agent to determine its version? Cat $CHUKWA_HOME/bin/VERSION? Something baked into the jar at compile time, a la hadoop?
        Hide
        Eric Yang added a comment -

        It should be part of the compile.

        Show
        Eric Yang added a comment - It should be part of the compile.
        Hide
        Ari Rabkin added a comment -

        Also. Should we do this as a command, or just have the agent spit this back as soon as someone binds to the control port? I'm inclined to the latter.

        Show
        Ari Rabkin added a comment - Also. Should we do this as a command, or just have the agent spit this back as soon as someone binds to the control port? I'm inclined to the latter.
        Hide
        Mac Yang added a comment -

        How about both? It would be nice to find out the number of running adapters without having to reconnect.

        Show
        Mac Yang added a comment - How about both? It would be nice to find out the number of running adapters without having to reconnect.
        Hide
        Ari Rabkin added a comment -

        Version is hardcoded for now; just hit enter at agent command prompt for status string!

        Show
        Ari Rabkin added a comment - Version is hardcoded for now; just hit enter at agent command prompt for status string!
        Hide
        Eric Yang added a comment -

        I remember we used to send the one liner output when socket connection is established, and Chukwa Agent Controller doesn''t handle the output correctly. Could we check if this is still the case? If it is, Chukwa Agent Controller needs an update for this jira as well.

        Show
        Eric Yang added a comment - I remember we used to send the one liner output when socket connection is established, and Chukwa Agent Controller doesn''t handle the output correctly. Could we check if this is still the case? If it is, Chukwa Agent Controller needs an update for this jira as well.
        Hide
        Ari Rabkin added a comment -

        As per Eric's comment, don't echo status unless asked for it.

        Show
        Ari Rabkin added a comment - As per Eric's comment, don't echo status unless asked for it.
        Hide
        Eric Yang added a comment -

        +1 Looks good.

        Show
        Eric Yang added a comment - +1 Looks good.
        Hide
        Ari Rabkin added a comment -

        I just committed this.

        Show
        Ari Rabkin added a comment - I just committed this.
        Hide
        Hudson added a comment -

        Integrated in Chukwa-trunk #43 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/43/)
        . Status/version command for chukwa agent

        Show
        Hudson added a comment - Integrated in Chukwa-trunk #43 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/43/ ) . Status/version command for chukwa agent
        Hide
        Hudson added a comment -
        Show
        Hudson added a comment - Integrated in Chukwa-trunk #45 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/45/ )

          People

          • Assignee:
            Ari Rabkin
            Reporter:
            Mac Yang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development