Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC921CF21 for ; Thu, 20 Nov 2014 14:17:24 +0000 (UTC) Received: (qmail 52429 invoked by uid 500); 20 Nov 2014 14:17:20 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 52393 invoked by uid 500); 20 Nov 2014 14:17:20 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 52383 invoked by uid 99); 20 Nov 2014 14:17:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 14:17:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mark.l.reddy@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qc0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 14:16:54 +0000 Received: by mail-qc0-f176.google.com with SMTP id i17so2174266qcy.35 for ; Thu, 20 Nov 2014 06:16:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0KavBvg9PckZRoBbwh+thhRJGQk0eQUfcqGf3lgXiBU=; b=lV8xWw1PeekPNLfwdVURsnKvLlKoPXMgOe3R1Featl3rLdi4gHJuBOS5bEZr7IH8jN yaE7RcFUHXesVM9DtV13BmVP5219KVHQG1Rh9i66qjR2rfFArmWEGF1xCvSGshri2jNe at8J33Vi5FR0RhOitaMqgmZwWG9D7RroM3sbC++zfdqM7LTEyYdL0br6eV7ZKF3i6GP3 yeDSvI18sy/QsRI/ssWUS1qNXuKdxx7YKm61UbQIKoQ+0fwfoYB32bD80ef+RaXFHl7C WDYbo26j5yMLdbMGvNYUTIjciC9RRYmsjS1xn1e50p6fdsGYjer5xXYDZLmQ0Pk1oIW0 sCYA== MIME-Version: 1.0 X-Received: by 10.224.136.194 with SMTP id s2mr33291724qat.82.1416492967628; Thu, 20 Nov 2014 06:16:07 -0800 (PST) Received: by 10.140.42.35 with HTTP; Thu, 20 Nov 2014 06:16:07 -0800 (PST) In-Reply-To: References: Date: Thu, 20 Nov 2014 14:16:07 +0000 Message-ID: Subject: Re: logging over multi-datacenter From: Mark Reddy To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a11c2d8e229be3e05084af816 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2d8e229be3e05084af816 Content-Type: text/plain; charset=UTF-8 Hi Adil, What Cassandra version are you using? Are you using the default user or a non-default user? Mark On 20 November 2014 08:20, Adil wrote: > Hi, > We have two data-center, we configured PasswordAuthenticator on each node, > we increment the RF of system_auth to the number of nodes (each > data-center) as recommended. > We can logged-in via cqlsh without problem, but when i stop cassandra on > all nodes of a data-center we can't logged in in the other > data-center...this error is displayed as output: > Bad credentials] > message="org.apache.cassandra.exceptions.UnavailableException: Cannot > achieve consistency level QUORUM"' > > from what i understand we should be able to logged in even if there is > only one node UP but it seems that has to reach QUORUM consistency level (2 > data-center). > > my question is if the java driver cql uses the same condition and if there > is a way to set the consistency level to like LOCAL_ONE. > > Thanks > Adil > --001a11c2d8e229be3e05084af816 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Adil,=C2=A0

What Cassandra vers= ion are you using? Are you using the default user or a non-default user?


Mark

On 20 November 2014 08:20, Adil <adil.c= habaq@gmail.com> wrote:
Hi,
We have two data-center, we configured PasswordAuthen= ticator on each node, we increment the RF of system_auth to the number of n= odes (each data-center) as recommended.
We can logged-in via cqls= h without problem, but when i stop cassandra on all nodes of a data-center = we can't logged in in the other data-center...this error is displayed a= s output:
Bad credentials] message=3D"org.apache.cassandra.e= xceptions.UnavailableException: Cannot achieve consistency level QUORUM&quo= t;'

from what i understand we should be ab= le to logged in even if there is only one node UP but it seems that has to = reach QUORUM consistency level (2 data-center).

my= question is if the java driver cql uses the same condition and if there is= a way to set the consistency level to like LOCAL_ONE.

=
Thanks
Adil

--001a11c2d8e229be3e05084af816--