cassandra设置shell或python查询的timeout

  1. 设置cassandra.yaml
  2. python-driver的设置:http://datastax.github.io/python-driver/api/cassandra.html#cassandra.OperationTimedOut
  3. 更改default_timeout:http://datastax.github.io/python-driver/api/cassandra/cluster.html#cassandra.cluster.Session.default_timeout
  4. python执行sql时设置:http://datastax.github.io/python-driver/api/cassandra/cluster.html#cassandra.cluster.Session.execute
  5. shell:更改安装目录下bin/cqlsh.py的DEFAULT_REQUEST_TIMEOUT_SECONDS
posted @ 2017-08-25 15:27  白神来了  阅读(815)  评论(0编辑  收藏  举报