4
如何從Hadoop Mapper(或Combiner/Reducer/whatever)記錄消息,以便稍後在Hadoop日誌中找到這些自定義消息?如何從Hadoop記錄消息?
public class GfimlMapper extends Mapper<Object, Text, Text, RawTerm>
{
public void map(Object key, Text value, final Context context
) throws IOException, InterruptedException {
...
Logger.log("HELLO THERE!"); // ???
...
}
}