我正在使用带有php的cassandra。 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);
如何解决此错误?