0
context.setStatus(..)
在我運行我的地圖縮減作業時不打印。上下文setStatus()在hadoop中不工作
這是我減速的代碼部分:
@Override
public void setup(Context context) throws IOException {
context.setStatus("Constructing image");
try {
image = new BufferedImage(context.getConfiguration().getInt("image.size", -1),
context.getConfiguration().getInt("image.size", -1), BufferedImage.TYPE_INT_RGB);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
它仍然不起作用 – Niinle