Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
MapReduce >> mail # user >> Re: Adding file to HDFs


+
sudhakara st 2014-01-14, 09:21
Copy link to this message
-
Re: Adding file to HDFs
Thank you sudhakar
On Tue, Jan 14, 2014 at 2:51 PM, sudhakara st <[EMAIL PROTECTED]>wrote:

>
> 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 <[EMAIL PROTECTED]>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
>
>

--
*Thanks & Regards*

Unmesha Sreeveni U.B
Junior Developer

http://www.unmeshasreeveni.blogspot.in/
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB