Questions tagged [datastax-php-driver]
43 questions
8
votes
8 answers
pecl install cassandra throws: "error: Unable to load libcassandra"
pecl install cassandra
produces an error:
configure: error: Unable to load libcassandra
ERROR: `/tmp/pear/temp/cassandra/configure' failed
This error message is subject of another question here on SO, but has not been resolved: Installing php…

Tobias Gassmann
- 11,399
- 15
- 58
- 92
6
votes
2 answers
Installing php datastax driver on ubuntu
I am trying to install the datastax php driver for Cassandra and when i run the following command:
pecl install ext/package.xml
after checking it out of git i get the following message:
configure: error: Unable to load libcassandra
ERROR:…

Moshi
- 77
- 1
- 10
5
votes
1 answer
High Native-Transport-Requests All time Blocked
After running tpstats on all nodes. I see a lot of nodes having high number of ALL TIME BLOCKED NTR. We have a 4 node cluster and the values for NTR ALL TIME BLOCKED are :
NODE 1: 23953
NODE 2: 2935
NODE 3: 15229
NODE 4: 5951
I know ALL TIME BLOCKED…

johri21
- 153
- 1
- 9
3
votes
1 answer
Cassandra Prepared Statements error with datastax php driver
I'm facing strange error with Prepared Statements with DataStax php driver 1.0.0-rc and Cassandra 2.2.3. I got an Exception on this line:
$statement = $this->session->prepare("SELECT ? FROM ? WHERE ? = ?");
I am seeing this…

omambe
- 43
- 6
2
votes
1 answer
Add 3 hours to a timestamp generated by new Cassandra\Timestamp() in php
I have generated timestamp using new Cassandra\Timestamp() in php.
Now I want to add 2 hours to this generated time using php and then store it in the database (Cassandra).
Essentially I want to do something like this:
$dt= new…

Kaustubh Lohani
- 635
- 5
- 15
2
votes
1 answer
Removing Seed node from Datastax datacenter
I have 6 nodes in our data center of which 3 node also act as seed nodes.I was planning to remove 3 nodes from rack2 and also reduce seed node count to two. With "nodetool decommission" we can remove nodes but is there any extra steps involve in…

Sreeraju V
- 535
- 2
- 5
- 19
1
vote
1 answer
Cassandra C++ driver on MacOS High Sierra: make: no rule to make target
Following these instructions to install the DataStax C++ Driver on MacOS High Sierra, as a pre-requisite to installing the DataStax PHP Driver for Cassandra.
Everything runs great until I get to the line "make install" in the "Building and…

Casey McMullen
- 71
- 6
1
vote
1 answer
PHP Cassandra Timeuuid constructor hits Integer Limit (32bit)
I am using cassandra timeuuid in my project. But unable to create timeuuid due to integer limits.
$time = time();
$tS = new Cassandra\Timeuuid($time);
echo("Time Stamp : " . $time . "");
echo("Time UUID : " . $tS .…

Ligo George
- 819
- 2
- 9
- 21
1
vote
1 answer
running Cassandra from php shell command (using datastax php-driver)
I am able to run it through the browser but not from command line
ie php test.php
$raw = Cassandra::cluster()
->withContactPoints('localhost')
//->withCredentials($this->username, $this->password)
…

Rajeev Ranjan
- 4,152
- 3
- 28
- 41
1
vote
2 answers
Cassandra php driver on MacOS - Class 'Cassandra\SimpleStatement' not found
Good day, everyone.
Usually I just using this Official Docs in *nix OS
But now i'm using MacOs and this instructions just doesn't work properly.
In case of pecl install cassandra I got this message:
checking for supported DataStax C/C++ driver…

ANTVirGEO
- 124
- 1
- 16
1
vote
1 answer
High CPU Utilisation Cassandra (Native Transport Request)
We are running cassandra version 2.0.9 in production. It's a 4 node cluster. For the past few days we are experiencing a high spike in CPU Utilisation. You may see in the picture below.
This is the jconsole output.
When we looked into the threads…

Vinoth Kumar J
- 167
- 1
- 10
1
vote
1 answer
High CPU Usage in Cassandra 2.0
Running a 4 node cluster cassandra version 2.0.9. Recently since a
month we are seeing a huge spike in the CPU usage on all the nodes.
tpstats gives me high Native-transport-requests. Attaching screenshot
for 3 nodes tpstats
Node 1
Node 2
Node…

Vinoth Kumar J
- 167
- 1
- 10
1
vote
1 answer
Datastax Cassandra PHP Driver : How to know CQL INSERT,UPDATE,DELETE are Successful
I am using Datastax php-driver to run CQL on my cassandra. I use INSERT,UPDATE,DELETE operation.
Below is sample code I run for insert
$cluster = Cassandra::cluster()
->withContactPoints('54.XX.XX.XX',…

JsLearner
- 446
- 2
- 7
- 17
1
vote
1 answer
Unable to connect to remote Cassandra Cluster using Datastax PHP Driver
I am currently involved in creating an API that uses a Cassandra cluster with 3 nodes for storing data. I was developing it on my local machine using PHP 5.6.17, Cassandra 2.2.3 and the Datastax PHP Driver 1.1.0 and everything went fine.
However,…

Karvounis
- 11
- 1
- 4
1
vote
0 answers
make failure from travis going from sudo to container build
I have a project that relies on datastax php-driver:
https://github.com/datastax/php-driver
I have been using this drive successfully for PHP 5.6 and travis.
I wanted to switch to container build since the owners of the php-drive has managed to do…

azngunit81
- 1,574
- 2
- 20
- 38