sigizmund.com
Copying compressed file via SSH to Hadoop HDFS
By sigizmund On October 16, 2009 · 52Leave a Commenthttp%3A%2F%2Fsigizmund.com%2Fcopying-compressed-file-via-ssh-to-hadoop-hdfs%2FCopying+compressed+file+via+SSH+to+Hadoop+HDFS2009-10-16+10%3A55%3A00sigizmundhttp%3A%2F%2Fsigizmund.wordpress.com%2F2009%2F10%2F16%2Fcopying-compressed-file-via-ssh-to-hadoop-hdfs
Had probably re-invented the way of copying gzipped files via SSH to Hadoop’s HDFS:
gzip -c file.txt | ssh hadoop.gateway.host ‘gunzip -cf – | hdfs -put – input/file.txt’
And all the way back:
ssh hadoop.gateway.host ‘hdfs -cat output/result.txt/* | gzip -c’ | gunzip -c – > resulttxt
-
Categories
-
Calendar
February 2012 M T W T F S S « Jun 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 -
Meta




