Cassandra-Stress因错误而停止

时间:2016-10-04 10:11:21

标签: cassandra cassandra-stress

我已经在具有centos 7的服务器上安装了cassandra 3.0.9,同时尝试使用以下命令执行cassandra-stress

  

cassandra-stress mixed n = 2000000 -pop seq = 1..2000000 -rate thread = 2000 -node 10.10.0.1

它根据命令开始执行但有时它开始给出如下所示的错误

  

com.datastax.drivers.core.exceptions.NoHostAvailableExcception:查询失败的所有主机(已尝试:10.10.0.1/10.10.0.1:9042(com.datastax.driver.core.exceptions.TransportException:[10.10] .0.1 / 10.10.0.1]连接已关闭))

有时会出现如下错误

java.io.IOException:键上的操作x0 [35353538363236373030]:未验证返回的数据

    at org.apache.cassandra.stress.Operation.error(Operation.java:135)
    at org.apache.cassandra.stress.Operation.timeWithRetry(Operation.java:113)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:98)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:106)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:258)
    at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:321)

java.io.IOException:键上的操作x0 [4c364c39375032333431]:未验证返回的数据

    at org.apache.cassandra.stress.Operation.error(Operation.java:135)
    at org.apache.cassandra.stress.Operation.timeWithRetry(Operation.java:113)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:98)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:106)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:258)
    at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:321)

java.io.IOException:键上的操作x0 [4b364e504c4b4c314e30]:返回的数据未经过验证

    at org.apache.cassandra.stress.Operation.error(Operation.java:135)
    at org.apache.cassandra.stress.Operation.timeWithRetry(Operation.java:113)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:98)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:106)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:258)
    at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:321)

java.io.IOException:键上的操作x0 [3435504d3135374b3031]:未验证返回的数据

    at org.apache.cassandra.stress.Operation.error(Operation.java:135)
    at org.apache.cassandra.stress.Operation.timeWithRetry(Operation.java:113)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:98)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:106)
    at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:258)
    at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:321)

java.io.IOException:键上的操作x0 [303936354c5033343130]:未验证返回的数据

由于

1 个答案:

答案 0 :(得分:3)

您需要在阅读之前编写数据。

首先执行:     cassandra-stress write n=2000000 -pop seq=1..2000000 -rate threads=2000 -node 10.10.0.1

然后你可以执行:cassandra-stress mixed n=2000000 -pop seq=1..2000000 -rate threads=2000 -node 10.10.0.1