title: Not able to load library from Distributed Cache Hadoop
body: <p>I am doing this :</p>
  
  <pre><code>DistributedCache.createSymlink(job.getConfiguration()); 
  DistributedCache.addCacheFile(new URI   
  ("hdfs:/user/hadoop/harsh/libnative1.so"),job.getConfiguration()); 
  </code></pre>
  
  <p>and in the mapper :</p>
  
  <pre><code>System.loadLibrary("libnative1.so");
  </code></pre>
  
  <p>(i also tried 
  System.loadLibrary("libnative1");
  System.loadLibrary("native1");</p>
  
  <p>But I am getting this error:</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: no libnative1.so in java.library.path
  </code></pre>
  
  <p>I am totally clueless what should I set java.library.path to ..
  I tried setting it to /home and copied every .so from distributed cache to /home/ but still it didn't work :(</p>
  
  <p>Any suggestions / solutions please?</p>