Based on the information available at https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec#L208

   /currently a frame is limited to 256MB in length/

and at https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v5.spec#L364

   /currently an envelope body is limited to 256MB in length/

You really shouldn't write very large blobs (or in general, large partitions) to Cassandra, as you will be facing many issues down the line even you managed to get them written in the first place.

On 31/05/2022 14:39, Andria Trigeorgi wrote:
Hi,

I want to write large blobs in Cassandra. However, when I tried to write more than a 256MB blob, I got the message: "Error from server: code=2200 [Invalid query] message=\"Request is too big: length 268435580 exceeds maximum allowed length 268435456.\"".

I tried to change the variables "max_value_size_in_mb" and "native_transport_max_frame_size_in_mb" of the file "/etc/cassandra/cassandra.yaml" to 512, but I got a ConnectionRefusedError error. What am I doing wrong?

Thank you in advance,

Andria

Reply via email to