I just want to use hadoop mapreduce to sort my lines of log. I put all fields of the line as the output key, and set output value as null. But when run, null pointer exception is raised at line
context.write(new Text(outkeystr), null);
So why can't output value of hadoop map be null? Why output value of hadoop reduce can (I tested)?