Ask Your Question

Revision history [back]

As mentioned in the blog post on Calling External Libraries from the JavaScript Evaluator, you will need to add a security policy to be able to load a script file. Add the following to $SDC_CONF/sdc-security.policy :

// Set global perm so that JS can load scripts from this directory
// Note - this means any code in the JVM can read this dir!
grant {
  permission java.io.FilePermission "/opt/streamsets-datacollector-user-libs/-", "read";
};

As mentioned in the blog post on Calling External Libraries from the JavaScript Evaluator, you will need to add a security policy to be able to load a script file. Add the following to $SDC_CONF/sdc-security.policy :

// Set global perm so that JS can load scripts from this directory
// Note - this means any code in the JVM can read this dir!
grant {
  permission java.io.FilePermission "/opt/streamsets-datacollector-user-libs/-", "read";
};

You will need to restart Data Collector for changes to the security policy file to take effect.