[
https://issues.apache.org/jira/browse/FLUME-2996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15518810#comment-15518810
]
hailin commented on FLUME-2996:
-------------------------------
hi bellow is the configure file content:
a1.sources = r1
a1.sinks = sink_etl_product sink_kinesis_stream
a1.channels = channel_etl_product channel_kinesis_stream
#source setting
#a1.sources.r1.type = http
a1.sources.r1.type = flume.source.HTTPSource
a1.sources.r1.port = 6558
a1.sources.r1.dataSize = 1
a1.sources.r1.selector.type = multiplexing
a1.sources.r1.selector.header = event_type
a1.sources.r1.selector.mapping.etl_product = channel_etl_product
channel_kinesis_stream
#handler setting
a1.sources.r1.handler = flume.source.BlobExtHandler
a1.sources.r1.handler.gzip = true
a1.sources.r1.handler.maxBlobLength = 100000
a1.channels.channel_etl_product.type = file
a1.channels.channel_etl_product.checkpointDir = ./checkpoint/product
a1.channels.channel_etl_product.dataDirs = ./data/product
a1.channels.channel_etl_product.checkpointInterval = 10
#Kinesis Firehose
a1.sinks.sink_etl_mix.type = flume.sink.KinesisFirehoseSink
a1.sinks.sink_etl_mix.channel = channel_etl_product
a1.sinks.sink_etl_mix.streamName = product_flumeFirehoseStream
a1.sinks.sink_etl_mix.endpoint = {firehose_endpoint}
flume.source.HTTPSource,flume.source.BlobExtHandler,flume.sink.KinesisFirehoseSink,
these 3 Java class contains our bussiness logic.
what I want is that the flume will transfer data into AWS Kinesis Firehose.
The application works fine on AWS EC2 linux instance. What I meet is flume
shutdown automaticly after several hours , the process disappear when run "ps
-ef | grep flume".
please let me know if need more information.
thanks
> Flume process shutdown automaticly
> ----------------------------------
>
> Key: FLUME-2996
> URL: https://issues.apache.org/jira/browse/FLUME-2996
> Project: Flume
> Issue Type: Bug
> Environment: Amazon Linux
> Reporter: hailin
>
> hi guys,
> I install flume from apache-flume-1.6.0-bin.tar.gz, and startup flume with
> some my custom configure file with cmd line like this:
> bin/flume-ng agent -Dflume.monitoring.type=http -Dflume.monitoring.port=41414
> -c conf -f conf/flume.conf --name a1 -Dflume.root.logger=INFO,DAILY
> it works fine without any issue, but after several hours when I check the
> process, I found it was shutdown automaticly. Bellow is the flume log
> information:
> .....
> 24 Sep 2016 05:53:59,391 INFO [agent-shutdown-hook]
> (org.apache.flume.lifecycle.LifecycleSupervisor.stop:79) - Stopping
> lifecycle supervisor 10
> 24 Sep 2016 05:53:59,394 INFO [agent-shutdown-hook]
> (org.apache.flume.instrumentation.MonitoredCounterGroup.stop:150) -
> Component type: SINK, name: sink_kinesis_stream stopped
> 24 Sep 2016 05:53:59,394 INFO [agent-shutdown-hook]
> (org.apache.flume.instrumentation.MonitoredCounterGroup.stop:156) - Shutdown
> Metric for type: SINK, name: sink_kinesis_stream. sink.start.time ==
> 1474685921906
> ....
> Can anyone help me fix it? How can I do to stop this issue as our bussiness
> already block because of this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)