zhangbutao commented on PR #4720:
URL: https://github.com/apache/hive/pull/4720#issuecomment-1751936767
> I understand the need for hive-jdbc jar (and I assumed it was already on
the Tez CP) but do you know what class it needed from the hive-service.jar? We
should definitely document this? Would you mind adding a wiki to the hive docs
( we need to document this feature anyhow)
@nrg4878 If you submit a query which joins two hive-jdbc remote table, a
tez task should be launched. And if hive-service.jar is not in Tez classpath,
Tez task will faill with the following exception:
```
java.lang.NoClassDefFoundError: org/apache/hive/service/cli/HiveSQLException
at
org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:297)
at
org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:285)
at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:94)
at
org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:52)
at
org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:374)
at
org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:106)
at
org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:649)
at
org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:531)
at
org.apache.commons.dbcp2.BasicDataSource.getLogWriter(BasicDataSource.java:1043)
at
org.apache.commons.dbcp2.BasicDataSourceFactory.createDataSource(BasicDataSourceFactory.java:461)
at
org.apache.hive.storage.jdbc.dao.GenericJdbcDatabaseAccessor.initializeDatabaseConnection(GenericJdbcDatabaseAccessor.java:425)
at
org.apache.hive.storage.jdbc.dao.GenericJdbcDatabaseAccessor.getRecordIterator(GenericJdbcDatabaseAccessor.java:231)
at
org.apache.hive.storage.jdbc.JdbcRecordReader.next(JdbcRecordReader.java:58)
```
I'd love to add this note to the hive docs, and i think we maybe document
here?https://cwiki.apache.org/confluence/display/Hive/Data+Connectors+in+Hive
Could you please give me write access on this docs page? My usename is
`zhangbutao`, thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]