Impala jdbc 查询报错:

java.sql.SQLException: [Cloudera][ImpalaJDBCDriver](500002) 
Error setting metadata result set: Unable to find session ID for query handle:
fd4df4208d05cb77:ed1a227300000000.

https://issues.apache.org/jira/browse/IMPALA-5853出得知,是因为这个query_id是无效的

If GetResultSetMetadata() is called with an invalid query id, the error message given is:
Unable to find session ID for query handle: efcdab8967452301:3031323334353637. Instead, like other RPCs, it should say “Invalid query handle: efcdab8967452301:3031323334353637”.
IMPALA-5853: fix GetResultSetMetadata() error message for invalid query id
When given an invalid query id, most RPCs result with “Invalid query
id”, but GetResultSetMetadata() response with “Unable to find session ID
for query handle”. That’s confusing; make it consistent with other
RPCs.

估计是因为网络或者其他原因通信不畅造成的,过一会儿又正常了。