[Hadoop][distributed cache] java.lang.Exception: java.io.FileNotFoundException:

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/crazy_scott/article/details/83416731

在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

猜你喜欢

转载自blog.csdn.net/crazy_scott/article/details/83416731