Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/253.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cassandra不使用php_Php_Nosql_Cassandra - Fatal编程技术网

Cassandra不使用php

Cassandra不使用php,php,nosql,cassandra,Php,Nosql,Cassandra,我将cassandra与php一起使用。cassandra服务器和客户端。两者都已开始。它抛出以下错误: Fatal error: Call to a member function write() on a non-object in C:\cassandra\thrift\Thrift.php on line 715 Call Stack # Time Memory Function Location 1 0.0010 395808 {main}( ) ..\

我将cassandra与php一起使用。cassandra服务器和客户端。两者都已开始。它抛出以下错误:

Fatal error: Call to a member function write() on a non-object in C:\cassandra\thrift\Thrift.php on line 715

Call Stack
#   Time    Memory  Function    Location
1   0.0010  395808  {main}( )   ..\cassandra_testFile.php:0
2   0.0409  3143872 CassandraClient->insert( )  ..\cassandra_testFile.php:46
3   0.0409  3143872 CassandraClient->send_insert( ) ..\Cassandra.php:606
4   0.0412  3146072 cassandra_Cassandra_insert_args->write( )   ..\Cassandra.php:625
5   0.0412  3146136 TBase->_write( )    ..\Cassandra.php:2761
在调用堆栈中,在步骤2。第46行是:

$client->insert($keyspace, $keyUserId, $columnPath, $value, $timestamp, $consistency_level);

如何解决这个错误?

很多很多人在Thrift面前使用客户机。对于PHP,最常见的是


很多很多人在节俭银行面前使用客户机。对于PHP,最常见的是


不推荐通过Thrift连接


通过Thrift连接已弃用