「PHPCassa」を使用して Cassandra を php に接続するのに助けが必要です。試してみましたが、次の例外が発生しました。Web サーバーとして Ubuntu を使用しています。
NoServerAvailable Object ( [message:protected] => すべてのサーバーに 2 回接続しようとしましたが、すべての試行が失敗しました。最後のエラーは次のとおりです: 例外 'cassandra_InvalidRequestException' とメッセージ 'キースペース 'testApp' が存在しません' が /var/ にありますwww/Cassandra/phpcassa/thrift/packages/cassandra/Cassandra.php:138 スタック トレース: #0 /var/www/Cassandra/phpcassa/thrift/packages/cassandra/Cassandra.php(138): thrift_protocol_read_binary(Object(TBinaryProtocolAccelerated) , 'cassandra_Cassa...', false) #1 /var/www/Cassandra/phpcassa/thrift/packages/cassandra/Cassandra.php(113): CassandraClient->recv_set_keyspace() #2 /var/www/Cassandra/phpcassa /connection.php(102): CassandraClient->set_keyspace('testApp') #3 /var/www/Cassandra/phpcassa/connection.php(84): ConnectionWrapper->set_keyspace('testApp') #4 /var/www/Cassandra/phpcassa/connection.php(222): ConnectionWrapper->__construct('testApp', '127.0.0.1:9160', NULL, true, 5000, 5000) #5 /var /www/Cassandra/phpcassa/connection.php(258): ConnectionPool->make_conn() #6 /var/www/Cassandra/phpcassa/connection.php(352): ConnectionPool->get() #7 /var/www /Cassandra/phpcassa/connection.php(287): ConnectionPool->call('describe_keyspa...', 'testApp') #8 /var/www/Cassandra/phpcassa/columnfamily.php(194): ConnectionPool->describe_keyspace () #9 /var/www/Cassandra/index.php(7): ColumnFamily->__construct(Object(ConnectionPool), 'Users') #10 {main} [string:Exception:private] => [code:protected] ] => 0 [file:protected] => /var/www/Cassandra/phpcassa/connection.php [line:protected] => 233 [trace:Exception:private] =>配列 ( [0] => 配列 ( [ファイル] => /var/www/Cassandra/phpcassa/connection.php [行] => 258 [関数] => make_conn [クラス] => ConnectionPool [タイプ] => - > [引数] => 配列 ( ) ) [1] => 配列 ( [ファイル] => /var/www/Cassandra/phpcassa/connection.php [行] => 352 [関数] => get [クラス] = > ConnectionPool [タイプ] => -> [引数] => 配列 ( ) ) [2] => 配列 ( [ファイル] => /var/www/Cassandra/phpcassa/connection.php [行] => 287 [関数] => call [class] => ConnectionPool [type] => -> [args] => Array ( [0] => describe_keyspace [1] => testApp ) ) [3] => Array ( [file] => /var/www/Cassandra/phpcassa/columnfamily.php [行] => 194 [関数] => describe_keyspace [クラス] => ConnectionPool [タイプ] => -> [引数] => 配列 ( ) ) [4] = > 配列 ( [ファイル] =>/var/www/Cassandra/index.php [行] => 7 [関数] => __construct [クラス] => ColumnFamily [型] => -> [引数] => 配列 ( [0] => ConnectionPool オブジェクト ( [キースペース] => testApp [servers:ConnectionPool:private] => Array ( [0] => 127.0.0.1:9160 ) [pool_size:ConnectionPool:private] => 5 [send_timeout:ConnectionPool:private] => 5000 [recv_timeout :ConnectionPool:private] => 5000 [credentials:ConnectionPool:private] => [framed_transport:ConnectionPool:private] => 1 [queue:ConnectionPool:private] => Array ( ) [keyspace_description:ConnectionPool:private] => [max_retries ] => 5 [リサイクル] => 10000 [統計] => 配列 ( [作成] => 0 [失敗] => 2 [リサイクル] => 0 ) [list_position] => 0 ) [1] => ユーザー ) ) ) [前:例外:非公開] => )7 [function] => __construct [class] => ColumnFamily [type] => -> [args] => Array ( [0] => ConnectionPool Object ( [keyspace] => testApp [servers:ConnectionPool:private] =>配列 ( [0] => 127.0.0.1:9160 ) [pool_size:ConnectionPool:private] => 5 [send_timeout:ConnectionPool:private] => 5000 [recv_timeout:ConnectionPool:private] => 5000 [credentials:ConnectionPool:private] => [framed_transport:ConnectionPool:private] => 1 [queue:ConnectionPool:private] => Array ( ) [keyspace_description:ConnectionPool:private] => [max_retries] => 5 [リサイクル] => 10000 [stats] =>配列 ( [作成] => 0 [失敗] => 2 [リサイクル] => 0 ) [list_position] => 0 ) [1] => ユーザー ) ) ) [前:例外:プライベート] => )7 [function] => __construct [class] => ColumnFamily [type] => -> [args] => Array ( [0] => ConnectionPool Object ( [keyspace] => testApp [servers:ConnectionPool:private] =>配列 ( [0] => 127.0.0.1:9160 ) [pool_size:ConnectionPool:private] => 5 [send_timeout:ConnectionPool:private] => 5000 [recv_timeout:ConnectionPool:private] => 5000 [credentials:ConnectionPool:private] => [framed_transport:ConnectionPool:private] => 1 [queue:ConnectionPool:private] => Array ( ) [keyspace_description:ConnectionPool:private] => [max_retries] => 5 [リサイクル] => 10000 [stats] =>配列 ( [作成] => 0 [失敗] => 2 [リサイクル] => 0 ) [list_position] => 0 ) [1] => ユーザー ) ) ) [前:例外:プライベート] => )配列 ( [0] => ConnectionPool オブジェクト ( [キースペース] => testApp [servers:ConnectionPool:private] => 配列 ( [0] => 127.0.0.1:9160 ) [pool_size:ConnectionPool:private] => 5 [send_timeout :ConnectionPool:private] => 5000 [recv_timeout:ConnectionPool:private] => 5000 [credentials:ConnectionPool:private] => [framed_transport:ConnectionPool:private] => 1 [queue:ConnectionPool:private] => Array ( ) [ keyspace_description:ConnectionPool:private] => [max_retries] => 5 [recycle] => 10000 [stats] => Array ( [created] => 0 [failed] => 2 [recycled] => 0 ) [list_position] = > 0 ) [1] => ユーザー ) ) ) [前:例外:プライベート] => )配列 ( [0] => ConnectionPool オブジェクト ( [キースペース] => testApp [servers:ConnectionPool:private] => 配列 ( [0] => 127.0.0.1:9160 ) [pool_size:ConnectionPool:private] => 5 [send_timeout :ConnectionPool:private] => 5000 [recv_timeout:ConnectionPool:private] => 5000 [credentials:ConnectionPool:private] => [framed_transport:ConnectionPool:private] => 1 [queue:ConnectionPool:private] => Array ( ) [ keyspace_description:ConnectionPool:private] => [max_retries] => 5 [recycle] => 10000 [stats] => Array ( [created] => 0 [failed] => 2 [recycled] => 0 ) [list_position] = > 0 ) [1] => ユーザー ) ) ) [前:例外:プライベート] => )5 [send_timeout:ConnectionPool:private] => 5000 [recv_timeout:ConnectionPool:private] => 5000 [credentials:ConnectionPool:private] => [framed_transport:ConnectionPool:private] => 1 [queue:ConnectionPool:private] => 配列( ) [keyspace_description:ConnectionPool:private] => [max_retries] => 5 [recycle] => 10000 [stats] => Array ( [created] => 0 [failed] => 2 [recycled] => 0 ) [ list_position] => 0 ) [1] => ユーザー ) ) ) [previous:Exception:private] => )5 [send_timeout:ConnectionPool:private] => 5000 [recv_timeout:ConnectionPool:private] => 5000 [credentials:ConnectionPool:private] => [framed_transport:ConnectionPool:private] => 1 [queue:ConnectionPool:private] => 配列( ) [keyspace_description:ConnectionPool:private] => [max_retries] => 5 [recycle] => 10000 [stats] => Array ( [created] => 0 [failed] => 2 [recycled] => 0 ) [ list_position] => 0 ) [1] => ユーザー ) ) ) [previous:Exception:private] => )0 [失敗] => 2 [リサイクル] => 0 ) [list_position] => 0 ) [1] => ユーザー ) ) ) [前:例外:プライベート] => )0 [失敗] => 2 [リサイクル] => 0 ) [list_position] => 0 ) [1] => ユーザー ) ) ) [前:例外:プライベート] => )