Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.7.3
-
None
-
None
Description
I tried to do the simple tail -f expecting that new data will keep appearing on console, but I found out that in the absence of new data the last line of the file keeps printing again and again. See the below output. For clarification I have also pasted the output of cat command for the same file.
[hdfs@c6401 lib]$ hdfs dfs -tail -f /ats/active/application_1499594381431_0001/appattempt_1499594381431_0001_000001/domainlog-appattempt_1499594381431_0001_000001
{"id":"Tez_ATS_application_1499594381431_0001","readers":"*","writers":"hive"}
{"id":"Tez_ATS_application_1499594381431_0001_1","readers":"*","writers":"hive"}
{"id":"Tez_ATS_application_1499594381431_0001_1","readers":"*","writers":"hive"}
{"id":"Tez_ATS_application_1499594381431_0001_1","readers":"*","writers":"hive"}
{"id":"Tez_ATS_application_1499594381431_0001_1","readers":"*","writers":"hive"}
[hdfs@c6401 lib]$ hdfs dfs -cat /ats/active/application_1499594381431_0001/appattempt_1499594381431_0001_000001/domainlog-appattempt_1499594381431_0001_000001
{"id":"Tez_ATS_application_1499594381431_0001","readers":"*","writers":"hive"}
{"id":"Tez_ATS_application_1499594381431_0001_1","readers":"*","writers":"hive"}[hdfs@c6401 lib]$