Question

JDBC drivers from non-default external resources fail to load if security manager is enabled

  • 18 September 2023
  • 0 replies
  • 24 views

Userlevel 2
  • StreamSets Employee
  • 0 replies

Problem statement:  

If you have enabled security manager ( In Java 8 , security manager is enabled by default ) and using non-default external resources directory, then you might observe errors in the Job while loading external libraries. This is a known issue in the Platform August release. 

 

Example error: 

Provider com.mysql.cj.jdbc.Driver could not be instantiated

 

Affected Versions: August, 2023 Platform release

 

Solution: 

Add the external resource path to the security policy in the “Advanced Configuration” dialog of the deployment. 

 

Example: 

 For SDC, you should add below policy: 

grant codebase "file://${sdc.dist.dir}/externalResources/-" {

permission java.security.AllPermission;
}:

And for transformer, the equivalent is:

grant codebase "file://${transformer.dist.dir)/externalResources/-" {

permission java.security.AllPermission;
};

 


0 replies

Be the first to reply!

Reply