Thanks Flavio. I fixed it *T. Pranavan* *Junior Consultant | Department of Computer Science & Engineering ,University of Moratuwa* *Mobile| *0775136836
On 4 May 2016 at 14:10, Flavio Junqueira <[email protected]> wrote: > It implies that there is some issue with your permissions, you need to > sort it out before you try to run zookeeper. Can you try to set the > appropriate permissions to the directory before you try to run zookeeper? > Is the '/home/zookeeper' even there? Perhaps you want to try > '/tmp/zookeeper' just to test. > > -Flavio > > > On 04 May 2016, at 09:35, Pranavan Theivendiram < > [email protected]> wrote: > > > > Yes. I tried. It did not work. > > On May 4, 2016 1:48 PM, "Flavio Junqueira" <[email protected]> wrote: > > > >> Hello there, > >> > >> Have you tried creating the myid file manually? Does it work? > >> > >> -Flavio > >> > >>> On 04 May 2016, at 03:50, Pranavan Theivendiram < > >> [email protected]> wrote: > >>> > >>> Hi All, > >>> > >>> I am getting the following error in server start up. > >>> > >>> *ZooKeeper JMX enabled by default* > >>> *Using config: /home/pranavan/2K16/zookeeper-3.4.8/bin/../conf/zoo.cfg* > >>> *mkdir: cannot create directory ‘/home/zookeeper’: Permission denied* > >>> *Starting zookeeper ... ./zkServer.sh: line 149: > >>> /home/zookeeper/zookeeper_server.pid: No such file or directory* > >>> *FAILED TO WRITE PID* > >>> > >>> I started with root privileges. I did not have any problems. The server > >> is > >>> starting up properly. > >>> > >>> The proposed solution in stackoverflow is as follows. > >>> > >>> Link - > >>> > >> > http://stackoverflow.com/questions/19295978/failed-to-write-pid-installing-zookeeper > >>> > >>> Even that solution is not working for me. > >>> > >>> Can you please provide a method to start the server without user > >> privileges? > >>> > >>> Thanks > >>> > >>> > >>> > >>> *T. Pranavan* > >>> *Junior Consultant | Department of Computer Science & Engineering > >>> ,University of Moratuwa* > >>> *Mobile| *0775136836 > >> > >> > >
