Created 03-29-2017 02:49 AM
Hi guys, I am working on writing a hdfs hook, yet I am not quite understand what does unlink event do, I found on this presentation that the delete log would be captured as a unlink event, but when I run a
hadoop fs -rm /h.txt
command, the unlink event is not captured? So what kind of hdfs commands would capture this unlink event ?
Created 03-29-2017 02:56 AM
You might be interested in the Nifi GetHDFSEvents processor.
.
I personally did not check the UNLINK event though but i see a good example to validate the same. I try it you also might want to check the same in parallel:
.
Created 03-29-2017 02:56 AM
You might be interested in the Nifi GetHDFSEvents processor.
.
I personally did not check the UNLINK event though but i see a good example to validate the same. I try it you also might want to check the same in parallel:
.
Created 03-29-2017 06:06 AM
Thanks I found those examples and run them already, but still not quite understand what unlink event do, also how the inotify works? Do you know any documentations explaining the inotify api?
Created 03-29-2017 06:19 AM
Finally got it, the delete op in hdfs should correspond to the rename event, coz hdfs would move the removed files/dirs to the trash file first