FLUME-1750: File spooling client uses -D as command line option (Brock Noland via Brock Noland)
Project: http://git-wip-us.apache.org/repos/asf/flume/repo Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/930ac646 Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/930ac646 Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/930ac646 Branch: refs/heads/trunk Commit: 930ac6461bd78992380d1eb7ca09ee2d341af3a4 Parents: 5bad32c Author: Brock Noland <[email protected]> Authored: Thu Nov 29 14:27:45 2012 -0600 Committer: Brock Noland <[email protected]> Committed: Thu Nov 29 14:27:45 2012 -0600 ---------------------------------------------------------------------- bin/flume-ng | 1 + .../apache/flume/client/avro/AvroCLIClient.java | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flume/blob/930ac646/bin/flume-ng ---------------------------------------------------------------------- diff --git a/bin/flume-ng b/bin/flume-ng index 62e9bba..31f62ef 100755 --- a/bin/flume-ng +++ b/bin/flume-ng @@ -190,6 +190,7 @@ agent options: --help,-h display help text avro-client options: + --dirname <dir> directory to stream to avro source --host,-H <host> hostname to which events will be sent (required) --port,-p <port> port of the avro source (required) --filename,-F <file> text file to stream to avro source [default: std input] http://git-wip-us.apache.org/repos/asf/flume/blob/930ac646/flume-ng-core/src/main/java/org/apache/flume/client/avro/AvroCLIClient.java ---------------------------------------------------------------------- diff --git a/flume-ng-core/src/main/java/org/apache/flume/client/avro/AvroCLIClient.java b/flume-ng-core/src/main/java/org/apache/flume/client/avro/AvroCLIClient.java index fd0d44f..37e9ffa 100644 --- a/flume-ng-core/src/main/java/org/apache/flume/client/avro/AvroCLIClient.java +++ b/flume-ng-core/src/main/java/org/apache/flume/client/avro/AvroCLIClient.java @@ -124,7 +124,7 @@ public class AvroCLIClient { options.addOption("p", "port", true, "port of the avro source") .addOption("H", "host", true, "hostname of the avro source") .addOption("F", "filename", true, "file to stream to avro source") - .addOption("D", "dirname", true, "directory to stream to avro source") + .addOption(null, "dirname", true, "directory to stream to avro source") .addOption("R", "headerFile", true, ("file containing headers as " + "key/value pairs on each new line")) .addOption("h", "help", false, "display help text");
