mapreduce中启用多线程运行map

mapreduce中启用多线程运行map

//设置MAP处理类为MutithreadedMapper
job.setMapperClass(MutithreadedMapper.class);
//设置MutithreadedMapper的线程数(建议使用配置)
MultithreadedMapper.setNumberOfThreads(job,10)

你可能感兴趣的:(mapreduce中启用多线程运行map)