Questions tagged [phpcassa]

phpcassa is a PHP client library (port of pycassa) for Apache Cassandra

phpcassa is a PHP client library for Apache Cassandra.

  • Compatible with Cassandra 0.7, 0.8, 1.0, and 1.1
  • Optional C extension for improved performance

phpcassa is compatible with PHP 5.3+

phpcassa is open source under the MIT license.

95 questions
0
votes
1 answer

I cannot get TimeUUIDType with phpcassa

Noob here. I have a super column family sorted by timeuuidtype which has a number of entries. I'm trying to perform a simple get function with phpcassa that wont work. I'm trying to return a specific value from a UTF8 sorted column within a…
unusualhabit
  • 103
  • 1
  • 4
0
votes
1 answer

Row Iteration not working

My goal is to iterate over all rows in a specific ColumnFamily in a node. Here is the php code (using my wrapper over phpcassa): $ring = $cass_db->describe_ring(); foreach ($ring as $ring_details) { $start_token =…
lvil
  • 4,326
  • 9
  • 48
  • 76
0
votes
1 answer

phpcassa: cassandra\NotFoundException when instantiating ColumnFamily class

I'm trying to query a Cassandra 2.0.2 server using the phpcassa libraray. I do the following:
Pankas
  • 127
  • 2
  • 12
0
votes
1 answer

Issue with get_indexed_slices in phpcassa 1.0.6

I am storing data with row key made up of CassandraUtil::UUID4(). Now I have upgraded the version of phpcassa to 1.0.6. When I am making "get_indexed_slices" call for the column family it returns the iterator object. Key for the iterator is very…
MANISH ZOPE
  • 1,181
  • 1
  • 11
  • 28
0
votes
2 answers

Unpack Cassandra Map Type

I have created some data using Cassandra DB 2.0.1 (CQL 3) CREATE TABLE fans (id text PRIMARY KEY, fans map); INSERT INTO fans (id, fans) VALUES ('John', {'fruit' : 'apple', 'band' : 'Beatles'}); UPDATE fans SET fans = fans + {'movie' :…
0
votes
1 answer

phpcassa returns less number of records with columns

I am making the multiget call to cassandra with PHPCASSA. Its functioning properly except one of the case. When I query the Cassandra with Column names it returns less number of column with values. e.g. for row1 => {…
MANISH ZOPE
  • 1,181
  • 1
  • 11
  • 28
0
votes
2 answers

Column family created with phpcassa is not visible by cqlsh and vice versa

I just created Column family by phpcassa , Following is the code $sys = new SystemManager('127.0.0.1'); $sys->create_column_family('demo', 'Users'); $pool = new ConnectionPool('demo', array('localhost')); $users = new ColumnFamily($pool,…
HRK
  • 287
  • 2
  • 15
0
votes
1 answer

How to connect Cassandra with PHP

I need help to connect Cassandra with php using 'PHPCassa'.I try it but getting following exception.I am using Ubuntu as a web server. NoServerAvailable Object ( [message:protected] => An attempt was made to connect to every server twice, but all…
shashank
  • 125
  • 1
  • 1
  • 7
0
votes
1 answer

Converting timeuuid to date-time in phpcassa

I'm trying to get date from timeuuid without calling dateOf(id) function in cqlsh. So, is there any function in phpcassa that can convert timeuuid to date ?
aacanakin
  • 2,844
  • 4
  • 25
  • 42
0
votes
1 answer

Cassandra / PHPCassa: How do I select all composite columns with a UUID1 after a certain time?

I have a column family in cassandra which records all the events emitted by a particular user over a specified time period. I'm using a composite column consisting of a UUID1 and a UTF8 string. I'd like to select all the columns after a paticular…
Ben Waine
  • 1,650
  • 3
  • 21
  • 34
0
votes
1 answer

phpcassa gives error on cql execution

I have recently created a column family with CREATE TABLE in cqlsh console. I have the following column family; CREATE TABLE user ( id timeuuid PRIMARY KEY, balance decimal, is_free boolean, player_id bigint, ) I want to insert the…
aacanakin
  • 2,844
  • 4
  • 25
  • 42
0
votes
2 answers

inserting TimeUUIDType as row key in phpcassa

I created a simple keyspace and a column family using Cassandra-Cluster-Admin I have a column family named players create column family player with column_type = 'Standard' and comparator = 'TimeUUIDType' and default_validation_class =…
aacanakin
  • 2,844
  • 4
  • 25
  • 42
0
votes
1 answer

Using Phpcassa in Yii

Has anyone been able to use Phpcassa in a Yii application. I have tried adding the phpcassa folder into the components which I have added to the config for auto loading but its not recognizing the phpcassa classes and they are not getting…
0
votes
1 answer

Cassandra rename supercolumn

I am using super column to create chat between two people. Each chat has it's own row where all of the messages are contained. And when user wants to delete that chat i would just rename column to something like old_chat_deleted and i would create…
Linas
  • 4,380
  • 17
  • 69
  • 117
0
votes
0 answers

Is it possible to search second component of composite column with phpcassa for cassandra

so, I have: $sys->create_column_family($keyspace, 'MYCF', array( "column_type" => "Super", "comparator_type" => "CompositeType(TimeUUIDType, UTF8Type)", "key_validation_class" => "UTF8Type" )); Inserted few records and they can be…
EddieHR
  • 153
  • 2
  • 11