Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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,

Don't have an account?
Coming from Hortonworks? Activate your account here