apache ignite 1.7我已经在缓存中加载数据并准备从中查询 . 当使用jdbc驱动程序独立运行时,它会给出 "GridClientConnectionResetException: Failed to perform request" 当我和"pre-load cache"代码一起运行时,它运行正常 .
不知道我在这里做错了什么 .
的Class.forName( “org.apache.ignite.IgniteJdbcDriver”); Connection conn = DriverManager.getConnection(jdbc:ignite://:/);语句stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(“Select id,name from ...”);
另外,如果我使用jdbc:ignite:cfg://,它会给spring spring context资源注入错误 . 它与用于预加载数据的配置相同 .
1 回答
您应该检查服务器节点日志 . 很可能存在导致连接关闭的异常 .