You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Nate Cole (JIRA)" <ji...@apache.org> on 2014/04/16 15:52:14 UTC

[jira] [Created] (AMBARI-5479) Flume: add agent pass-thru data

Nate Cole created AMBARI-5479:
---------------------------------

             Summary: Flume: add agent pass-thru data
                 Key: AMBARI-5479
                 URL: https://issues.apache.org/jira/browse/AMBARI-5479
             Project: Ambari
          Issue Type: Task
          Components: agent, controller
            Reporter: Nate Cole
            Assignee: Nate Cole
             Fix For: 1.6.0


Add the ability to pass information to the agent directly through the request.  In this way, the Flume handler can received targeted information about which Flume agent to work on.   Example of how to start the flume agents named a1 and b1 on host h1
{noformat}
PUT http://localhost:8080/api/v1/clusters/c1/hosts/h1/host_components/FLUME_HANDLER
{
  "RequestInfo": {
    "context": "Start Flume on c6403",
    "flume_handler": "a1,b1,c1"
  },
  "Body": {
    "HostRoles": {
      "state": "STARTED"
    }
  }
}
{noformat}
The code will take any value in the requestProperties that matches the component name and pass that value directly to the host with no modification.  The Ambari agent script can then use that information in any way it needs.

This functionality can be used for other components than just FLUME_HANDLER.



--
This message was sent by Atlassian JIRA
(v6.2#6252)