Saturday, 2 January 2016

Hadoop: tail: Get last kilobyte of the file

“tail” command is used to display last kilobyte of the file.

Usage:
hadoop fs [generic options] -tail [-f] <file>

Example
hadoop fs -tail /user/cloudera/demo1/info.txt


Above command displays last kilobyte of the file append.txt.




Previous                                                 Next                                                 Home

No comments:

Post a Comment