Error connecting to Google BigQuery 'NoClassDefFoundError :/client/auth/oauth2/Credential'

David Registro shared this problem 8 years ago
Resolved

I'm trying to connect to Google BigQuery, but running into the following error:

java.sql.SQLException: Could not connect: java.lang.NoClassDefFoundError: com/google/api/client/auth/oauth2/Credential


13e123e240ddf106d1904ed8d7de4fbe

Best Answer
photo

This is likely because the standalone Google

BigQuery JDBC driver is being used instead of the driver that includes

Yellowfin required dependencies for OAUTH- i.e.

bqjdbc-1.4-standalone.jar

vs.

bqjdbc-1.4.jar.

If you are trying to create a Google BigQuery connection, try downloading and using the bqjdbc-1.4.jar file (or the most recent driver) from:

https://code.google.com/archive/p/starschema-bigquery-jdbc/downloads

Replies (1)

photo
1

This is likely because the standalone Google

BigQuery JDBC driver is being used instead of the driver that includes

Yellowfin required dependencies for OAUTH- i.e.

bqjdbc-1.4-standalone.jar

vs.

bqjdbc-1.4.jar.

If you are trying to create a Google BigQuery connection, try downloading and using the bqjdbc-1.4.jar file (or the most recent driver) from:

https://code.google.com/archive/p/starschema-bigquery-jdbc/downloads

Leave a Comment
 
Attach a file