簡體   English   中英

AWS上的cassandra 3節點集群加載數據超時

[英]cassandra 3 node cluster on AWS loading data timeout

我正在使用cql將數據從csv文件加載到cassandra群集中,但是我一直收到此錯誤:

<ErrorMessage code=1100 [Coordinator node timed out waiting for replica nodes' responses] message="Operation timed out - received only 0 responses.">

當我執行一個nodetool狀態...我得到這個:

[root@ip-10-205-116-141 bin]# ./nodetool status
Datacenter: us-east
===================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address         Load       Tokens  Owns    Host ID                               Rack
UN  10.205.117.246  98.85 MB   1       ?       72e2394c-bd17-4fe5-aee5-bf4cf8486153  1c
UN  10.205.119.47   98.89 MB   1       ?       7f39be54-5d74-433c-98e1-8aeff64ff795  1c
UN  10.205.116.141  112.18 MB  256     ?       ce5eb89b-d806-4d70-ab14-99df3bdee7c8  1c

Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless

當我在一個節點上執行nodetool信息時,我會得到此信息...

[root@ip-10-205-116-141 bin]# ./nodetool -h 10.205.119.47 info
nodetool: Failed to connect to '10.205.119.47:7199' - ConnectException: 'Connection refused'.

首先,在繼續進行操作之前,在某些節​​點上啟用vnode並在其他節點上禁用vnode是一個壞主意。 要么全部要么一無所有,所以要么所有節點都是vnode,要么都不是。

接下來,發生nodetool錯誤,如果您尚未打開端口,並且您需要在節點上啟用遠程JMX ,防火牆將阻止您,因此請嘗試將主機掛入主機並在本地運行nodetool而不提供IP或端口號。

現在對於實際的導入問題,phact提出的建議很好,但是您是否嘗試過對數據的子集進行導入以查看是否成功? 那就是開始的地方。 如果您嘗試導入2行而失敗,則表明客戶端根本沒有連接到節點(請檢查防火牆配置等)。 如果2記錄導入成功,則將數據拆分,並增加cassandra的超時(更新write_request_timeout_in_ms)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM