Zookeeper issue in setting kafka

后端 未结 10 534
盖世英雄少女心
盖世英雄少女心 2021-01-11 14:00

To install kafka , I downloaded the kafka tar folder. To start the server I tried this command :

bin/zookeeper-server-start.sh config/zookeeper.properties
<         


        
相关标签:
10条回答
  • This is basically because of this
    java.lang.IllegalArgumentException: config/zookeeper.properties file is missing

    it would be really useful if you could share what exactly have you done so far. Also check if the same file exists at the said location and you are running the command from the correct location .. it is supposed to be run from your $KAFKA_HOME folder (where you've extracted the tar file)

    0 讨论(0)
  • 2021-01-11 14:29

    Just make sure that whether /config folder exist or not.

    Try to type properties directly. e.g. zookeeper-server-start zookeeper.properties

    I installed it with homebrew, it works.

    0 讨论(0)
  • 2021-01-11 14:32

    I saw when you run the above command it doesn't take config file. So if you Put complete path like c:\Kafka\config\zookeeper.properties... this works.

    0 讨论(0)
  • 2021-01-11 14:33

    Have to run in from Kafka home directory, but you are running from the bin.

    0 讨论(0)
  • 2021-01-11 14:37

    This happens because bin/windows is added to the path but kafka/config is not.
    Just navigate to your kafka folder and then try to run. I am adding screenshot if it can help.

    Before

    After

    0 讨论(0)
  • 2021-01-11 14:38

    Had the same issue.

    I was following this guide and step 2 mentions to run this command: bin/zookeeper-server-start.sh config/zookeeper.properties I had 2 problems, that first was that I wasn't inside the root directory of the file you untar and the second was that I didn't copy the complete command. Make sure both of them are correct and try again.

    0 讨论(0)
提交回复
热议问题