Thanks

On Thu, Jun 30, 2011 at 10:09 PM, aaron morton <aaron@thelastpickle.com> wrote:
cassandra.in.sh is old skool 0.6 series, 0.7 series uses cassandra-env.sh. The packages put it in /etc/cassandra.
 
This works for me at the end of cassandra-env.sh 

JVM_OPTS="$JVM_OPTS -Dpasswd.properties=/etc/cassandra/passwd.properties"
JVM_OPTS="$JVM_OPTS -Daccess.properties=/etc/cassandra/access.properties"

btw at a minimum you should upgrade from 0.7.2 to 0.7.6-2 see https://github.com/apache/cassandra/blob/cassandra-0.7.6-2/NEWS.txt#L61

Hope that helps. 

-----------------
Aaron Morton
Freelance Cassandra Developer
@aaronmorton

On 1 Jul 2011, at 02:20, Earl Barnes wrote:

Hi,
 
I am encountering an error while trying to set up simple authentication in a test environment. 
 
BACKGROUND
Cassandra Version: ReleaseVersion: 0.7.2-0ubuntu4~lucid1
OS Level: Linux cassandra1 2.6.32-32-server #62-Ubuntu SMP Wed Apr 20 22:07:43 UTC 2011 x86_64 GNU/Linux
2 node cluster

Properties file exist in the following directory:

 > /etc/cassandra/access.properties
 > /etc/cassandra/passwd.properties
The authenticator element in the /etc/cassandra/cassandra.yaml file is set to:
authenticator: org.apache.cassandra.auth.SimpleAuthenticator
The authority element in the /etc/cassandra/cassandra.yaml file is set to:
authority: org.apache.cassandra.auth.SimpleAuthority
 
The cassandra.in.sh file located in /usr/share/cassandra has been updated to show the location of the properties files in the following manner:
 
# Location of access.properties and passwd.properties
JVM_OPTS="
-Dpasswd.properties=/etc/cassandra/passwd.properties
-Daccess.properties=/etc/cassandra/access.properties"
 
Also, the destination of the configuration directory:
CASSANDRA_CONF=/etc/cassandra
 
ERROR
After setting DEBUG mode, I get the following error message in the system.log:
 
 INFO [main] 2011-06-30 10:12:01,365 AbstractCassandraDaemon.java (line 249) Cassandra shutting down...
 INFO [main] 2011-06-30 10:12:01,366 CassandraDaemon.java (line 159) Stop listening to thrift clients
 INFO [main] 2011-06-30 10:13:14,186 AbstractCassandraDaemon.java (line 77) Logging initialized
 INFO [main] 2011-06-30 10:13:14,196 AbstractCassandraDaemon.java (line 97) Heap size: 510263296/511311872
 WARN [main] 2011-06-30 10:13:14,227 CLibrary.java (line 93) Obsolete version of JNA present; unable to read errno. Upgrade to JNA 3.2.7 or later
 WARN [main] 2011-06-30 10:13:14,227 CLibrary.java (line 93) Obsolete version of JNA present; unable to read errno. Upgrade to JNA 3.2.7 or later
 WARN [main] 2011-06-30 10:13:14,228 CLibrary.java (line 125) Unknown mlockall error 0
 INFO [main] 2011-06-30 10:13:14,234 DatabaseDescriptor.java (line 121) Loading settings from file:/etc/cassandra/cassandra.yaml
 INFO [main] 2011-06-30 10:13:14,337 DatabaseDescriptor.java (line 181) DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
ERROR [main] 2011-06-30 10:13:14,342 DatabaseDescriptor.java (line 405) Fatal configuration error
org.apache.cassandra.config.ConfigurationException: When using org.apache.cassandra.auth.SimpleAuthenticator passwd.properties properties must be defined.
        at org.apache.cassandra.auth.SimpleAuthenticator.validateConfiguration(SimpleAuthenticator.java:148)
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:200)
        at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:100)
        at org.apache.cassandra.service.AbstractCassandraDaemon.init(AbstractCassandraDaemon.java:217)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:160)
Data from the output.log:
 
 INFO 10:12:01,365 Cassandra shutting down...
 INFO 10:12:01,366 Stop listening to thrift clients
 INFO 10:13:14,186 Logging initialized
 INFO 10:13:14,196 Heap size: 510263296/511311872
 WARN 10:13:14,227 Obsolete version of JNA present; unable to read errno. Upgrade to JNA 3.2.7 or later
 WARN 10:13:14,227 Obsolete version of JNA present; unable to read errno. Upgrade to JNA 3.2.7 or later
 WARN 10:13:14,228 Unknown mlockall error 0
 INFO 10:13:14,234 Loading settings from file:/etc/cassandra/cassandra.yaml
 INFO 10:13:14,337 DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
ERROR 10:13:14,342 Fatal configuration error
org.apache.cassandra.config.ConfigurationException: When using org.apache.cassandra.auth.SimpleAuthenticator passwd.properties properties must be defined.
        at org.apache.cassandra.auth.SimpleAuthenticator.validateConfiguration(SimpleAuthenticator.java:148)
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:200)
        at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:100)
        at org.apache.cassandra.service.AbstractCassandraDaemon.init(AbstractCassandraDaemon.java:217)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:160)
When using org.apache.cassandra.auth.SimpleAuthenticator passwd.properties properties must be defined.
Fatal configuration error; unable to start server.  See log for stacktrace.
Service exit with a return value of 1
 
Any help appreciated...Thanks in advance