简体   繁体   中英

Kafka Zookeeper installation issue

Following the instructions from https://kafka.apache.org/quickstart .

On MingW32 console on Windows 8 64 bit, it produces this error.

$ bin/windows/zookeeper-server-start.bat config/zookeeper.properties
./zookeeper-server-start.bat: line 1: @echo: command not found
./zookeeper-server-start.bat: line 2: syntax error near unexpected token `('
./zookeeper-server-start.bat: line 2: `rem Licensed to the Apache Software Foundation (ASF) under one or more'

How to correctly install Kafka? Looked at some other SO posts about similar issues. Could not find solution for this particular error.

I think the issue is you are running the Windows scripts. In a MinGW environment you need to run the Linux commands. Eg, bin/zookeeper-server-start.sh config/zookeeper.properties

Windows scripts are for when you run Kafka using a Windows Command Prompt.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM