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 0D33ED4CC for ; Tue, 10 Jul 2012 21:05:27 +0000 (UTC) Received: (qmail 48186 invoked by uid 500); 10 Jul 2012 21:05:24 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 48124 invoked by uid 500); 10 Jul 2012 21:05:24 -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 48116 invoked by uid 99); 10 Jul 2012 21:05:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2012 21:05:24 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lilyevsky@mooncapital.com designates 38.105.147.185 as permitted sender) Received: from [38.105.147.185] (HELO mcm-exch-hc.MoonCapital.Corp) (38.105.147.185) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2012 21:05:16 +0000 Received: from mcm-exch-mb.MoonCapital.Corp ([::1]) by mcm-exch-hc.MoonCapital.Corp ([10.5.1.85]) with mapi; Tue, 10 Jul 2012 17:04:49 -0400 From: Leonid Ilyevsky To: "'user@cassandra.apache.org'" Date: Tue, 10 Jul 2012 17:04:47 -0400 Subject: help using org.apache.cassandra.cql3 Thread-Topic: help using org.apache.cassandra.cql3 Thread-Index: Ac1e0oZ0Ty7liuqeRdionVHO4vH+2gAC2dzQ Message-ID: References: <399CB8C7-AEE6-4468-91E0-BF06D6118BD8@thelastpickle.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_A663AF0EC22BAB47966CA61D63C01B385606D23FmcmexchmbMoonCa_" MIME-Version: 1.0 --_000_A663AF0EC22BAB47966CA61D63C01B385606D23FmcmexchmbMoonCa_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am trying to use the org.apache.cassandra.cql3 package. Having problem co= nnecting to the server using ClientState. I was not sure what to put in the credentials map (I did not set any users/= passwords on my server), so I tried setting empty strings for "username" an= d "password", setting them to bogus values, passing null to the login metho= d - there was no difference. It does not complain at the login(), but then it complains about setKeyspac= e(), saying that the specified keyspace does not exist (it obv= iously does exist). The configuration was loaded from cassandra.yaml used by the server. I did not have any problem like this when I used org.apache.cassandra.thrif= t.Cassandra.Client . What am I doing wrong? Appreciate your help, Leonid ________________________________ This email, along with any attachments, is confidential and may be legally = privileged or otherwise protected from disclosure. Any unauthorized dissemi= nation, copying or use of the contents of this email is strictly prohibited= and may be in violation of law. If you are not the intended recipient, any= disclosure, copying, forwarding or distribution of this email is strictly = prohibited and this email and any attachments should be deleted immediately= . This email and any attachments do not constitute an offer to sell or a so= licitation of an offer to purchase any interest in any investment vehicle s= ponsored by Moon Capital Management LP ("Moon Capital"). Moon Capital does = not provide legal, accounting or tax advice. Any statement regarding legal,= accounting or tax matters was not intended or written to be relied upon by= any person as advice. Moon Capital does not waive confidentiality or privi= lege as a result of this email. --_000_A663AF0EC22BAB47966CA61D63C01B385606D23FmcmexchmbMoonCa_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am trying to use the org.apache.cassandra.cql3 package. Ha= ving problem connecting to the server using ClientState.<= /p>

I was not sure what to put in the credentials map (I did not= set any users/passwords on my server), so I tried setting empty strings fo= r “username” and “password”, setting them to bogus values, passing null to the login method – the= re was no difference.

It does not complain at the login(), but then it complains a= bout setKeyspace(<my keyspace>), saying that the specified keyspace d= oes not exist (it obviously does exist).

The configuration was loaded from cassandra.yaml used by the= server.

 

I did not have any problem like this when I used org.apache.= cassandra.thrift.Cassandra.Client .

 

What am I doing wrong?

 

Appreciate your help,

 

Leonid

 



This email, along with any a= ttachments, is confidential and may be legally privileged or otherwise prot= ected from disclosure. Any unauthorized dissemination, copying or use of th= e contents of this email is strictly prohibited and may be in violation of law. If you are not the intended recipient, any= disclosure, copying, forwarding or distribution of this email is strictly = prohibited and this email and any attachments should be deleted immediately= . This email and any attachments do not constitute an offer to sell or a solicitation of an offer to purcha= se any interest in any investment vehicle sponsored by Moon Capital Managem= ent LP (“Moon Capital”). Moon Capital does not provide legal, a= ccounting or tax advice. Any statement regarding legal, accounting or tax matters was not intended or written to be relied = upon by any person as advice. Moon Capital does not waive confidentiality o= r privilege as a result of this email.
--_000_A663AF0EC22BAB47966CA61D63C01B385606D23FmcmexchmbMoonCa_--