topic 副本数修改

{
  "version": 1,
  "partitions": [
    {
      "topic": "message",
      "partition": 0,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "message",
      "partition": 1,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 0,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 1,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 2,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 3,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 4,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 5,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 6,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 7,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 8,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 9,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 10,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 11,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 12,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 13,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 14,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 15,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 16,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 17,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 18,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 19,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 20,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 21,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 22,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 23,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 24,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 25,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 26,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 27,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 28,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 29,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 30,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 31,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 32,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 33,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 34,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 35,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 36,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 37,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 38,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 39,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 40,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 41,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 42,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 43,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 44,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 45,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 46,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 47,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 48,
      "replicas": [1, 2, 3]
    },
    {
      "topic": "__consumer_offsets",
      "partition": 49,
      "replicas": [1, 2, 3]
    }
  ]
}
# 修改
sudo -u kafka sh ./bin/kafka-reassign-partitions.sh  --bootstrap-server kafka01:9092 --reassignment-json-file /opt/custom-reassignment.json --execute
sudo -u kafka sh ./bin/kafka-topics.sh  --bootstrap-server kafka01:9092 --describe > ~/kafka-info.txt