I solved the problem:
I just changed the Level constant to ONE and it works, for example:
does not work:
$consistencyLevel = cassandra_ConsistencyLevel::QUORUM;
$columnFamily->get($key, $columnNames, '', '', false, $limit, null, $consistencyLevel);
work:
$consistencyLevel = cassandra_ConsistencyLevel::ONE;
$columnFamily->get($key, $columnNames, '', '', false, $limit, null, $consistencyLevel);
I don’t know why, but casandra does not allow me to do get () with the consistency of LEVEL QUORUM.
Maybe someone can explain this to me.
thank!
source
share