hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kadu canGica Eduardo <kaducang...@gmail.com>
Subject FileOutputFormat (getWorkOutputPath)
Date Thu, 01 Sep 2011 00:26:47 GMT

what is the right way to use the method getWorkOutputPath from the

Here is a sample of my code:

public void map(LongWritable key, Text value, OutputCollector<Text, Text>
output, Reporter reporter) throws IOException {
     JobConf conf = new JobConf(new Configuration());
     dir = FileOutputFormat.getWorkOutputPath(conf).toString();

i'm getting the "java.lang.NullPointerException" error.

what is the solution for this?

Thanks in advance.


View raw message