使用HIVE-JDBC+TOMCAT-JDBC连接(CONNECTION)中断的处理过程

      最后更新:2022-07-22 05:51:42 手机定位技术交流文章

      现象描述
      Hive环境是一个具有800+表的数据库,业务代码需要一个桌面{tableName}来访问表信息。 当程序运行到400+时,它开始无法获取信息。

      查找原因
      检查日志显示连接已被切断,具体如下:

      【INFO】org.apache.ibatis.exceptions.PersistenceException:

      Error querying database. Cause: java.sql.SQLException: Connection has already been closed.

      The error may exist in 省略/HiveCollectionMapper.xml

      The error may involve 省略.HiveCollectionMapper.getTableParameters

      The error occurred while executing a query

      SQL: desc formatted logsget.dim_qdas_superderive_eventlist

      本文由 在线网速测试 整理编辑,转载请注明出处,原文链接:https://www.wangsu123.cn/news/30330.html

          热门文章

          文章分类