elasticsearch Cassandra:无法在特定键空间上实现一致性级别仲裁,elasticsearch,cassandra,kibana,elasticsearch,Cassandra,Kibana" /> elasticsearch Cassandra:无法在特定键空间上实现一致性级别仲裁,elasticsearch,cassandra,kibana,elasticsearch,Cassandra,Kibana" />

elasticsearch Cassandra:无法在特定键空间上实现一致性级别仲裁

elasticsearch Cassandra:无法在特定键空间上实现一致性级别仲裁,elasticsearch,cassandra,kibana,elasticsearch,Cassandra,Kibana,实际上,我使用的是Elassandra,它是Cassandra和Elasticsearch的组合。 但问题可能来自卡桑德拉(日志中说) 我将两个节点连接为一个数据中心DC1。我正试图在其中一个节点上安装Kibana。我的Kibana服务器总是说“Kibana服务器还没有准备好”,然后我发现错误大约是Cassandra一致性级别 我的cassandra系统\u auth设置为 system_auth WITH REPLICATION= {'class' : 'SimpleStrategy

实际上,我使用的是Elassandra,它是Cassandra和Elasticsearch的组合。 但问题可能来自卡桑德拉(日志中说)

我将两个节点连接为一个数据中心DC1。我正试图在其中一个节点上安装Kibana。我的Kibana服务器总是说“Kibana服务器还没有准备好”,然后我发现错误大约是Cassandra一致性级别

我的cassandra系统\u auth设置为

system_auth     
WITH REPLICATION= {'class' : 'SimpleStrategy', 
                     'DC1' :2 };
这是手动触发Kibana服务的日志
/usr/share/Kibana/bin/Kibana-c/etc/Kibana/Kibana.yml

FATAL  [exception] org.apache.cassandra.exceptions.UnavailableException: Cannot achieve 
consistency level QUORUM :: {"path":"/.kibana_1","query":{"include_type_name":true},"body":"
{\"mappings\":{\"doc\":{\"dynamic\":\"strict\",\"properties\":{\"config\":
{\"dynamic\":\"true\",\"properties\":{\"buildNum\":
{\"type\":\"keyword\"}}},\"migrationVersion\":
{\"dynamic\":\"true\",\"type\":\"object\"},\"type\":{\"type\":\"keyword\"},\"namespace\":
{\"type\":\"keyword\"},\"updated_at\":{\"type\":\"date\"},\"index-pattern\":{\"properties\":
{\"fieldFormatMap\":{\"type\":\"text\"},\"fields\":{\"type\":\"text\"},\"intervalName\":
{\"type\":\"keyword\"},\"notExpandable\":{\"type\":\"boolean\"},\"sourceFilters\":
{\"type\":\"text\"},\"timeFieldName\":{\"type\":\"keyword\"},\"title\":
{\"type\":\"text\"},\"type\":{\"type\":\"keyword\"},\"typeMeta\":
{\"type\":\"keyword\"}}},\"visualization\":{\"properties\":{\"description\":
{\"type\":\"text\"},\"kibanaSavedObjectMeta\":{\"properties\":{\"searchSourceJSON\":
{\"type\":\"text\"}}},\"savedSearchId\":{\"type\":\"keyword\"},\"title\":
{\"type\":\"text\"},\"uiStateJSON\":{\"type\":\"text\"},\"version\":
{\"type\":\"integer\"},\"visState\":{\"type\":\"text\"}}},\"search\":{\"properties\":
{\"columns\":{\"type\":\"keyword\"},\"description\":{\"type\":\"text\"},\"hits\":
{\"type\":\"integer\"},\"kibanaSavedObjectMeta\":{\"properties\":{\"searchSourceJSON\":
{\"type\":\"text\"}}},\"sort\":{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"version\":
{\"type\":\"integer\"}}},\"dashboard\":{\"properties\":{\"description\":
{\"type\":\"text\"},\"hits\":{\"type\":\"integer\"},\"kibanaSavedObjectMeta\":{\"properties\":
{\"searchSourceJSON\":{\"type\":\"text\"}}},\"optionsJSON\":{\"type\":\"text\"},\"panelsJSON\":
{\"type\":\"text\"},\"refreshInterval\":{\"properties\":{\"display\":
{\"type\":\"keyword\"},\"pause\":{\"type\":\"boolean\"},\"section\":
{\"type\":\"integer\"},\"value\":{\"type\":\"integer\"}}},\"timeFrom\":
{\"type\":\"keyword\"},\"timeRestore\":{\"type\":\"boolean\"},\"timeTo\":
{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"uiStateJSON\":
{\"type\":\"text\"},\"version\":{\"type\":\"integer\"}}},\"url\":{\"properties\":
{\"accessCount\":{\"type\":\"long\"},\"accessDate\":{\"type\":\"date\"},\"createDate\":
{\"type\":\"date\"},\"url\":{\"type\":\"text\",\"fields\":{\"keyword\":
{\"type\":\"keyword\",\"ignore_above\":2048}}}}},\"server\":{\"properties\":{\"uuid\":
{\"type\":\"keyword\"}}},\"kql-telemetry\":{\"properties\":{\"optInCount\":
{\"type\":\"long\"},\"optOutCount\":{\"type\":\"long\"}}},\"timelion-sheet\":{\"properties\":
{\"description\":{\"type\":\"text\"},\"hits\":{\"type\":\"integer\"},\"kibanaSavedObjectMeta\":
{\"properties\":{\"searchSourceJSON\":{\"type\":\"text\"}}},\"timelion_chart_height\":
{\"type\":\"integer\"},\"timelion_columns\":{\"type\":\"integer\"},\"timelion_interval\":
{\"type\":\"keyword\"},\"timelion_other_interval\":{\"type\":\"keyword\"},\"timelion_rows\":
{\"type\":\"integer\"},\"timelion_sheet\":{\"type\":\"text\"},\"title\":
{\"type\":\"text\"},\"version\":{\"type\":\"integer\"}}}}}},\"settings\":
{\"number_of_shards\":1,\"auto_expand_replicas\":\"0-1\"}}","statusCode":500,"response":"
{\"error\":{\"root_cause\":
[{\"type\":\"exception\",\"reason\":\"org.apache.cassandra.exceptions.UnavailableException: 
Cannot achieve consistency level 
QUORUM\"}],\"type\":\"exception\",\"reason\":\"org.apache.cassandra.exceptions.UnavailableExcept
ion: Cannot achieve consistency level QUORUM\",\"caused_by\":
{\"type\":\"unavailable_exception\",\"reason\":\"Cannot achieve consistency level 
QUORUM\"}},\"status\":500}"}
没有任何名为“kibana_1”的索引或任何包含kibana一词的索引。但也有名为
“\u kibana\u 1”
“\u kibana”

这导致Kibana服务无法启动

systemctl status kibana
● kibana.service - Kibana
   Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2020-09-10 16:26:14 CEST; 2s ago
  Process: 16942 ExecStart=/usr/share/kibana/bin/kibana -c /etc/kibana/kibana.yml (code=exited, status=1
 Main PID: 16942 (code=exited, status=1/FAILURE)

Sep 10 16:26:14 ns3053180 systemd[1]: kibana.service: Service hold-off time over, scheduling restart.
Sep 10 16:26:14 ns3053180 systemd[1]: kibana.service: Scheduled restart job, restart counter is at 3.
Sep 10 16:26:14 ns3053180 systemd[1]: Stopped Kibana.
Sep 10 16:26:14 ns3053180 systemd[1]: kibana.service: Start request repeated too quickly.
Sep 10 16:26:14 ns3053180 systemd[1]: kibana.service: Failed with result 'exit-code'.
Sep 10 16:26:14 ns3053180 systemd[1]: Failed to start Kibana.

我认为这是你的问题:

system_auth WITH REPLICATION= {'class' : 'SimpleStrategy', 'DC1' :2 };
SimpleStrategy
类不接受数据中心/RF对作为参数。它有一个参数,即复制系数:

ALTER KEYSPACE system_auth WITH REPLICATION= {'class' : 'SimpleStrategy', 'replication_factor' :2 };
相比之下,
NetworkTopologyStrategy
采用您在上面提供的参数:

ALTER KEYSPACE system_auth WITH REPLICATION= {'class' : 'NetworkTopologyStrategy', 'DC1' :2 };
在我看来,真的不太需要
SimpleStrategy
。我从不使用它

注意:如果您要在
LOCAL\u QUORUM
查询,您应该至少有3个副本。或者至少是一个能够计算多数的奇数。因为2的法定人数是2。因此,在仲裁中仅使用2个副本进行查询并不能真正帮助您