pradoshsahoo2021 opened a new issue, #2143:
URL: https://github.com/apache/hop/issues/2143

   ### 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:<JDBC URL>
   
   
   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:<JDBC URL>
   
   
        at 
org.apache.hop.core.database.Database.normalConnect(Database.java:375)
        at org.apache.hop.core.database.Database.connect(Database.java:306)
        at 
org.apache.hop.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.java:47)
        at 
org.apache.hop.core.database.DatabaseFactory.getConnectionTestResults(DatabaseFactory.java:72)
        at 
org.apache.hop.core.database.DatabaseMeta.testConnectionSuccess(DatabaseMeta.java:2053)
        at 
org.apache.hop.ui.core.database.DatabaseMetaEditor.testConnection(DatabaseMetaEditor.java:857)
        at 
org.apache.hop.ui.core.database.DatabaseMetaEditor.test(DatabaseMetaEditor.java:744)
        at 
org.apache.hop.ui.core.database.DatabaseMetaEditor.lambda$createButtonsForButtonBar$6(DatabaseMetaEditor.java:912)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4251)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4068)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3645)
        at org.apache.hop.ui.hopgui.HopGui.open(HopGui.java:464)
        at org.apache.hop.ui.hopgui.HopGui.main(HopGui.java:351)
   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:<JDBC URL>
   
        at 
org.apache.hop.core.database.Database.connectUsingClass(Database.java:470)
        at 
org.apache.hop.core.database.Database.normalConnect(Database.java:360)
        ... 14 more
   Caused by: java.sql.SQLException: Could not open connection to 
jdbc:hive2:<JDBC URL>
        at 
org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:206)
        at org.apache.hive.jdbc.HiveConnection.<init>(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:    <hostname>
   Port: <port>
   Database name:       default
   Url: jdbc:hive2:<JDBC URL>
   
   
   ### Issue Priority
   
   Priority: 1
   
   ### Issue Component
   
   Component: Database


-- 
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]

Reply via email to