You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Rajkumar Gupta <ra...@gmail.com> on 2010/12/18 21:59:40 UTC

How to add schema in cassandra 0.7.0

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

Re: How to add schema in cassandra 0.7.0

Posted by Rajkumar Gupta <ra...@gmail.com>.
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 <ra...@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
>