title: Reading a file in an Elasticsearch plugin
body: <p>I am writing an elasticsearch plugin which relies on reading data from a file on disk. When I try to access this file in my code, I get the following exception.</p>
  
  <pre><code>Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "patient_similarity/codes.txt" "read")
  at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
  at java.security.AccessController.checkPermission(AccessController.java:884)
  at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
  at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
  at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:127)
  at org.gatech.lucene.search.store.DotProductStore.&lt;init&gt;(DotProductStore.java:22)
  at org.gatech.lucene.search.store.DotProductStore.newInstance(DotProductStore.java:71)
  at org.gatech.elasticsearch.CommonsPlugin.onModule(CommonsPlugin.java:39)
  </code></pre>
  
  <p>Is there any recommended method of accessing files in elasticsearch plugins? Is there any quick workaround to access the file in my plugin?</p>