Open getElementsByName opened 3 years ago
KAFKA_DATA_DIR=/home1/irteam/apps/kafka/var/data0 KAFKA_TOPIC_NAME=kafka-connect_myplace-localguide-mongodb_20201029-0.localguide.invalidreceipts-9 KAFKA_LOGS_FILE_NAME=00000000000000000000.log KAFAK_DATA_LOGS_FILE=$KAFKA_DATA_DIR/$KAFKA_TOPIC_NAME/$KAFKA_LOGS_FILE_NAME
unset JMX_PORT unset KAFKA_OPTS unset KAFKA_JMX_OPTS unset KAFKA_HEAP_OPTS
$KAFKA_HOME/bin/kafka-run-class kafka.tools.DumpLogSegments --files $KAFAK_DATA_LOGS_FILE --print-data-log | grep compresscodec
### 참고 - https://gist.github.com/mjuric/a1cdd53fa02d67d4da38681d52635aec
message logs
KAFKA_DATA_DIR=/home1/irteam/apps/kafka/var/data0 KAFKA_TOPIC_NAME=kafka-connect_myplace-localguide-mongodb_20201029-0.localguide.invalidreceipts-9 KAFKA_LOGS_FILE_NAME=00000000000000000000.log KAFAK_DATA_LOGS_FILE=$KAFKA_DATA_DIR/$KAFKA_TOPIC_NAME/$KAFKA_LOGS_FILE_NAME
kafka broker 구동 서버 환경에서 JMX 관련 환경 변수가 적용되어 port binding이 충돌남
unset JMX_PORT unset KAFKA_OPTS unset KAFKA_JMX_OPTS unset KAFKA_HEAP_OPTS
$KAFKA_HOME/bin/kafka-run-class kafka.tools.DumpLogSegments --files $KAFAK_DATA_LOGS_FILE --print-data-log | grep compresscodec