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 2A1B19D61 for ; Wed, 14 Mar 2012 19:59:29 +0000 (UTC) Received: (qmail 27815 invoked by uid 500); 14 Mar 2012 19:59:26 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 27792 invoked by uid 500); 14 Mar 2012 19:59:26 -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 27784 invoked by uid 99); 14 Mar 2012 19:59:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 19:59:26 +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 tyler@datastax.com designates 209.85.215.44 as permitted sender) Received: from [209.85.215.44] (HELO mail-lpp01m010-f44.google.com) (209.85.215.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 19:59:20 +0000 Received: by lagj5 with SMTP id j5so2120420lag.31 for ; Wed, 14 Mar 2012 12:58:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=rdaXmIOKBzKCyS6pR4WS2xbjQgKEUUm6Oys1ivwWI6M=; b=eh8T9xiblv2Xq8XwnsN8dk2gHdUTEZmCaPZK06GG8PHlKlsyVgF2IbOzzgzwOQqtTz ZCzhcoaRlxDQa4/m3RzAYaRNnA9gcDSbEAPltdAUz/ch2dLHTYNAR6g87zxloUz1prl7 KYgE9IMfaEqjYv8NeV7XFjoF8NA0oQQxs4biI5pTi/rNYVatPPLtouNkMKCVQdeEmrbk 88KqOyfhNoPRbxAVisKGxMYAEH15pbdZyHdivmJy9SlGAmhuEmZnWLJm6mEudU+PYJZD YxnSkVhTYO7y8wZ1lkDUVC2TlE7QG+DV6sCXDD735gX5r4W0TlWJIszZdxS9iCYuXnWt 2MrA== MIME-Version: 1.0 Received: by 10.152.106.145 with SMTP id gu17mr2922548lab.13.1331755139637; Wed, 14 Mar 2012 12:58:59 -0700 (PDT) Received: by 10.112.24.170 with HTTP; Wed, 14 Mar 2012 12:58:59 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 Mar 2012 14:58:59 -0500 Message-ID: Subject: Re: [Windows] How to configure simple authentication and authorization ? From: Tyler Hobbs To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=f46d04083a9d069ffb04bb39681f X-Gm-Message-State: ALoCoQmPBm7dUH36s9EmlNP/LZi3S6Mc63k94CHP8LF3p/SeBW0zAgK7NZ/w+fAh3zJq6lzxkI17 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04083a9d069ffb04bb39681f Content-Type: text/plain; charset=ISO-8859-1 If you haven't enabled encryption, it shouldn't be trying to open that file in the first place. Did you set the location of passwd.properties or access.properties to be that file? If not, there might be a bug here. On Wed, Mar 14, 2012 at 10:49 AM, Sabbiolina wrote: > > > encryption_options: > internode_encryption: none > keystore: conf/.keystore > keystore_password: cassandra > truststore: conf/.truststore > truststore_password: cassandra > > from log: > > INFO [FlushWriter:1] 2012-03-14 14:32:58,948 Memtable.java (line 283) > Completed flushing C:\DataStax\data\data\system\ > LocationInfo-hc-12-Data.db (80 bytes) > ERROR [main] 2012-03-14 14:32:58,952 AbstractCassandraDaemon.java (line > 373) Exception encountered during startup > java.io.FileNotFoundException: conf\.truststore > > > Where do I put the files? > > > > > On Wed, Mar 14, 2012 at 8:43 AM, Maki Watanabe wrote: > >> Have you build and installed SimpleAuthenticator from the source >> repository? >> It is not included in the binary kit. >> >> maki >> >> 2012/3/14 Sabbiolina : >> > HI. I followed this: >> > >> > >> > >> > To set up simple authentication and authorization >> > 1. Edit cassandra.yaml, setting >> > org.apache.cassandra.auth.SimpleAuthenticator as the >> > authenticator value. The default value of AllowAllAuthenticator is >> > equivalent to no authentication. >> > 2. Edit access.properties, adding entries for users and their >> permissions to >> > read and write to specified >> > keyspaces and column families. See access.properties below for details >> on >> > the correct format. >> > 3. Make sure that users specified in access.properties have >> corresponding >> > entries in passwd.properties. >> > See passwd.properties below for details and examples. >> > 4. After making the required configuration changes, you must specify the >> > properties files when starting Cassandra >> > with the flags -Dpasswd.properties and -Daccess.properties. For example: >> > cd $CASSANDRA_HOME >> > sh bin/cassandra -f -Dpasswd.properties=conf/passwd.properties >> > -Daccess.properties=conf/access.properties >> > >> > >> > I started services with additional parameters, but no result, no Log, >> > nothing.... >> > >> > I use datastax 1.0.8 communiti edition on win 7 64 bit >> > >> > >> > Tnxs >> > >> > > -- Tyler Hobbs DataStax --f46d04083a9d069ffb04bb39681f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable If you haven't enabled encryption, it shouldn't be trying to open t= hat file in the first place.=A0 Did you set the location of passwd.properti= es or access.properties to be that file?

If not, there might be a bu= g here.

On Wed, Mar 14, 2012 at 10:49 AM, Sabbiolina= <sabbiolina@g= mail.com> wrote:


encryption_options:
=A0=A0=A0 internode_encryption: none
=A0= =A0=A0 keystore: conf/.ke= ystore
=A0=A0=A0 keystore_password: cassandra
=A0=A0=A0 trus= tstore: conf/.truststore =
=A0=A0=A0 truststore_password: cassandra

from log:

INFO [Flu= shWriter:1] 2012-03-14 14:32:58,948 Memtable.java (line 283) Completed flus= hing C:\DataStax\data\data\system\
LocationInfo-hc-12-Data.db (80 bytes= )
=A0ERROR [main] 2012-03-14 14:32:58,952 AbstractCassandraDaemon.java (line = 373) Exception encountered during startup
=A0java.io.FileNotFoundException: conf\.trust= store


Where do I put the f= iles?



On Wed, Mar 14, 2012 at 8:43 AM, Maki Watanabe = <watanabe.maki@gmail.com> wrote:
Have you build and installed SimpleAuthenticator from the source repository= ?
It is not included in the binary kit.

maki

2012/3/14 Sabbiolina <sabbiolina@gmail.com>:
> HI. I followed this:
>
>
>
> To set up simple authentication and authorization
> 1. Edit cassandra.yaml, setting
> org.apache.cassandra.auth.SimpleAuthenticator as the
> authenticator value. The default value of AllowAllAuthenticator is
> equivalent to no authentication.
> 2. Edit access.properties, adding entries for users and their permissi= ons to
> read and write to specified
> keyspaces and column families. See access.properties below for details= on
> the correct format.
> 3. Make sure that users specified in access.properties have correspond= ing
> entries in passwd.properties.
> See passwd.properties below for details and examples.
> 4. After making the required configuration changes, you must specify t= he
> properties files when starting Cassandra
> with the flags -Dpasswd.properties and -Daccess.properties. For exampl= e:
> cd $CASSANDRA_HOME
> sh bin/cassandra -f -Dpasswd.properties=3Dconf/passwd.properties
> -Daccess.properties=3Dconf/access.properties
>
>
> I started services with additional parameters, but no result, no Log,<= br> > nothing....
>
> I use datastax 1.0.8 communiti edition on win 7 64 bit
>
>
> Tnxs
>




--
Tyler Hobbs
DataStax
<= br> --f46d04083a9d069ffb04bb39681f--