Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

mcsanady
Copy link
Contributor

@mcsanady mcsanady commented Nov 3, 2017

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.

@majorendre
Copy link
Contributor

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

@mcsanady
Copy link
Contributor Author

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

@asfgit
Copy link

asfgit commented Aug 17, 2018

Can one of the admins verify this patch?

waidr pushed a commit to waidr/flume that referenced this pull request Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants