jjzjj

BooleanWritable

全部标签

java - ArrayIndexOutOfBoundsException 错误

当我运行我的代码时,我从reducer的任务中得到了ArrayIndexOutOfBoundsException错误。我的代码如下:publicvoidmap(ImageHeaderkey,FloatImagevalue,Contextcontext)throwsIOException,InterruptedException{if(value!=null){mapcounter++;FloatImagegray=newFloatImage(value.getWidth(),value.getHeight(),value.getBands());intimageWidth=value.