- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to extract Bz file in hdfs
- Labels:
-
Apache Hadoop
Created ‎12-09-2015 01:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@sivasaravanakumar k This is useful
Created ‎12-09-2015 01:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @sivasaravanakumar k .
Created ‎12-09-2015 03:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, it worked..
