You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Sharath MK (JIRA)" <ji...@apache.org> on 2016/09/28 18:48:20 UTC

[jira] [Created] (HIVE-14851) Trying to run two query concurrently, but getting error.

Sharath MK created HIVE-14851:
---------------------------------

             Summary: Trying to run two query concurrently, but getting error. 
                 Key: HIVE-14851
                 URL: https://issues.apache.org/jira/browse/HIVE-14851
             Project: Hive
          Issue Type: Bug
          Components: JDBC
    Affects Versions: 1.2.1
         Environment: Hortonworks
            Reporter: Sharath MK
            Priority: Blocker


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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)