-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Apache HoP is not able to connect to Apache Hive #2143
Comments
can you connect to your Hive database using another JDBC tool such as DBeaver? |
I am able to connect to Hive from DBeaver and kettle. I also compared the JDBC connection string form Kettle and HOP, both are identical. Still I am getting error when connecting to Hive from Apache Hop. |
Do I have to read this as you made changes to the Hop installation? The drivers needed to connect to Hive are already present in the installation. |
First I got below error with the existing drivers. After that I replaced them with drivers I am using in kettle and Dbeaver. Error in the Hop GUI : org/apache/hadoop/shaded/com/ctc/wstx/io/InputBootstrapper java.lang.NoClassDefFoundError: org/apache/hadoop/shaded/com/ctc/wstx/io/InputBootstrapper
Caused by: java.lang.ClassNotFoundException: Unable to load class 'org.apache.hadoop.shaded.com.ctc.wstx.io.InputBootstrapper' in this classloader or in the parent
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.shaded.com.ctc.wstx.io.InputBootstrapper
Error in the Hop GUI : Could not initialize class org.apache.hive.jdbc.Utils$JdbcConnectionParams java.lang.NoClassDefFoundError: Could not initialize class org.apache.hive.jdbc.Utils$JdbcConnectionParams
|
thanks for the extra info, will look into it. |
.take-issue |
#2143 - hive standalone dependency + integration tests
Apache Hop version?
2.2.0, 2.1.0
Java version?
openjdk-11.0.2
Operating system
Windows
What happened?
Create a database connection to Apache Hive.
Test the connection. It throws below error.
Error connecting to database [39_UDEX_HIVE] :org.apache.hop.core.exception.HopDatabaseException:
Error occurred while trying to connect to the database
Error connecting to database: (using class org.apache.hive.jdbc.HiveDriver)
Could not open connection to jdbc:hive2:
org.apache.hop.core.exception.HopDatabaseException:
Error occurred while trying to connect to the database
Error connecting to database: (using class org.apache.hive.jdbc.HiveDriver)
Could not open connection to jdbc:hive2:
Caused by: org.apache.hop.core.exception.HopDatabaseException:
Error connecting to database: (using class org.apache.hive.jdbc.HiveDriver)
Could not open connection to jdbc:hive2:
Caused by: java.sql.SQLException: Could not open connection to jdbc:hive2:
at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:206)
at org.apache.hive.jdbc.HiveConnection.(HiveConnection.java:178)
at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
at org.apache.hop.core.database.DelegatingDriver.connect(DelegatingDriver.java:45)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:189)
at org.apache.hop.core.database.Database.connectUsingClass(Database.java:454)
... 15 more
Caused by: io.trino.hive.jdbc.$internal.org.apache.thrift.transport.TTransportException
at io.trino.hive.jdbc.$internal.org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
at io.trino.hive.jdbc.$internal.org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
at io.trino.hive.jdbc.$internal.org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
at io.trino.hive.jdbc.$internal.org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:305)
at io.trino.hive.jdbc.$internal.org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:38)
at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:203)
... 21 more
Hostname:
Port:
Database name: default
Url: jdbc:hive2:
Issue Priority
Priority: 1
Issue Component
Component: Database
The text was updated successfully, but these errors were encountered: