Невозможно создать UDA - PullRequest
       2

Невозможно создать UDA

0 голосов
/ 25 февраля 2019

Я новичок в Cassandra, и я использую Cassandra 3.10, и когда я собираюсь создать UDA, я получаю следующие ошибки

OperationTimedOut: errors={'x.x.x.x'}: 'Request timed out while waiting for schema agreement. See session.execute[_async](timeout) and Cluster.max_schema_agree ent_wait.'},last_host=x.x.x.x

Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers

UDA, который яЯ создаю это

CREATE FUNCTION state_group_and_total( state map<text, int>, type text, amount int )
CALLED ON NULL INPUT
RETURNS map<text, int>
LANGUAGE java AS '
Integer count = (Integer) state.get(type);  if (count == null) count = amount; else count = count + amount; state.put(type, count); return state; ' ;

CREATE OR REPLACE AGGREGATE group_and_total(text, int) 
SFUNC state_group_and_total 
STYPE map<text, int> 
INITCOND {};
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...