Support Questions
Find answers, ask questions, and share your expertise

How to get only the last line of a file available on HDFS ?

How to get only the last line of a file available on HDFS ?

New Contributor

Hello,

For my use case, I need to keep only the last line of file which is updated everey minutes abd strore in HDFS.

Do you have any ideas to get the last line ?

Using a gethdfs, schedlued every 30s ( or other) ? But how to param it ?

Thanks for your help,