SecurityException when tElasticSearchOutput and tExtractJsonFields components are both used in a Spark Job

Problem Description


A Talend 6.4.1 Spark Job, that uses tElasticSearchOutput and tExtractJsonFields components
against CDH 5.10, fails at execution time with the following exception stack:

Caused by: java.lang.SecurityException: class "org.apache.commons.logging.impl.Log4JLogger"'s signer information
does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(
at java.lang.ClassLoader.preDefineClass(
at java.lang.ClassLoader.defineClass(
at Method) 


Root Cause

The built Job contains three different versions of the commons-logging JAR file, and mixing classes from these different libraries is causing this issue. 

  • commons-logging-1.1.1.jar
  • commons-logging-1.1.3.jar
  • commons-logging-1.2.jar




  • Create two separate Jobs, one for each component.
  • Update the Elasticsearch Spark library: in your Spark Job, use the tLibraryLoad component to load a more recent version of the Elasticsearch Spark JAR file.



If the workarounds are not usable or feasible for any reason, a patch is available. Contact Talend Support for additional information and assistance.

Version history
Revision #:
10 of 10
Last update:
‎02-24-2019 11:09 PM
Updated by: