标签:
如题,或者获取split ID in the mapfunction。
=========================================
InputSplit is = context.getInputSplit();
splitId = MD5Hash.digest(is.toString()).toString();
-------------------------------------------------------------------
lastSplit = reporter.getInputSplit();
splitId = MD5Hash.digest(lastSplit.toString()).toString();
Hadoop实战——如何获取当前Map对象所在的block id
标签:
原文地址:http://blog.csdn.net/yaoxiaochuang/article/details/51623486