kafka消費者傳遞數據是通過tcp
stream {
include /usr/local/nginx/conf/stream/*.stream;
}
vi /usr/local/nginx/conf/stream/hdp.stream
upstream kafka {
hash $remote_addr consistent;
server 10.133.0.144:9092;
}
server {
listen 19092;
proxy_pass kafka;
}
kafka消費者傳遞數據是通過tcp
stream {
include /usr/local/nginx/conf/stream/*.stream;
}
vi /usr/local/nginx/conf/stream/hdp.stream
upstream kafka {
hash $remote_addr consistent;
server 10.133.0.144:9092;
}
server {
listen 19092;
proxy_pass kafka;
}
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。