NoClassDefFoundError exception when running a Talend 6.3.1 Job with tHive components

Talend Version       6.3.1


Additional Versions  
Product Big Data
Component Hive
Problem Description

When running a Talend 6.3.1 Job that uses tHive components , it fails with the NoClassDefFoundError exception and the following Java Exception Stack:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hive/metastore/api/MetaException
at org.apache.hive.jdbc.HiveConnection.createBinaryTransport(
at org.apache.hive.jdbc.HiveConnection.openTransport(
at org.apache.hive.jdbc.HiveConnection.<init>(
at org.apache.hive.jdbc.HiveDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at dwh_etl.generatedefaultmapvalues_9_1.generateDefaultMapValues.tELTHiveMap_1Process(
at dwh_etl.generatedefaultmapvalues_9_1.generateDefaultMapValues.runJobInTOS(
at dwh_etl.generatedefaultmapvalues_9_1.generateDefaultMapValues.runJob(
at dwh_etl.transformhive_9_1.TransformHive.tRunJob_1Process(
at dwh_etl.transformhive_9_1.TransformHive.runJobInTOS(
at dwh_etl.transformhive_9_1.TransformHive.main(
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.metastore.api.MetaException
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 12 more 

This issue occurs when launching this Job from Talend TAC 6.3.1, but it works when running from Studio. The same Job runs fine with Talend version 6.1.1.

Problem root cause

This issue is due to a bug. When building the Job, the jar file hive-metastore- was incorrectly renamed - and was stored in the lib directory of the Job build. As a consequence, the hive-metastore- file that is used in the classpath of the Job cannot be found, and a java.lang.NoClassDefFoundError class is thrown when running the Job.

Solution or Workaround

This problem is fixed in Talend 6.4.1 and 6.3.2.


For Talend 6.3.1, the solution consists of applying To apply this patch, perform the following steps:

  1. Contact Talend Support at to request the patch.
  2. Once the patch has been assigned to you, download it by accessing Log in with your license credentials.
  3. Unzip the patch. Inside you will find tPigStoreResult_java.xml in plugins\org.talend.designer.components.bigdata_6.3.1.20161216_1026\components\tPigStoreResult.
  4. Make a backup of your existing tPigStoreResult_java.xml file.
  5. Copy the new tPigStoreResult_java.xml into these two locations:

    • the CommandLine installation directory: studio\plugins\org.talend.designer.components.bigdata_6.3.1.20161216_1026\components\tPigStoreResult
    • The Studio installation directory: plugins\org.talend.designer.components.bigdata_6.3.1.20161216_1026\components\tPigStoreResult

      In the new tPigStoreResult_java.xml file, the MVN=mvnSmiley Surprisedrg.talend.libraries/- string that caused the issue should not be present.

  6. Restart Talend Studio and CommandLine.
Version history
Revision #:
12 of 12
Last update:
‎09-29-2018 12:15 AM
Updated by: