java.sql.SQLException: org.apache.thrift.transport.TTransportException: java.net.SocketTimeoutException: Read timed out
at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:262)
at org.apache.hive.jdbc.HivePreparedStatement.execute(HivePreparedStatement.java:98) at
如果超时时间是三十秒的话 那就是驱动的请求时间没设置 ,这个时间默认就是30s
在执行sql前执行
// 设置连接超时时间为6000秒 DriverManager.setLoginTimeout(6000);
增加请求的超时时间
标签:SocketTimeoutException,jdbc,java,sql,apache,org,超时 From: https://www.cnblogs.com/pxblog/p/17868119.html