INFO - OutputCommitter set in config null & INFO - Failed to createOutputCommitter

INFO - Failed to createOutputCommitter
java.lang.NullPointerException
at org.apache.hadoop.mapred.LocalJobRunner$Job.createOutputCommitter(LocalJobRunner.java:489)
at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:500)
INFO - Job job_local1685174099_0001 running in uber mode : false
INFO - map 0% reduce 0%
INFO - OutputCommitter set in config null & INFO - Failed to createOutputCommitter_第1张图片
程序卡着不运行…

debug模式下:INFO - OutputCommitter set in config null & INFO - Failed to createOutputCommitter_第2张图片
Job.getInstance()报错:
Method threw ‘java.lang.IllegalStateException’ exception. Cannot evaluate org.apache.hadoop.mapreduce.Job.toString()

原因

重写了OutputFormat类,却没有赋值…

public OutputCommitter getOutputCommitter(TaskAttemptContext context) throws IOException, InterruptedException {
        //赋值
        return new FileOutputCommitter(FileOutputFormat.getOutputPath(context), context);
    }

其它原因
原因是没有导入yarn相关jar
运行Job.getInstance抛出Method threw ‘java.lang.IllegalStateException’ exception

希望能解决您的bug

你可能感兴趣的:(大数据,Linux系统,Hadoop,bug,报错,MapReduce)