Datastax/Cassandra perfect work in single script. But I need create many fork with pcntl_fork. And in fork cassandra don't work. simple script
<?php
$cluster = Cassandra::cluster() // connects to localhost by default
->build();
$keyspace = 'system';
$session = $cluster->connect($keyspace); // create session, optionally scoped to a keyspace
$statement = new Cassandra\SimpleStatement( // also supports prepared and batch statements
'SELECT keyspace_name, columnfamily_name FROM schema_columnfamilies'
);
$future = $session->executeAsync($statement); // fully asynchronous and easy parallel execution
$result = $future->get();
If run as single script $result content data. If I create pcntl_fork script freezes on $future->get(). How fix?