hadoop fs -text

Usage: hadoop fs -text <src>
hadoop fs -text /hdfs_dir/* >> /local_dir/localfile.txt
--Takes a source file and outputs the file in text format. The allowed formats are zip and TextRecordInputStream.
--This will display the content of the hdfs file ( But text only work with zip and TextRecordInputStream formats like SequenceFieFormat).

Related Posts