title: MapReduce ERROR UserGroupInformation - PriviledgedActionException
body: <p>I am trying to run following MapReduce code in my local machine:
  <a href="https://github.com/Jeffyrao/warcbase/blob/extract-links/src/main/java/org/warcbase/data/ExtractLinks.java" rel="nofollow">https://github.com/Jeffyrao/warcbase/blob/extract-links/src/main/java/org/warcbase/data/ExtractLinks.java</a></p>
  
  <p>However, I met this exception:</p>
  
  <pre><code>[main] ERROR UserGroupInformation - PriviledgedActionException as:jeffy (auth:SIMPLE)   cause:java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: Resource file:/Users/jeffy/Documents/Eclipse/warcbase/map_backup.txt is not publicly accessable and as such cannot be part of the public cache.
  Exception in thread "main" java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: Resource file:/Users/jeffy/Documents/Eclipse/warcbase/map_backup.txt is not publicly accessable and as such cannot be part of the public cache.
  at org.apache.hadoop.mapred.LocalDistributedCacheManager.setup(LocalDistributedCacheManager.java:144)
  at org.apache.hadoop.mapred.LocalJobRunner$Job.&lt;init&gt;(LocalJobRunner.java:155)
  at org.apache.hadoop.mapred.LocalJobRunner.submitJob(LocalJobRunner.java:625)
  at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:391)
  at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1269)
  at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1266)
  at java.security.AccessController.doPrivileged(Native Method)
  at javax.security.auth.Subject.doAs(Subject.java:394)
  at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1408)
  at org.apache.hadoop.mapreduce.Job.submit(Job.java:1266)
  at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1287)
  at org.warcbase.data.ExtractLinks.run(ExtractLinks.java:254)
  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
  at org.warcbase.data.ExtractLinks.main(ExtractLinks.java:270)
  Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Resource file:/Users/jeffy/Documents/Eclipse/warcbase/map_backup.txt is not publicly accessable and as such cannot be part of the public cache.
  at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
  at java.util.concurrent.FutureTask.get(FutureTask.java:83)
  at org.apache.hadoop.mapred.LocalDistributedCacheManager.setup(LocalDistributedCacheManager.java:140)
  ... 14 more
  </code></pre>
  
  <p>I think this problem is because of I am trying to add a file to DistributedCache(Look at my code at Line 81-86 and Line 235). Any suggestion is welcome. Thanks! </p>