Re: [phpcassa] Problem with authertication cassandra

23 views
Skip to first unread message

Tyler Hobbs

unread,
Mar 6, 2014, 12:50:38 PM3/6/14
to phpc...@googlegroups.com
InvalidRequestExceptions have a $why attribute that should provide some details on what went wrong.  Try printing that out and see if it's useful.


On Thu, Mar 6, 2014 at 2:31 AM, kisto <huynhphi...@gmail.com> wrote:
Hi everyone,

I have problem with authertication with cassandra.
I have 2 server, 1 web server with php connect to 1 server cassandra.
I see error  : 

Fatal error: Uncaught exception 'cassandra\InvalidRequestException' in /home/webserver/log.com/lib/cassandra/Cassandra.php:1865 Stack trace: #0 /home/webserver/log.com/lib/cassandra/Cassandra.php(1865): thrift_protocol_read_binary(Object(Thrift\Protocol\TBinaryProtocolAccelerated), '\cassandra\Cass...', false) #1 /home/webserver/log.com/lib/cassandra/Cassandra.php(1843): cassandra\CassandraClient->recv_system_drop_keyspace() #2 /home/webserver/log.com/lib/phpcassa/SystemManager.php(120): cassandra\CassandraClient->system_drop_keyspace('mykeyspace') #3 /home/webserver/log.com/function.class.php(105): phpcassa\SystemManager->drop_keyspace('mykeyspace') #4 /home/webserver/log.com/cdbak.php(9): ACassandraConnection->cql_drop_keyspace() #5 {main} thrown in /home/webserver/log.com/lib/cassandra/Cassandra.php on line 1865

I config authertica like this on server cassandra : 
File cassandra.yaml : 
authenticator: org.apache.cassandra.auth.PasswordAuthenticator
authorizer: org.apache.cassandra.auth.CassandraAuthorizer

File access.properties :
mykeyspace.<rw>=cassandra

File passwd.properties :
cassandra = password

File cassandra-env.sh :
JVM_OPTS="$JVM_OPTS -Dpasswd.properties=/etc/cassandra/conf/passwd.properties"
JVM_OPTS="$JVM_OPTS -Daccess.properties=/etc/cassandra/conf/access.properties"
JVM_OPTS="$JVM_OPTS $JVM_EXTRA_OPTS"


Help me, I config incorrect for cassandra :(


Thank You.

--
You received this message because you are subscribed to the Google Groups "phpcassa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phpcassa+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Tyler Hobbs
DataStax
Reply all
Reply to author
Forward
0 new messages