duanqun7761 2017-02-09 09:18
浏览 74

Cassandra PHP客户端 - 协议版本无效或不受支持

I am trying Cassandra (3.0.9) nosql database on windows local machine with language php.

I use this php client: https://github.com/evseevnn/php-cassandra-binary

My code:

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

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?

UPDATE

This repository deprecated and not maintained anymore. Use https://github.com/duoshuo/php-cassandra

  • 写回答

0条回答 默认 最新

    报告相同问题?