cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "peng xiao (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-11815) com.datastax.driver.core.exceptions.UnavailableException: Not enough replica available for query at consistency ONE (1 required but only 0 alive)
Date Tue, 17 May 2016 12:35:12 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-11815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

peng xiao resolved CASSANDRA-11815.
-----------------------------------
    Resolution: Fixed

the datacenter name is wrong,just run update system.local set data_center=xxx to solve this
issue.

> com.datastax.driver.core.exceptions.UnavailableException: Not enough replica available
for query at consistency ONE (1 required but only 0 alive)
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-11815
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11815
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: peng xiao
>            Priority: Critical
>
> Hi,
> We are trying to to add a new Data Center as per the following link.We are using Cassandra
2.1.9.
> http://docs.datastax.com/en/cassandra/2.1/cassandra/operations/ops_add_dc_to_cluster_t.html
> The problem is that when I run the following command in the original cluster:
> ALTER KEYSPACE carrierdata WITH replication = {'class': 'NetworkTopologyStrategy', 'DC1':3,'DC2':3};
> We will get the following error:
> 2016-05-17 19:38:32.920 ERROR 28583 --- [daed440b-2f19-48a5-8bad-77f7169bc32e-string]
[io-11235-exec-4] c.e.c.s.s.filter.GlobalExceptionHandler  : com.datastax.driver.core.exceptions.UnavailableException:
Not enough replica available for query at consistency ONE (1 required but only 0 alive)
> 	at com.datastax.driver.core.exceptions.UnavailableException.copy(UnavailableException.java:79)
> 	at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:269)
> 	at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:183)
> 	at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52)
> 	at com.datastax.driver.mapping.MethodMapper.invoke(MethodMapper.java:148)
> 	at com.datastax.driver.mapping.AccessorInvocationHandler.invoke(AccessorInvocationHandler.java:65)
> 	at com.sun.proxy.$Proxy139.getAccounts(Unknown Source)
> 	at 
> Could you please advise?
> Thanks,
> Peng Xiao



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message