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

Add status/version command to chukwa agent

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: 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
        asrabkin 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
        asrabkin 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
        eyang Eric Yang added a comment -

        It should be part of the compile.

        Show
        eyang Eric Yang added a comment - It should be part of the compile.
        Hide
        asrabkin 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
        asrabkin 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
        macyang 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
        macyang 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
        asrabkin Ari Rabkin added a comment -

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

        Show
        asrabkin Ari Rabkin added a comment - Version is hardcoded for now; just hit enter at agent command prompt for status string!
        Hide
        eyang 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
        eyang 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
        asrabkin Ari Rabkin added a comment -

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

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

        +1 Looks good.

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

        I just committed this.

        Show
        asrabkin Ari Rabkin added a comment - I just committed this.
        Hide
        hudson 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 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 Hudson added a comment -
        Show
        hudson Hudson added a comment - Integrated in Chukwa-trunk #45 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/45/ )

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development