Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
MapReduce, mail # user - Opening hdfs gz file


+
prabhu K 2012-08-17, 06:48
+
Harsh J 2012-08-17, 06:52
+
rahul p 2012-08-18, 11:16
+
prabhu K 2012-08-18, 12:27
+
rahul p 2012-08-18, 14:08
+
rahul p 2012-08-18, 14:09
+
Shashwat Shriparv 2012-08-18, 14:52
+
rahul p 2012-08-18, 15:18
Copy link to this message
-
Re: Opening hdfs gz file
Terry Healy 2012-08-17, 14:09
This might help in you efforts:

http://docs.oracle.com/javase/7/docs/api/java/util/zip/GZIPInputStream.html

-Terry

On 08/17/2012 02:52 AM, Harsh J wrote:
> On the shell, just do:
>
> $ hadoop fs -text /user/hive/warehouse/sample/loc=US/000001_0.gz
>
> On Fri, Aug 17, 2012 at 12:18 PM, prabhu K <[EMAIL PROTECTED]> wrote:
>> Hi Users,
>>
>> How to open HDFS zip file(.gz) file in hadoop.?
>>
>> example:
>>
>> bin/hadoop fs -ls /user/hive/warehouse/sample
>> -rw-r--r--   4 root supergroup  465141227 2012-08-14 17:02
>> /user/hive/warehouse/sample/loc=US/000001_0.gz
>>
>> i want to see the '000001_0.gz' file content. can anyone knows how to open
>> this file?
>>
>> Thanks,
>> Prabhu
>
>
>

--
Terry Healy / [EMAIL PROTECTED]
Cyber Security Operations
Brookhaven National Laboratory
Building 515, Upton N.Y. 11973
+
jcfolsom@... 2012-08-17, 14:21