데이터 플랫폼 테스트 환경
- mysql : 3306
- postgres : 5432
- redis : 6379
- redash : 5000
- elasticsearch : 9200, 9300
- kibana : 5601
- webserver : 58080, 50080
- flower : 5555
- jupyterlab : 8888
- spark-master : 9090, 7077, 6066
- spark-worker : 8081
Logstash plugin 설치
bin/logstash-plugin install logstash-integration-kafka
파이프라인 conf 설정
# /usr/share/logstash/pipeline
input {
kafka {
bootstrap_servers => "kafka:29092" # kafka 부트스트랩
topics => ["best_seller"] # kafka 토픽 지정
consumer_threads => 1
group_id => "book"
}
}
filter {
}
output {
elasticsearch {
hosts => ["elasticsearch:9200"] # endpoint ES
index => "best-seller" # ES index
document_type => "_doc"
}
}
