incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From earltbj <earl...@gmail.com>
Subject SimpleAuth‚Äčenticator
Date Thu, 30 Jun 2011 19:40:25 GMT
Hi,

 

I am encountering an error while trying to set up simple authentication in a
test environment.  

 

BACKGROUND
(1) Cassandra Version: ReleaseVersion: 0.7.2-0ubuntu4~lucid1
(2) 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.yamlfile 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.shfile located in /usr/share/cassandrahas 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

--
View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/SimpleAuth-enticator-tp6534645p6534645.html
Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.

Mime
View raw message