[ 
https://issues.apache.org/jira/browse/FLUME-1661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13599408#comment-13599408
 ] 

Hudson commented on FLUME-1661:
-------------------------------

Integrated in flume-trunk #371 (See 
[https://builds.apache.org/job/flume-trunk/371/])
    FLUME-1661: ExecSource cannot execute complex *nix commands (Revision 
13b8252bdeb838c606f4453bdf757fb2a1101eb8)

     Result = UNSTABLE
brock : 
http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=13b8252bdeb838c606f4453bdf757fb2a1101eb8
Files : 
* 
flume-ng-core/src/main/java/org/apache/flume/source/ExecSourceConfigurationConstants.java
* flume-ng-core/src/test/resources/test_command.txt
* flume-ng-core/src/main/java/org/apache/flume/source/ExecSource.java
* flume-ng-core/src/test/java/org/apache/flume/source/TestExecSource.java
* flume-ng-doc/sphinx/FlumeUserGuide.rst
* pom.xml

                
> ExecSource cannot execute complex *nix commands
> -----------------------------------------------
>
>                 Key: FLUME-1661
>                 URL: https://issues.apache.org/jira/browse/FLUME-1661
>             Project: Flume
>          Issue Type: Improvement
>          Components: Sinks+Sources
>    Affects Versions: v1.2.0
>            Reporter: Yoonseok Woo
>            Assignee: Roshan Naik
>             Fix For: v1.4.0
>
>         Attachments: 1661.patch.v5, 1661.patch.v6, 1661.patch.v7, 
> 1661.patch.v8, 1661.patch.v9, FLUME-1661-1.patch, FLUME-1661.patch, 
> FLUME-1661.patch.v2, FLUME-1661.patch.v3, FLUME-1661.patch.v4, 
> FlumeProcessRunner.tar.gz
>
>
> * command line parsing
> ** conf/flume.conf
> {code}
> agent.sources.source1.type = exec
> agent.sources.source1.command = tail -f 
> /some/path/logs/exception/error.log.`date +%Y%m%d%H`
> {code}
> ** result
> {code}
> tail: /some/path/logs/exception/error.log.`date: No such file or directory
> tail: +%Y%m%d%H`: No such file or directory
> {code}
> ** needs to be improved
> {code}
> (ExecSouce.java:242) String[] commandArgs = command.split("\\s+") 
> {code}
> * using special character (e.g. *, `, ', ...)
> ** conf/flume.conf
> {code}
> agent.sources.source1.type = exec
> agent.sources.source1.command = tail -f /some/path/logs/exception/error.log.*
> {code}
> ** result
> {code}
> tail: /some/path/logs/exception/error.log.*: No such file or directory
> {code}
> ** needs to be improved
> {code}
> (ExecSouce.java:243) process = new ProcessBuilder(commandArgs).start();
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to