Review Board 1.7.22


Added new config 'shell' for Exec source

Review Request #7748 - Created Oct. 26, 2012 and submitted

Roshan Naik
https://issues.apache.org/jira/browse/FLUME-1661
Reviewers
Flume
flume-git
Added new optional config directive 'shell' for Exec Source. One can specify how to invoke a shell to run the command (e.g. /bin/sh -c) . This is only needed for commands that use features like wildcards, backticks, pipes, etc that are supported by the shell. 
Have added a few test cases for both simple and more complex commands.
pom.xml
Revision 363c0e4 New Change
[20] 505 lines
[+20]
506
                  <exclude>.repository/</exclude>
506
                  <exclude>.repository/</exclude>
507
                  <exclude>**/*.diff</exclude>
507
                  <exclude>**/*.diff</exclude>
508
                  <exclude>**/*.patch</exclude>
508
                  <exclude>**/*.patch</exclude>
509
                  <exclude>**/*.avsc</exclude>
509
                  <exclude>**/*.avsc</exclude>
510
                  <exclude>**/docs/**</exclude>
510
                  <exclude>**/docs/**</exclude>

    
   
511
                  <exclude>**/test/resources/test_command.txt</exclude>
511
                </excludes>
512
                </excludes>
512
              </configuration>
513
              </configuration>
513
            </execution>
514
            </execution>
514
          </executions>
515
          </executions>
515
        </plugin>
516
        </plugin>
[+20] [20] 474 lines
flume-ng-core/src/main/java/org/apache/flume/source/ExecSource.java
Revision 46f672f New Change
 
flume-ng-core/src/main/java/org/apache/flume/source/ExecSourceConfigurationConstants.java
Revision 0ba0508 New Change
 
flume-ng-core/src/test/java/org/apache/flume/source/TestExecSource.java
Revision 8bcf320 New Change
 
flume-ng-core/src/test/resources/test_command.txt
New File
 
flume-ng-doc/sphinx/FlumeUserGuide.rst
Revision 3af400e New Change
 
  1. pom.xml: Loading...
  2. flume-ng-core/src/main/java/org/apache/flume/source/ExecSource.java: Loading...
  3. flume-ng-core/src/main/java/org/apache/flume/source/ExecSourceConfigurationConstants.java: Loading...
  4. flume-ng-core/src/test/java/org/apache/flume/source/TestExecSource.java: Loading...
  5. flume-ng-core/src/test/resources/test_command.txt: Loading...
  6. flume-ng-doc/sphinx/FlumeUserGuide.rst: Loading...