即時通訊使用HFactory.createRangeSlicesQuery
並將行數設置爲100萬(使用setRowCount()方法),但獲得TimedOutException()
。如何增加Hector中查詢的超時時間?
有沒有辦法從客戶端設置超時?
我已經嘗試過CassandraHostConfigurator
中的各種安裝程序,但它沒有幫助。
即時通訊使用HFactory.createRangeSlicesQuery
並將行數設置爲100萬(使用setRowCount()方法),但獲得TimedOutException()
。如何增加Hector中查詢的超時時間?
有沒有辦法從客戶端設置超時?
我已經嘗試過CassandraHostConfigurator
中的各種安裝程序,但它沒有幫助。
您應該增大cassandra.yaml
中的rpc_timeout
設置,這意味着您需要爲每個節點配置設置服務器端。結賬this thread瞭解更多詳情。
不應該增加超時,而應該小批量翻閱數據。
像native Java driver CQL客戶端自動做到這一點:http://www.datastax.com/dev/blog/cql-in-cassandra-2-0
所以在'CassandraHostConfigurator'沒有相關的制定者? – itamar