【问题标题】:Class 'cassandra_ColumnPath' not found in在中找不到类“cassandra_ColumnPath”
【发布时间】:2011-11-05 17:14:35
【问题描述】:

我按照步骤安装,可以在 Centos 5.6 机器上找到 https://wiki.fourkitchens.com/display/PF/Using+Cassandra+with+PHP 我在 apache 日志中得到了这个错误

[2011 年 8 月 26 日星期五 14:20:20] [错误] [客户端 192.168.1.67] PHP 致命错误:在第 29 行的 /var/www/html/test.php 中找不到类“cassandra_ColumnPath”

有人有什么想法吗?

PHP 5.2.10 (cli)(构建时间:2009 年 11 月 13 日 11:44:05) 版权所有 (c) 1997-2009 PHP 集团 Zend Engine v2.2.0,版权所有 (c) 1998-2009 Zend Technologies

apache-cassandra-0.8.4

thrift-0.7.0

【问题讨论】:

  • 呃,如果你需要安装 trift - 为什么要安装 cassandra?
  • 实际上我安装了 cassandra 并想使用 php throught trift 连接它,我按照步骤wiki.fourkitchens.com/display/PF/Using+Cassandra+with+PHP 但在我运行给定的 php 示例之后,我只是在 apche 日志中发现类未找到错误
  • 你修好了吗?如果是,您是如何解决的?谢谢

标签: php cassandra


【解决方案1】:

正如那篇文章的底部所暗示的,您确实需要使用基于 Thrift 生成的高级客户端。否则,这是一个缓慢而痛苦的过程。

我建议看看:

  • phpcassa(披露:我维护这个库)
  • SimpleCassie(我无法保证它的效果如何,但看起来还不错。)

这两个库都捆绑了 Thrift 生成的代码,因此您甚至不必担心设置该部分。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-11-19
    • 2012-12-02
    • 2013-07-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多