user3403595
user3403595

Reputation: 11

Decompress .deflate files as text in HDFS and copy result to local

After running a sqoop jobs I got the files .deflate extension (compression is configured by default). I know that I can show the file content using following command:

hadoop fs -text  <file>

How can I copy this result to my local folder?

Upvotes: 1

Views: 9049

Answers (1)

sumitya
sumitya

Reputation: 2691

Just redirect output to some local file

hadoop fs -text hdfs_path > local_file.txt

Upvotes: 8

Related Questions