hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From unmesha sreeveni <unmeshab...@gmail.com>
Subject How to write the contents from mapper into file
Date Wed, 13 Nov 2013 05:51:59 GMT
How to write the contents of mapper into file. Is this fine.

If my inputfile is splited whether my blw code works?

In reducer i am combining this data.

public class MyMapper extends
Mapper<Object, Text, Text, MatrixWritable > {
public void map(Object key, Text value, Context context)
throws IOException, InterruptedException {
 Configuration conf = new Configuration();
  FileSystem fs = FileSystem.get(conf);

  Path inputfile = new Path("in/map");
  BufferedWriter getdatabuffer = new BufferedWriter(new
  if(value.toString()!= null){

*Thanks & Regards*

Unmesha Sreeveni U.B

*Junior Developer*

View raw message