can not connect to cassandra when using pdo php -
i install pdo cassandra
, add in php.ini
. when connect cassandra
using php pdo. web blank (the connection reset). check error log apache, got child pid 18080 exit signal segmentation fault.
i using
[cqlsh 5.0.1 | cassandra 2.1.3 | cql spec 3.2.0 | native protocol v3] thrift version 0.9.0 ubuntu 14.04.1
sample connect cassandra
$db = new pdo("cassandra:host=localhost;port=9042;cqlversion=3.2.0", 'cassandra', 'cassandra');
can tell me how fix this?
thanks
your problem apache problem rather cassandra one. library painfully outdated , doesn't seem getting updates either. last commit in jul 2012:
commit d1a1d4bc0a940422e111f37c958170b074b6025a author: <we dont need bit> date: fri jul 13 15:05:22 2012 -0500 ...
you have 2 options, find more updated library, or use old version of cassandra. i'd go former, planet cassandra has section driver options various languages.
Comments
Post a Comment