0
내가 DSE 카산드라를 사용하고 DSE 카산드라에 레코드를 삽입하는 동안 "일관성 수준을 달성 할 수 없습니다"와 solr_query 사용할 그래서 키 스페이스를 생성얻기 오류
insert into demo.onlinetransactions (unique_tran_id, user_id,
account_type, account_id, create_ts, data)
values ('trans1', 'user1', 'creditcard',
'123456789', '2015-01-01 09:00:00', '{amount:100.00,vendor:Amazon}');
: 나는 오류가 발생하고이 테이블에 레코드를 삽입 할 때
create table demo.onlinetransactions
(unique_tran_id text, user_id text, account_type text,
account_id text, create_ts timestamp, data text,
primary key (unique_tran_id));
그러나 아래에 언급 한 바와 같이
오류 :
NoHostAvailable: ('Unable to complete the operation against any hosts',
{<Host: 127.0.0.1 dc0>: Unavailable('Error from server: code=1000
[Unavailable exception]
message="Cannot achieve consistency level ONE"
info={\'required_replicas\': 1, \'alive_replicas\': 0,
\'consistency\': \'ONE\'}',)})
어떤 구성 설정 내가 나를 "NetworkTopologyStrategy"와 "SOLR"설정과 키 스페이스에 레코드를 삽입 할 수 있도록하기위한 확인해야합니까?
또한 나는 키 스페이스는 다음과 같은 경우에 레코드를 삽입 할 수 있어요 (그러나 이것은 내가 사용하고자하는 SOLR를 사용하지 않습니다.) :
CREATE KEYSPACE user WITH replication =
{'class': 'SimpleStrategy', 'replication_factor': '3'}
AND durable_writes = true;
은 데이터 센터는 SOLR 이름은? 그렇지 않은 경우이 필드는 Solr과 아무 관련이 없으므로 데이터 센터 이름을 사용해야합니다. 당신이있는 경우 SOLR 당신이 할 필요가 C의 * 테이블과 인덱스의 핵심을 만드는 것입니다 DSE 활성화하는 것이 중요하다. – mando222
그냥 내가 데이터 센터의 이름을 찾을 수있는 위치를 알고 싶어. 나는 "cassandra-topology.properties"파일에서 이름을 시도했다. 이것은 데이터 센터 이름을 얻을 수있는 위치입니다. xx.0.0.xx = DC1과 마찬가지로 : 나는 DC1을 지정 RAC1 여전히 오류가 발생했습니다. – Virendra