使用java将数据插入cassandra数据库时等待服务器响应异常超时

时间:2017-03-20 15:22:50

标签: java amazon-web-services exception cassandra timeout

使用rest api&#39>插入数据时获得以下异常。

Exception At: com.yagnaiq.repository.impl.ProductRepositoryImpl
org.springframework.cassandra.support.exception.CassandraUncategorizedException: [/172.31.19.55:9042] Timed out waiting for server response; nested exception is com.datastax.driver.core.exceptions.OperationTimedOutException: [/172.31.19.55:9042] Timed out waiting for server response
    at org.springframework.cassandra.support.CassandraExceptionTranslator.translateExceptionIfPossible(CassandraExceptionTranslator.java:129)

我为cassandra数据库做了以下配置

write_request_timeout_in_ms: 200000
read_request_timeout_in_ms: 50000

要插入的数据大约有30000条记录。

我的所有服务器都托管在AWS上,包括cassandra和tomcat for rest。

在执行查询时也在数据共享中获得异常。附上相同的屏幕截图。enter image description here

0 个答案:

没有答案
相关问题