hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chengi Liu <chengi.liu...@gmail.com>
Subject Re: copy files from hdfs to local fs
Date Thu, 29 Aug 2013 20:50:37 GMT
tail will work as well.. ??? but i want to extract just (say) n lines out
of this file?


On Thu, Aug 29, 2013 at 1:43 PM, Kim Chew <kchew534@gmail.com> wrote:

> hadoop fs -copyToLocal
> or
> hadoop fs -get
>
> It copies the whole file and won't be able just to copy part of the file,
> what is interesting is there is a "tail" command but no "head".
>
> Kim
>
>
> On Thu, Aug 29, 2013 at 1:35 PM, Chengi Liu <chengi.liu.86@gmail.com>wrote:
>
>> Ok,
>>
>>   A very stupid question...
>>
>> I have a large file in
>>
>>     /user/input/foo.txt
>>
>> I want to copy first 100 lines from this location to local filesystem...
>>
>> And the data is very sensitive so i am bit hesistant to experiment.
>>
>> What is the right way to copy sample data from hdfs to local fs.
>>
>>
>

Mime
View raw message