I recently had a hive query (executed via a JDBC connection) hang for several hours due to a metastore issue. Is there a way that I set a maximum query time with my JDBC connection? This query should take just a few seconds, so I'd rather kill it after a few minutes than let it block for hours.
Some searching of the Hive JIRA suggests that this isn't possible, but asking here if anyone has advice.