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
1
vote
1 answer

Cassandra time stamp

SELECT * FROM table_name WHERE date > 1309110123 How to do this in Phpcassa? I think there must be some way to modify this: $column_family = new ColumnFamily($conn, 'Indexed1'); $index_exp = CassandraUtil::create_index_expression('birthdate',…
Writecoder
  • 613
  • 2
  • 8
  • 27
1
vote
1 answer

Cannot create keyspace with cassandra with php

I can't create keyspace on cassandra running under docker containor with PHP. The connexion seems to be ok but i have nothing created. when i run DESCRIBE keyspaces; i have only keyspaces created by default. I'm using thobbs/phpcassa bundle to…
Ahmed SEDDIK
  • 149
  • 12
1
vote
2 answers

TFramedTransport Error on PHPCassa + Cassandra

We're deleting a massive number of records in Cassandra. We get the following error. We also get this error when we insert a massive number of records: Error performing remove on 10.130.279.40:9160: exception 'TTransportException' with message…
dengeltrees
  • 181
  • 1
  • 7
1
vote
2 answers

how to connect cassandra from local to EC2 instances

I installed cassandra cluster in ec2 its working correctly. but when i try to connect the cassandra from code using php_cassa lib. its throwing error like "no server available" the follow code its am working. 'ec2-public-ip address', 'port' =>…
venkat
  • 513
  • 2
  • 10
  • 16
1
vote
0 answers

Is it possible to Batch delete in cassandra using phpcassa?

I'm new to php and cassandra too. I was trying to make a batch delete operation in cassandra using phpcassa lib. There is a method available batch_insert() for inserting multiple rows in one call. Is there any similar method for removing multiple…
Jayant Narwani
  • 101
  • 1
  • 7
1
vote
1 answer

Cannot connect to Cassandra on a cloud server using phpcassa

I have setup a test cloud server (Ubuntu 10.10 on Rackspace) to play with Cassandra database (0.6.8). I can connect no problem both from within the server and from a computer external to the cloud using the cassandra-cli basic client: I have created…
1
vote
1 answer

How can I create & import a keyspace on Cassandra database 0.7rc2 , on a windows machine?

How can I create & import a keyspace on Cassandra database 0.7rc2 , on a windows machine?
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
1
vote
1 answer

cassandra slowed down when adding additional keyspaces

We have a cassandra development environment with 3 nodes cluster and each node with i3 processor and 8G memory. As we have keep increasing the number of keyspaces (i.e the nature of our application), at one point the performance of cassandra got…
Pious Deepak
  • 181
  • 1
  • 6
1
vote
2 answers

does map collection type support in cassandra 2.0

when i create table in cassandra 2.0 using phpcassa,i got the error as follows Fatal error: Uncaught exception 'cassandra\InvalidRequestException' with message 'line 2:25 mismatched input 'map' expecting set null' in…
Anju
  • 53
  • 5
1
vote
1 answer

phpcassa - storing only one charecter values

i am trying to use cassandra via phpcassa and below is the code: $pool = new ConnectionPool($KS, array('127.0.0.1:9160')); $users=new ColumnFamily($pool,$CF); $users->insert_format = ColumnFamily::ARRAY_FORMAT; $users->return_format =…
Ankit Ladhania
  • 1,005
  • 1
  • 12
  • 19
1
vote
1 answer

Time-out until restart

I set up a cassandra cluster with 2 nodes. After a couple thousand of writes, it starts throwing TimeOut exceptions that don’t go away until after I restart the cassandra services. I am using phpcassa (latest at time of writing). Cassandra.yaml…
natli
  • 3,782
  • 11
  • 51
  • 82
1
vote
0 answers

phpcassa throws warning on LongType and dateOf(TimeUUIDType)

I have the following table in cassandra; CREATE TABLE reports ( c_date text, c_n int, c_id timeuuid, report_id bigint, report text, PRIMARY KEY ((c_date, c_n), c_id) ) c_date is for querying reports by date. c_n is the number of nodes…
aacanakin
  • 2,844
  • 4
  • 25
  • 42
1
vote
1 answer

time series data reading performance

How to store sensor time series data into cassandra? Here i hava checked performance In cassandra composite columnfamily single row key having 10000 timeseries data data like, query: select * from deviceidcomposite where did='Dev001' limit 5000 case…
kannadhasan
  • 339
  • 4
  • 17
1
vote
1 answer

cassandra java heap space issues with phpcassa

We are currently doing some stress tests with ab tool. The single inserts are doing fine in cassandra. However, when it comes to batch inserts, I'm currently dealing with java out of memory error: Java Heap Space. I have a virtual box machine with…
aacanakin
  • 2,844
  • 4
  • 25
  • 42
1
vote
1 answer

Increase/Decrease value in phpcassa

Is there any method for simple increase/decrease integer value in cassandra using phpcassa? Maybe it is CounterColumn, but I didn't find anything about how to use it. Basically, I just want to increase some counter on action, any tips or code…
sasa
  • 2,443
  • 5
  • 23
  • 35