incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajkumar Gupta <rajkumar....@gmail.com>
Subject How to add schema in cassandra 0.7.0
Date Sat, 18 Dec 2010 20:59:40 GMT
hi
I am using Cassandra 0.7.0 on windows. I am trying to use thobbs's
PHPcassa with it but when I try this:

require_once('Z:/wamp/bin/php/'.'phpcassa/connection.php');
require_once('Z:/wamp/bin/php/'.'phpcassa/columnfamily.php');
$conn = new Connection('Keyspace');
$column_family = new ColumnFamily($conn, 'Standard1');

I get error on the 4th line...Fatal error: Uncaught exception
'NoServerAvailable' in Z:\wamp\bin\php\phpcassa\connection.php:153
Stack trace: #0 Z:\wamp\bin\php\phpcassa\connection.php(53):
ServerSet->get() #1 Z:\wamp\bin\php\phpcassa\connection.php(64):
Connection->connect() #2
Z:\wamp\bin\php\phpcassa\columnfamily.php(171): Connection->connect()
#3 Z:\wamp\www\PhpProject\index.php(10):
ColumnFamily->__construct(Object(Connection), 'Standard1') #4 {main}
thrown in Z:\wamp\bin\php\phpcassa\connection.php on line 153


I guess I need to import the schema first, to remove this error.
Please tell me how to add the schema & if there is any another fixing
to be done.


-- 

___________________________________

Raj

Mime
View raw message