Why am I getting "access denied" when I try to use my own dictionary in ElasticSearch?

If you're using our ElasticSearch plugin with Rosette Base Linguistics (the "RBL SDK"), and are trying to use your own User-Defined Dictionary (UDD), you might be running into a Java security issue ("access denied").

Elasticsearch uses a Java security manager, which, by default, does not let you read arbitrary files from the file system. You have to give it permission. For example, if you put the following into the file $HOME/rbl.policy:


grant {
     permission java.io.FilePermission "<<ALL FILES>>", "read";
};


and then export JAVA_OPTS="-Djava.security.policy=file://$HOME/rbl.policy" before starting Elasticsearch, the security manager will allow RBL to read the UDD. In fact, it will allow anything to read anything; you can edit the policy to more specific if you want.
Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.




Powered by Zendesk