EC2 - Starting Zookeper and Kafka server - Connection refused / closed by remote host - Windows

0

Hi everyone,

I tried to search online, forums etc but nothing worked. My objective is to start Zookeper and the Kafka server. I've installed Java and Kafka.

In general, at the first step when I try to connect I get the error: "ssh: connect to host ec2- xxxxx port 22: Connection refused"

My instance usually has "1/2 Checks passed" with Alert regarding the Instance status checks. I was not able to understand the cause of this, looked for many aspects, everything seems okay. Usually if I reboot it, it starts working with "2/2 Checks passed".

So if I try multiple times at some point it'll connect but when I try to run: "bin/zookeeper-server-start.sh config/zookeeper.properties"

The output tells me firstly to run: " ./gradlew jar" . When I run it outputs:

Configure project : Starting build with version 3.3.1 (commit id unknown) using Gradle 7.4.2, Java 11 and Scala 2.13.8 Build properties: maxParallelForks=2, maxScalacThreads=2, maxTestRetries=0 <======-------> 53% EXECUTING [1m 17s] IDLE :clients:compileJava

Error: Connection to ec2-xxxxxx closed by remote host.


After some minutes the connection gets closed or the console get freezed, without finishing the installation.

The instance is AWS (Linux) and I tried with both using Windows Powershell or Git Bash as console on Windows 10. I also tried creating another Instance which is Windows and using PuTTY but I get the same error "Network error: connection timed out".

Any help will be greatly appreciated.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠