$ sudo apt install openjdk-8-jdk
--> 이부분만 바꿀 것(jdk 버전 따라서)
$ sudo apt install openjdk-17-jdk
https://blog.voidmainvoid.net/495
windows의 WSL환경에서 아파치 카프카 설치, 실행하는 방법
1) git 설치 https://git-scm.com/download/win Git - Downloading Package Download for Windows Click here to download the latest (2.39.2) 32-bit version of Git for Windows. This is the most recent maintained build. It was released 10 days ago, on 2023-02-14
blog.voidmainvoid.net
- wsl로 환경을 처음 설정하다보니, ip가 다르다는 것을 간과하고 있었다.
결론적으로는
1. env 파일의 ip를 바꿔주는 것.
2. properties(consumer, producer, server)의 ip를 wsl의 ip로 바꿔주면 된다.
---
mac에서 포트번호 바꾸는 법
zKEnv.sh
# default heap for zookeeper server
ZK_SERVER_HEAP="${ZK_SERVER_HEAP:-1000}"
export SERVER_JVMFLAGS="-Xmx${ZK_SERVER_HEAP}m -Dzookeeper.admin.serverPort=8081 $SERVER_JVMFLAGS"
'Computer Science > Kafka' 카테고리의 다른 글
비동기 이벤트 기반 아키텍처 적용 과정..(상편) (0) | 2025.03.12 |
---|---|
카프카란..? (0) | 2025.01.20 |