hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhakara st <sudhakara...@gmail.com>
Subject Re: Adding file to HDFs
Date Tue, 14 Jan 2014 09:21:57 GMT
Read file from local file system and write to file in HDFS using
*FSDataOutputStream*

            FSDataOutputStream outStream = fs.create(new Path("demo.csv"););
            outStream.writeUTF(stream);
            outStream.close();


On Tue, Jan 14, 2014 at 2:04 PM, unmesha sreeveni <unmeshabiju@gmail.com>wrote:

> How to add a *csv* file to hdfs using Mapreduce Code
> Using hadoop fs -copyFromLocal /local/path /hdfs/location i am able to do .
> BUt i would like to write mapreduce code.
>
> --
> *Thanks & Regards*
>
> Unmesha Sreeveni U.B
> Junior Developer
>
> http://www.unmeshasreeveni.blogspot.in/
>
>
>


-- 

Regards,
...Sudhakara.st

Mime
View raw message