cqlsh:reis> COPY image FROM 'image.csv'; Using 7 child processes
Starting copy of reis.image with columns \['id', 'content', 'name'\]. Failed to import11 rows: InvalidRequest - code=2200 \[Invalid query\] message="Batch too large", will retry later, attempt 1of5 Failed to import16 rows: InvalidRequest - code=2200 \[Invalid query\] message="Batch too large", will retry later, attempt 1of5 Failed to import18 rows: InvalidRequest - code=2200 \[Invalid query\] message="Batch too large", will retry later, attempt 1of5 ...
/var/log/cassandra/system.log文件中可见:
1
ERROR \[SharedPool-Worker-1\] 2016-07-1515:07:20,725 BatchStatement.java:267 - Batch of prepared statements for \[reis.image\] is of size 2732525, exceeding specified threshold of614400 by 2118125. (see batch_size_fail_threshold_in_kb)
batch就是批量执行DML语句. 因为我的image表中有大字段,用于存储图片,每个图片不超过500K,所以遭遇了batch too large错误.
ERROR Temporary Store limit is 50000 mb, whilst the temporary data directory: /var/lib/activemq/main/data/localhost/tmp_storage only has 3346 mb of usable space
ERROR \[main\] 2016-06-1811:01:40,730 CassandraDaemon.java:638 - Cannot start node if snitch's data center (DC1) differs from previous data center (datacenter1). Please fix the snitch configuration, decommission and rebootstrap this node or use the flag -Dcassandra. ignore_dc=true.