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.

feita há 8 meses154 visualizações
Sem respostas

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas