在hadoop2.7.3版本中,使用distributed cache时,如果使用新的API:
URI[] cacheFiles = context.getCacheFiles();
则会提示java.lang.Exception: java.io.FileNotFoundException:
我估计是这个版本的bug,建议大家还是使用老的API
String localCacheFiles = context.getLocalCacheFiles()[0].getName();
this works fine