incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajkumar Gupta <rajkumar....@gmail.com>
Subject Re: How to add schema in cassandra 0.7.0
Date Sat, 18 Dec 2010 21:40:52 GMT
I guess my phpcassa is not able to connect with the cassandra....
I havenot done any modifications to phpcassa folder I downloaded from github..
but my cassandra is running fine when I run it through Command prompt.


On Sun, Dec 19, 2010 at 2:29 AM, Rajkumar Gupta <rajkumar.w93@gmail.com> wrote:
> 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