logging-flume icon indicating copy to clipboard operation
logging-flume copied to clipboard

FLUME-3190: flume shutdown hook issue when both hbase and hdfs sink a…

Open mcsanady opened this issue 7 years ago • 3 comments

When both hdfs and hbase sink are in use, during shutdown (KILL SIGTERM), the hdfs sink won't be able to rename/close the .tmp hdfs file because the underlying filesystem could be closed earlier when shutting down the other component.

This change registers a new ShutdownHook in the hadoop's ShutdownHookManager, which will prevent other hooks to run until Flume stops itself.

Tested on a cluster which could reproduce the error before the change, but eliminated after.

mcsanady avatar Nov 03 '17 10:11 mcsanady

Hi @mcsanady,

Thanks for your contribution. I have some questions: Why does it matter if we use HBaseSink? How could we test this the simplest way?

Thanks, Endre

majorendre avatar Aug 14 '18 10:08 majorendre

Please ask @adenes, he continues all my works at Cloudera.

mcsanady avatar Aug 14 '18 18:08 mcsanady

Can one of the admins verify this patch?

asfgit avatar Aug 17 '18 13:08 asfgit