Questions tagged [datastax-php-driver]

43 questions
1
vote
3 answers

Apache Cassandra 2.1.11 cluster failover does not work with datastax php driver

I'm new to cassandra but have a background of Nosql and high availability with other technologies. A few days ago I installed Cassandra 3.0 but it sounds Datastax php driver does not support it at all! So I downgraded to the 2.1.11 version and wrote…
madz
  • 1,803
  • 18
  • 45
1
vote
1 answer

cassandra module of php does not seem in phpinfo

i tried to use cassandra php driver after i follow installation steps, i have an error: Fatal error: Class 'Cassandra' not found in /var/www/web/xx/yy.php..... Cassandra module seems with php -m But in phpinfo, it does not seem as a module. what…
mst
  • 466
  • 5
  • 17
1
vote
3 answers

Thrift + Cassandra + PHP + Windows?

Connecting to Cassandra with PHP is really a pain. The documentations at Apache and DataStax are extremely poorly written - for Windows users. I have Thrift installed (I believe!) via Chocolatey. But I am still not able to compile php code for…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
2 answers

Is it possible to use PDOStatement with the Cassandra PHP driver?

I'm trying to use in PHP Cassandra with this Driver: https://github.com/datastax/php-driver. So, I want to know if is it possible to use to use [PDOStatement::fetch] (https://www.php.net/manual/fr/pdostatement.fetch.php) and [PDOStatement::rowCount]…
user7962781
0
votes
1 answer

How to modify or replace in PHP my SQL query containing "LIKE" and "bindValue" by CQL (Cassandra DataStax PHP DRIVER)?

Looking for how to do a LIKE in a CQL query (using the following Cassandra PHP Driver: https://github.com/datastax/php-driver) replacing my following SQL code: $con->execute("CREATE TABLE IF NOT EXISTS images(siteUrl varchar PRIMARY KEY,…
user7962781
0
votes
1 answer

How to get string representation of cassandra timestamp column?

I'm querying a timestamp column from datastax php diver for cassandra select name , x_date from table; The result is returned in json format name: "name" x_date: {type: {name: "timestamp"}, seconds: 1561645740, microseconds: 0} I want to get…
Ahmed Osama
  • 370
  • 4
  • 13
0
votes
1 answer

Check cassandra load on every table

Is there a way to figure out how much requests (read/writes) there is on each table? I'm trying to figure out where we have big load. Already tried to use: nodetool tablestats It's not good since I can't see the number of requests. Thanks
0
votes
1 answer

Want to know how to bind a map type column in a prepared insert statement in Cassandra with php drivers

Can someone please help me with the exact syntax to use prepared insert / update statements containing map type columns. suppose : UPDATE abc SET map = map + ? where id = ? where map is the map type column, I found an answer Cassandra prepared…
0
votes
1 answer

Dse\Exception\RuntimeException: All connections on all I/O threads are busy

We have a facility in our web app to delete large quantities of data. We do this by paginating through all records found against u_id. The keys we have are designed for other queries we have in the application - ideally, it would be great to have a…
0
votes
1 answer

Datastax instance type upgradaion issue in AWS

I was planning to upgrade my datastax instance in AWS from t2.large to t2.2xlarge. Our current cluster contain 6 SearchGraph nodes Datacenter: SearchGraph ======================= UN 192.168.8.1 469 MiB 1 ? …
0
votes
1 answer

Managing connections via datastax/php-driver

How do I manage the total number of connections with the datastax/php-driver? We're running into an issue with excessive TCP connections, and we suspect it's related to how this driver works. We've moved off YACassandra PDO driver onto this one. One…
guice
  • 976
  • 4
  • 11
  • 31
0
votes
0 answers

web browser doesn't show any data from cassandra connection in php

i am newbie in cassnadra. i want to show cassnadra data with php. i tried with netbeans and it worked.( my os is linux) my question is why it does not work in web browser. is anybody there to answere me. does it related to web browser's permision…
0
votes
1 answer

Datastax keyspace topology Change Issue

I am planning to change Keyspace Strategy from SimpleStrategy to NetworkTopologyStrategy for making it network aware. I had already changed keyspace strategy of app1,app2 and app3 which i had created. Do i need to change keyspace strategy of below…
0
votes
1 answer

AbstractSolrSecondaryIndex.java:1884 - Cannot find core / Unable to start DSE server

I had added 3 single token nodes to our existing DataCenter as specified in datastax document : http://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsAddRplSingleTokenNodes.html Currently all 3 new nodes are showing joining…
0
votes
1 answer

How to retrieve composite column from Cassandra table in PHP

I have a CassandraHandler that retrieves the queries in rows class CassandraHandler { private $keyspace = 'blabla'; //default is oyvent private $cluster = NULL; private $session = NULL; function __construct(){ $this->cluster…
mehmetsen80
  • 727
  • 1
  • 8
  • 25