I am writing a java program to run concurrent JDBC statements. But it
org.apache.thrift.TApplicationException: execute failed: out of sequence
The steps are:
1. open a connection to "jdbc:derby://hiveHost:port/commonDb"
2. run select statement at the same time:
String sql = "select * from " + tableName;
ResultSet rs1 = stmt.executeQuery(sql);
ResultSet rs2 = stmt.executeQuery(sql);
while(rs1.next() & rs2.next())
String s1 = rs1.getString(1);
String s2 = rs2.getString(1);
System.out.println(s1+" | "+s2);
My question is can hive handle concurrent JDBC statements?