evseevnn-zz / php-cassandra-binary

PHP library for Cassandra database via a binary protocol.
http://evseevnn.github.io/php-cassandra-binary/
MIT License
69 stars 33 forks source link

Cassandra PHP client - Invalid or unsupported protocol version #76

Closed kevas closed 7 years ago

kevas commented 7 years ago

I am trying your php client.

My code:

$nodes = ['127.0.0.1:9042'];
$database = new \evseevnn\Cassandra\Database($nodes, 'people');
$database->connect();

I get this exception error: evseevnn\Cassandra\Exception\ConnectionException: Protocol error: Invalid or unsupported protocol version (1); the lowest supported version is 3 and the greatest is 4

Where do I set protocol version? Thank you.

R.

evseevnn-zz commented 7 years ago

Sorry, this repository deprecated and not maintained anymore. Please use https://github.com/duoshuo/php-cassandra