mapreduce - Why can't output value of hadoop map be null? -


i want use hadoop mapreduce sort lines of log. put fields of line output key, , set output value null. when run, null pointer exception raised @ line

context.write(new text(outkeystr), null); 

so why can't output value of hadoop map null? why output value of hadoop reduce can (i tested)?

you can't use explict value null can use nullwritable class if don't care value


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -