修改kafka的partition分区 bin/kafka-topics.sh --zookeeper datacollect-2:2181 --alter --partitions 3 --topic client-agent-1 修改kafka副本数 官网解释如下: Increasing replication factor Increasing the replication factor of an existing partition is easy. Just specify the
消息在经过拦截器.序列化后,就需要确定它发往哪个分区,如果在ProducerRecord中指定了partition字段,那么就不再需要partitioner分区器进行分区了,如果没有指定,那么会根据key来将数据进行分区,如果partitioner和key都没有指定,那么就会采用默认的方式进行数据分区. 有没有指定partition可以从源码中看出: public ProducerRecord(String topic, Integer partition, K key, V value) {}
mysql导入数据,navicat报错: MySQL server has gone away Table Restored: act_ge_bytearray Rolling back... Finished - Stopped before completion -------------------------------------- 问题原因:导入的数据超过了mysql默认单个字段最大容量 #查看数据库中最大的单个文件容量 SHOW VARIABLES LIKE '%max_all