Details
-
Bug
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
1.2.1
-
None
-
None
-
Hortonworks
Description
Hi,
I'm trying to use same hive connection object and running two thread by passing connection object.
In Runnable class constructor i'm creating statement object and in run function i'm trying to query and displaying result.
Please help me how to run concurrent query using JDBC java program.
But when i try running i'm getting below error,
java.sql.SQLException: org.apache.thrift.transport.TTransportException
at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:262)
at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:392)
at com.infy.Runn.executeQuery(Runn.java:51)
at com.infy.Runn.run(Runn.java:30)
at java.lang.Thread.run(Unknown Source)