#APACHE KAFKA 데이타마이그래이션 작업
> cd /home1/irteamsu/kafka2/kafka_2.11-1.1.0/
> base
> bin/kafka-server-stop.sh
> bin/zookeeper-server-stop.sh
########################cp -R /tmp/kafka-logs/ /home1/irteamsu/kafkadata/
cp /tmp/kafka-logs/20180416-0/* /home1/irteamsu/kafkadata/kafka-logs/20180416-0/
cp /tmp/kafka-logs/recovery-point-offset-checkpoint /home1/irteamsu/kafkadata/kafka-logs/
cp /tmp/kafka-logs/log-start-offset-checkpoint /home1/irteamsu/kafkadata/kafka-logs/
cp /tmp/kafka-logs/replication-offset-checkpoint /home1/irteamsu/kafkadata/kafka-logs/
> /home1/irteamsu/kafka2/kafka_2.11-1.1.0/config/server.properties 변경
> bin/zookeeper-server-start.sh config/zookeeper.properties &
> bin/kafka-server-start.sh config/server.properties &
#APACHE KAFKA 데이타마이그래이션 작업 확인
> bin/kafka-topics.sh --list --zookeeper localhost:2181
[irteamsu@cdb021.imgr kafka_2.11-1.1.0]$ netstat -an | grep 2181
tcp 0 0 0.0.0.0:2181 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:49964 127.0.0.1:2181 TIME_WAIT
tcp 0 0 127.0.0.1:35802 127.0.0.1:2181 ESTABLISHED
tcp 0 0 127.0.0.1:2181 127.0.0.1:35802 ESTABLISHED
[irteamsu@cdb021.imgr kafka_2.11-1.1.0]$
[irteamsu@cdb021.imgr kafka_2.11-1.1.0]$
[irteamsu@cdb021.imgr kafka_2.11-1.1.0]$
[irteamsu@cdb021.imgr 20180509-0]$ netstat -an | grep 9092
tcp 0 0 0.0.0.0:9092 0.0.0.0:* LISTEN
tcp 0 52 10.113.68.29:9092 10.113.68.28:59222 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59274 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59254 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59268 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59278 ESTABLISHED
tcp 0 0 127.0.0.1:9092 127.0.0.1:42516 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59276 ESTABLISHED
tcp 0 44 10.113.68.29:9092 10.113.68.28:59246 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59272 ESTABLISHED
tcp 0 72 10.113.68.29:52474 10.113.68.29:9092 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59234 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59270 ESTABLISHED
tcp 0 44 10.113.68.29:9092 10.113.68.28:59240 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59266 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59262 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59284 ESTABLISHED
tcp 0 52 10.113.68.29:9092 10.113.68.28:59227 ESTABLISHED
tcp 0 52 10.113.68.29:9092 10.113.68.28:59226 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.29:52474 ESTABLISHED
tcp 0 44 10.113.68.29:9092 10.113.68.28:59242 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59250 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59248 ESTABLISHED
tcp 0 52 10.113.68.29:9092 10.113.68.28:59252 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59446 ESTABLISHED
tcp 0 52 10.113.68.29:9092 10.113.68.28:59230 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59224 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59286 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59280 ESTABLISHED
tcp 1 0 10.113.68.29:52470 10.113.68.29:9092 CLOSE_WAIT
tcp 0 0 10.113.68.29:9092 10.113.68.28:59258 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59256 ESTABLISHED
tcp 0 44 10.113.68.29:9092 10.113.68.28:59244 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59232 ESTABLISHED
tcp 0 52 10.113.68.29:9092 10.113.68.28:59236 ESTABLISHED
tcp 0 0 127.0.0.1:42516 127.0.0.1:9092 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59220 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59448 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59264 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:59238 ESTABLISHED
[irteamsu@cdb021.imgr 20180509-0]$
[irteamsu@cdb021.imgr kafka_2.11-1.1.0]$
[irteamsu@cdb021.imgr kafka_2.11-1.1.0]$ bin/kafka-topics.sh --list --zookeeper localhost:2181
[2018-04-16 18:14:17,021] INFO Accepted socket connection from /127.0.0.1:54720 (org.apache.zookeeper.server.NIOServerCnxnFactory)
[2018-04-16 18:14:17,024] INFO Client attempting to establish new session at /127.0.0.1:54720 (org.apache.zookeeper.server.ZooKeeperServer)
[2018-04-16 18:14:17,025] INFO Established session 0x162cdbb20e00001 with negotiated timeout 30000 for client /127.0.0.1:54720 (org.apache.zookeeper.server.ZooKeeperServer)
20180411
20180412
20180413
20180414
20180415
20180416
20180417
20180418
20180419
20180420
20180421
20180422
20180423
20180424
20180425
20180426
20180427
20180428
20180429
20180430
20180431
[2018-04-16 18:14:17,066] INFO Processed session termination for sessionid: 0x162cdbb20e00001 (org.apache.zookeeper.server.PrepRequestProcessor)
[2018-04-16 18:14:17,067] INFO Closed socket connection for client /127.0.0.1:54720 which had sessionid 0x162cdbb20e00001 (org.apache.zookeeper.server.NIOServerCnxn)
[irteamsu@cdb021.imgr kafka_2.11-1.1.0]$
[irteamsu@cdb021.imgr kafka_2.11-1.1.0]$ netstat -an | grep 2181
tcp 0 0 0.0.0.0:2181 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:54646 127.0.0.1:2181 ESTABLISHED
tcp 0 0 127.0.0.1:54720 127.0.0.1:2181 TIME_WAIT
tcp 0 0 127.0.0.1:2181 127.0.0.1:54646 ESTABLISHED
[irteamsu@cdb021.imgr kafka_2.11-1.1.0]$ netstat -an | grep 9092
tcp 0 0 0.0.0.0:9092 0.0.0.0:* LISTEN
tcp 0 0 10.113.68.29:9092 10.113.68.28:45470 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45450 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45414 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45476 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45424 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45440 ESTABLISHED
tcp 0 0 127.0.0.1:9092 127.0.0.1:48314 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45426 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45442 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.29:58272 ESTABLISHED
tcp 0 0 127.0.0.1:48314 127.0.0.1:9092 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45462 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45436 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45432 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45458 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45474 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45446 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45434 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45472 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.29:58268 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45460 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45420 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45464 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45444 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45438 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45422 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45452 ESTABLISHED
tcp 0 0 10.113.68.29:58268 10.113.68.29:9092 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45428 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45448 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45418 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45478 ESTABLISHED
tcp 0 0 10.113.68.29:58272 10.113.68.29:9092 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45480 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45454 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45466 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45430 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.10:53490 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45456 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45468 ESTABLISHED
tcp 0 0 10.113.68.29:9092 10.113.68.28:45416 ESTABLISHED
[irteamsu@cdb021.imgr kafka_2.11-1.1.0]$