FAILED TO WRITE PID installing Zookeeper

后端 未结 11 3004
小蘑菇
小蘑菇 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:35

    It seems you do not have the required permissions. The /var/log owner is is going to be root. Zookeeper stores the process id and snapshot of data in that directory. The process id of the spawned zookeeper server is stored in a file -zookeeper_server.pid (as of 3.3.6)

    If you have root previleges, you could start zookeeper with sudo (root) previleges, it should work but definitely not recommended. Make sure you start zookeeper with the same(or higher) permissions as the owner of the directory.

    Create a new directory in your home folder like /home/username/zookeeper-data. Let dataDir point to that directory and it should work.

提交回复
热议问题