[Confluent] Confluent 6.1 수동 설치
Confluent 6.1 Install 방법
User 추가
1
2
sudo -i
useradd kafka
SUDO 권한 설정
1
echo "kafka ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/kafka
방화벽 중지 및 비활성화
1
2
3
su - kafka
sudo systemctl stop firewalld
sudo systemctl disable firewalld
SELinux 해제
1
2
sudo vi /etc/selinux/config
sudo reboot
Packages 설치
1
sudo yum install -y gcc make openssl-devel bzip2-devel libfㅣfi-devel xz-devel java-11-openjdk
hosts 파일 설정
1
sudo vi /etc/hosts
1
192.168.56.100 [호스트명]
Ansible로 Confluent 설치 시, Python 설치가 필요함
Confluent Platform 다운로드
1
curl -O https://packages.confluent.io/archive/6.1/confluent-6.1.0.tar.gz
압축 해제
1
tar -zxvf confluent-6.1.0.tar.gz
zookeeper.properies 파일 수정
1
vi /home/kafka/confluent/confluent-6.1.0/etc/kafka/zookeeper.properies
1
2
3
4
5
6
4lw.commands.whitelist: "*"
initLimit: 5
syncLimit: 2
tickTime: 2000
server.1=localhost:2888:3888
echo 1 > /tmp/zookeeper/myid
Zookeeper myid 저장되는 위치 디렉토리 생성
1
mkdir -p /tmp/zookeeper
server.properties 파일 수정 (기존 옵션은 주석처리 필요)
1
vi /home/kafka/confluent/confluent-6.1.0/etc/kafka/server.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
broker.id=0
listeners=PLAINTEXT://:9092
advertised.listeners=PLAINTEXT://localhost:9092
num.io.threads: 10
num.network.threads: 4
num.replica.fetchers: 12
default.replicaiton.factor: 1
min.insync.replicas: 1
unclean.leader.election.enable: false
metric.reporters: io.confluent.metrics.reporter.ConfluentMetricsReporter
confluent.metrics.reporter.bootstrap.servers: [호스트명]:9092
confluent.metrics.reporter.topic.replicas: 1
offsets.topic.replication.factor: 1
confluent.topic.replication.factor: 1
transaction.state.log.replication.factor: 1
transaction.state.log.min.isr: 1
num.partitions: 1
confluent.license.topic.replication.factor: 1
confluent.metadata.topic.replication.factor: 1
confluent.security.event.logger.exporter.kafka.topic.replicas: 1
confluent.balancer.enable: false
confluent.balancer.topic.replication.factor: 1
delete.topic.enable: true
log.dirs: /home/kafka/confluent/confluent-6.1.0/logs/broker
log.retention.hours: 168
zookeeper.connect=localhost:2181
Zookeeper 실행
1
sudo /home/kafka/confluent/confluent-6.1.0/bin/zookeeper-server-start /home/kafka/confluent/confluent-6.1.0/etc/kafka/zookeeper.properties
Broker 실행
1
sudo /home/kafka/confluent/confluent-6.1.0/bin/kafka-server-start /home/kafka/confluent/confluent-6.1.0/etc/kafka/server.properties
ControlCenter 파일 수정
1
vi /home/kafka/confluent/confluent-6.1.0/etc/confluent-control-center/control-center.properties
1
2
3
4
5
6
7
8
9
confluent.controlcenter.ui.autoupdate.enable: true
confluent.controlcenter.usage.data.collection.enable: true
confluent.controlcenter.command.topic.replication: 1
confluent.monitoring.interceptor.topic.replication: 1
confluent.controlcenter.internal.topics.replication: 1
confluent.monitoring.intercepter.topic.replication: 1
confluent.metrics.topic.replication: 1
confluent.controlcenter.data.dir: /home/kafka/confluent/confluent-6.1.0/logs/controlcenter
confluent.controlcenter.connect.connect-cluster.cluster: http://[호스트명]:8083
ControlCenter 기동
1
sudo /home/kafka/confluent/confluent-6.1.0/bin/control-center-start /home/kafka/confluent/confluent-6.1.0/etc/confluent-control-center/control-center-production.properties
This post is licensed under CC BY 4.0 by the author.
Comments powered by Disqus.