Hi Mahendran,yes that is expected behaviour - I suspect that if you look in the logs for this agent, it will have thrown an exception when you shut down the HDFS, as it is depending on a compatible HDFS being available.
Guy Needham | Data Discovery
Virgin Media | Enterprise Data, Design & Management
Bartley Wood Business Park, Hook, Hampshire RG27 9UP
D 01256 75 3362
I welcome VSRE emails. Learn more at http://vsre.info/
From: mahendran m [mailto:firstname.lastname@example.org]
Sent: 07 November 2014 09:33
Subject: Shutdowning HDFS server leads to flume agent shutdown
Hi All,I am new to Apache flume . I have configured using thrift source to send log to HDFS my Config as below
# list sources, sinks and channels in the agenta1.sources = r1a1.sinks = k1a1.channels = c1
# avro sink propertiesa1.sources.r1.type = thrifta1.sources.r1.bind = localhosta1.sources.r1.port = 44444a1.sources.r1.interceptors = i1a1.sources.r1.interceptors.i1.type = DecoderInterceptor.CustomInterceptor$Buildera1.sources.r1.interceptors.i1.referalUrl=referalUrla1.sources.r1.interceptors.i1.referalHost=referalHost
#HDFS sinka1.sinks.k1.type = hdfsa1.sinks.k1.hdfs.fileType = DataStreama1.sinks.k1.hdfs.fileSuffix= .txta1.sinks.k1.hdfs.rollSize = 1048576a1.sinks.k1.hdfs.rollCount = 0a1.sinks.k1.hdfs.rollInterval = 0a1.sinks.k1.hdfs.batchSize = 1000a1.sinks.k1.hdfs.minBlockReplicas = 1a1.sinks.k1.hdfs.callTimeout = 60000a1.sinks.k1.hdfs.path = hdfs://localhost:9000/flumeChannel100/Thrift
# Use a channel which buffers events in memorya1.channels.c1.type = memorya1.channels.c1.capacity = 10000000a1.channels.c1.transactionCapacity = 1000a1.channels.c1.byteCapacityBufferPercentage = 10a1.channels.c1.byteCapacity = 5368709120
# define the flowa1.sources.r1.channels = c1a1.sinks.k1.channel = c1
when i stated HDFS, flume service and generated the logs from c# application . my logs are moved to HDFS everything OK still now. but when stopped HDFS service . flume agent itself get stopped. Is this default behavior ? . or any wen wrong .
Save Paper - Do you really need to print this e-mail?
Visit www.virginmedia.com for more information, and more fun.
This email and any attachments are or may be confidential and legally privileged
and are sent solely for the attention of the addressee(s). If you have received this
email in error, please delete it from your system: its use, disclosure or copying is
unauthorised. Statements and opinions expressed in this email may not represent
those of Virgin Media. Any representations or commitments in this email are
subject to contract.
Registered office: Media House, Bartley Wood Business Park, Hook, Hampshire, RG27 9UP
Registered in England and Wales with number 2591237