Kafka Unrecognized VM option 'PrintGCDateStamps'

前端 未结 7 1344
梦毁少年i
梦毁少年i 2021-02-02 12:12

I installed Kafka on a remote server, and when I tried to run

~/kafka/bin/zookeeper-server-start.sh ~/kafka/config/zookeeper.properties

And I r

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-02 12:44

    Same issue on Ubuntu 16.04 with oracle jdk 9 installed, I have also tried openjdk 1.9 and got the same error. But when I try other version jdk, I found that oracle jdk 8 and openjdk 1.8 are both ok.

    So just check out what version of java you're using, maybe you can install or switch to other version of jdk by:

    update-alternatives --display java
    update-alternatives --config java
    java -version
    

提交回复
热议问题