我正在尝试在UNIX上启动kafka,但首先我需要运行zookpeer。
我有https://www.apache.org/dyn/closer.cgi?path=/kafka/2.0.0/kafka_2.11-2.0.0.tgz的kafka 2.12版本
我运行命令bin/zookeeper-server-start.sh config/zookeeper.properties
,但出现错误:
/kafka_2.12-2.0.0/bin/kafka-run-class.sh: line 306: /project/multiar/jdk1.7.0_17_x64/bin/java: No such file or directory
/kafka_2.12-2.0.0/bin/kafka-run-class.sh: line 306: exec: /project/multiar/jdk1.7.0_17_x64/bin/java: cannot execute: No such file or directory.
我的路径中有Java 8 jdk:
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
为什么我不能运行zookeper服务器?我应该安装jdk 7还是更改.sh
文件中的某些内容?