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

Ashish Paliwal commented on FLUME-2730:
---------------------------------------

There is nothing in configuration that shall allow you to achieve this. Have a 
script which kill the pid after the specified time.

> Flume execution time - configuration
> ------------------------------------
>
>                 Key: FLUME-2730
>                 URL: https://issues.apache.org/jira/browse/FLUME-2730
>             Project: Flume
>          Issue Type: Question
>            Reporter: Janarthanan
>            Priority: Critical
>
> I wanted the flume agent to exit after a specific time. I set the batch time 
> in the configuration file, but still the agent runs beyond the time limit set 
> in the configuration file. 
> Please suggest a way to terminate the agent after 10 minutes. 
> --configuration file content
> # Name the components on this agent
> a1.sources = r1
> a1.sinks = k1
> a1.channels = c1
> # Describe/configure the source
> a1.sources.r1.type = spooldir
> a1.sources.r1.spoolDir = /Users/administrator/temp
> a1.sources.r1.bind = localhost
> a1.sources.r1.port = 44444
> a1.sources.r1.batchSize = 1
> a1.sources.r1.maxBatchDurationMillis = 200
> # Describe the sink
> a1.sinks.k1.type = logger
> # Use a channel which buffers events in memory
> a1.channels.c1.type = memory
> a1.channels.c1.capacity = 1000
> a1.channels.c1.transactionCapacity = 100
> # Bind the source and sink to the channel
> a1.sources.r1.channels = c1
> a1.sinks.k1.channel = c1



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to