All Forums Connectivity
haranrk 1 post Joined 09/15
24 Sep 2015
ExceptionInInitializerError while connecting to Teradata through JDBC Driver

I am trying to read data from Teradata DB in a MapReduce job using the JDBC Driver. I get the following exception/stack trace:
Provided connection string: jdbc:teradata://teradata/database=dbname

java.lang.ExceptionInInitializerError: null

at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getTDgssVers ion( ~[na:na]

at com.teradata.jdbc.jdbc_4.parcel.ClientConfigParcel.toS tream( ~[na:na]

at ~[na:na]

at ~[na:na]

at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.ja va:208) ~[na:na]

at com.teradata.jdbc.jdk6.JDK6_SQL_Connection.<init>(JDK6 ~[na:na]

at com.teradata.jdbc.jdk6.JDK6ConnectionFactory.construct SQLConnection( ~[na:na]

at com.teradata.jdbc.jdbc.ConnectionFactory.createConnect ion( ~[na:na]

at com.teradata.jdbc.jdbc.ConnectionFactory.createConnect ion( ~[na:na]

at com.teradata.jdbc.TeraDriver.doConnect( :233) ~[1443013875589-0/:na]

at com.teradata.jdbc.TeraDriver.connect( 159) ~[1443013875589-0/:na]


tomnolan 594 posts Joined 01/08
25 Sep 2015

The most likely cause of that error is that the tdgssconfig.jar file is missing from your classpath.
Both the terajdbc4.jar file and the tdgssconfig.jar file must be present on your classpath.

You must sign in to leave a comment.