FAILED TO WRITE PID installing Zookeeper

后端 未结 11 2910
小蘑菇
小蘑菇 2021-02-19 22:10

I am new to Zookeeper and it has being a real issue to install it and run. I am not sure what is wrong in here but I will explain what I\'ve being doing to make it more clear:

11条回答
  •  说谎
    说谎 (楼主)
    2021-02-19 22:22

    The default zookeeper installation (tar extract) comes with the conf file named conf/zoo_sample.cfg while the same extract's bin/zkServer.sh expects the conf file to be called zoo.cfg thereby resulting in a "No such file or dir" and the "failed to write pid" error. So before running zkServer.sh to start or stop zookeeper instance, either:

    • rename the zoo_sample.cfg in the conf dir to zoo.cfg, or
    • give the name (and path) to the conf file (as suggested by Ilya Lapitan), or, of course
    • edit zkServer.sh ;-)

提交回复
热议问题