English 中文(简体)
Cassandra_Not Found 在试图从S.Cassa发射一栏“家庭物体”时例外
原标题:Cassandra_NotFound Exception when trying to instantiate a column_family object from phpcassa

我已在我的Windows 7机器(64bit)上安装了一台Cassessi。

cas子服务器正在运行,正在成功地聆听冲破客户。 我通过成功创建我自己的主要空间和一栏家庭,测试了这方面的情况。

现在,我不得不从我的PHP文字中把这辆Casses案联系起来。 我使用thobbsphpcassa进行了审判。

这里我遇到麻烦。 在安装过程中,它提到了UNIX/HCH系统“”的安装步骤,但“Windows”没有提及。

我知道下一步不是做什么,但试图在我手提的笔迹中复制件,并创建试卷壳。 The php with the following content:

<?php
ini_set( display_errors ,1);
require_once( phpcassa/connection.php );
require_once( phpcassa/columnfamily.php );

$servers = array("localhost:9160");
$pool = new ConnectionPool("demo", $servers);

$column_family = new ColumnFamily($pool,  user );


?>

www.un.org/Depts/DGACM/index_french.htm 此外,我还在我的关键空间制作了一个题为“家庭<><>用户

在我的浏览器中删除这一文字,给我以下例外:

Fatal error: Uncaught exception  cassandra_NotFoundException  in C:Program Files   (x86)Apache Software FoundationApache2.2htdocsphpcassacolumnfamily.php:198 
Stack trace: #0 C:Program Files (x86)Apache Software FoundationApache2.2htdocscassandra_test.php(10): 
ColumnFamily->__construct(Object(ConnectionPool),  user ) #1 {main} thrown in C:Program Files (x86)Apache Software FoundationApache2.2htdocsphpcassacolumnfamily.php
on line 198 

我认为,phpcassa可以找到我的当地手脚。 如何检查?

Also

$pool = new ConnectionPool("demo", $servers);

didn t gave any error/warning . So , I am entirely not sure what s the root cause for this exception? I am a newbie for cassandra and PHPcassa .Really sorry if this problem sounded pretty trivial.

最佳回答

这一例外表明,它能够与你的Casses案(可能没有任何问题)联系,但“情感”这一关键空间的哥伦Family“用户”并不存在。

Trystart cassandra-cli, 并核实“show keyspaces;”将一栏家庭列入正确的关键空间。 还意识到,如果情况不同,名字在此具有敏感性。

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...