I am getting the error "The method addCacheFile(URI) is undefined for the type Job" with CDH4.0 I am getting the error "The method addCacheFile(URI) is undefined for the type Job" with CDH4.0 hadoop hadoop

I am getting the error "The method addCacheFile(URI) is undefined for the type Job" with CDH4.0


If you have chosen to install MapReduce version 1, then you should replace the job.addCacheFile() command with DistributeddCache.addCacheFile(); and change the setup() method accordingly (call it configure()).

Find some official documentation and examples here.