Created 12-09-2015 01:10 PM
i already try this comment not working fine .....
hadoop fs -unzip /path/fileinRC_2015-01.bz2
hadoop fs -bunzip /path/fileinRC_2015-01.bz2
Created 12-09-2015 01:19 PM
You would need to do something like this gunzip -c fileinRC_2015-01.bz2 | hadoop fs -put - /path/fileinhdfs
Created 12-09-2015 01:19 PM
You would need to do something like this gunzip -c fileinRC_2015-01.bz2 | hadoop fs -put - /path/fileinhdfs
Created 12-09-2015 01:32 PM
@sivasaravanakumar k This is useful
Created 12-09-2015 01:37 PM
i want extract file with in hdfs ...
i dont want extrct the file outside hdfs and put in file again in hdfs ...
Created 12-09-2015 01:51 PM
Try this
hadoop fs -text /hdfs_path/compressed_file.gz | hadoop fs -put -/hdfs_path/uncompressed-file.txt
Created 12-09-2015 02:26 PM
Thnks lot
but in ur comment minor correction (-put (space) - (space) after given file path )
hadoop fs -text /hdfs_path/compressed_file.gz | hadoop fs -put - /hdfs_path/uncompressed-file.txt
Created 12-09-2015 03:31 PM
Thanks @sivasaravanakumar k .
Created 12-09-2015 03:29 PM
Thanks, it worked..