I am using hive-jdbc-0.7.1-cdh3u5.jar. I have some memory-intensive queries running on EMR which occasionally fail. When I look at the job tracker I see that the query has been killed and I see the following error:
java.io.IOException: Task process exit with nonzero status of 137 However, the Hive JDBC driver execute() call does not detect this, but instead is left hanging. No exception is caught. Any ideas? Thanks: <code> ST stQuery = MY_QUERY; try { Statement stmt = conn.createStatement(); stmt.execute(stQuery.render()); // Hangs here without knowing that the job has been killed. Exception does not get raised. } catch(SQLException sqle){ sqle.printStackTrace(); log.error("Failed to run query"); return; } </code>