GitHub user srinathman opened a pull request:
https://github.com/apache/bigtop/pull/6
Allow multiple flume instances
It was not possible to use the script to start multiple instance. These
changes allows multiple instances to be started be setting FLUME_AGENT_NAME or
by writing a simple wrapper like:
---
#!/bin/bash
export FLUME_AGENT_NAME=$1
COMMAND=$2
/etc/init.d/flume-ng-agent $COMMAND
---
Ex:
# flume-wrapper.sh start agent1
# flume-wrapper.sh start agent2
# flume-wrapper.sh stop agent1
# flume-wrapper.sh stop agent2
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/srinathman/bigtop master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/bigtop/pull/6.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #6
----
commit 848514bde4ca719837dfc7648f174e29a8adf320
Author: srinathman <[email protected]>
Date: 2014-07-30T14:50:33Z
Allow multiple flume instances
It was not possible to use the script to start multiple instance. These
changes allows multiple instances to be started be setting FLUME_AGENT_NAME or
by writing a simple wrapper like:
---
#!/bin/bash
export FLUME_AGENT_NAME=$1
COMMAND=$2
/etc/init.d/flume-ng-agent $COMMAND
---
Ex:
# flume-wrapper.sh start agent1
# flume-wrapper.sh start agent2
# flume-wrapper.sh stop agent1
# flume-wrapper.sh stop agent2
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---