Support Questions

Find answers, ask questions, and share your expertise

Impala JDBC driver fails on getColumns: error setting metadata information

avatar
New Contributor

Hi, I am looking for explanation for below error. It fails on getColumns call.

 

 

Caused by: java.sql.SQLException: [Cloudera][ImpalaJDBCDriver](500001) Error setting metadata information: Metadata Initialization Error.
	at com.cloudera.impala.hivecommon.dataengine.metadata.HiveJDBCColumnsMetadataSource.initializeColumn(Unknown Source)
	at com.cloudera.impala.hivecommon.dataengine.metadata.HiveJDBCColumnsMetadataSource.(Unknown Source)
	at com.cloudera.impala.hivecommon.dataengine.HiveJDBCDataEngine.makeNewMetadataSource(Unknown Source)
	at com.cloudera.impala.dsi.dataengine.impl.DSIDataEngine.makeNewMetadataResult(Unknown Source)
	at com.cloudera.impala.hivecommon.dataengine.HiveJDBCDataEngine.makeNewMetadataResult(Unknown Source)
	at com.cloudera.impala.jdbc.jdbc41.S41DatabaseMetaData.createMetaDataResult(Unknown Source)
	at com.cloudera.impala.jdbc.common.SDatabaseMetaData.getColumns(Unknown Source)

...

Caused by: com.cloudera.impala.support.exceptions.GeneralException: [Cloudera][ImpalaJDBCDriver](500001) Error setting metadata information: Metadata Initialization Error.
	... 46 more
Caused by: com.cloudera.impala.support.exceptions.GeneralException: HIVE_METADATA_SCHEMA_ERR
	at com.cloudera.impala.hivecommon.api.HS2Client.getSchemas(Unknown Source)
	... 46 more
Caused by: com.cloudera.impala.support.exceptions.GeneralException: HIVE_QUERY_EXE_ERR
	at com.cloudera.impala.hivecommon.api.HS2Client.executeStatementInternal(Unknown Source)
	at com.cloudera.impala.hivecommon.api.HS2Client.executeStatement(Unknown Source)
	at com.cloudera.impala.hivecommon.api.HS2Client.runCatalogFunction(Unknown Source)
	... 47 more

 

1 REPLY 1

avatar
Expert Contributor

Hello-

Make sure first of all you are using the latest Cloudera JDBC.