An error was reported when starting zookeeper today:
[ root@hadoop-one zookeeper-3.4.5]# bin/ zkServer.sh start
JMX enabled by default
Using config: /root/zookeeper/zookeeper-3.4.5/bin/../conf/ zoo.cfg
Starting zookeeper … already running as process 947..
Looking at the next 947 process, it is found that it is a Linux system process and should not conflict. I also checked several port numbers that zookeeper will use, and none of them is occupied.
Then open bin/ zkServer.sh Start the script and search the place where the above sentence will be thrown:
echo -n "Starting zookeeper ... "
if [ -f $ZOOPIDFILE ]; then
if kill -0 `cat $ZOOPIDFILE` > /dev/null 2>&1; then
echo $command already running as process `cat $ZOOPIDFILE`.
exit 0
fi
fi
When you see $zoopidfile, you think that the process ID file already exists, causing it to fail to start.
Go to dataDir and have a look. Sure enough, there is a zookeeper_ server.pid The last revision was a few days ago. Because the machine was shut down due to abnormal power failure last time, it probably caused the residue of this PID file.
Delete, restart, OK.
Read More:
- Starting zookeeper… Already running as process 1949
- Error in starting zookeeper in Windows: zookeeper audit is disabled
- Error running docker container: starting container process caused “exec: \“python\“: executable file
- The solution of running switchhosts as an administrator in win10
- Git prompts another git process sees to be running in this repository, e.g. an editor opened by
- The first installation of zookeeper on Linux failed to start
- Error starting ApplicationContext. To display the conditions report re-run your application with
- Error starting ApplicationContext. To display the conditions report re run
- zookeeper_ An error is reported when the exporter starts
- Zookeeper starts the client and reports an error: java.net.connectexception: connection rejected
- Error starting ApplicationContext. To display the conditions report re-run your application with ‘de
- The Vue project is packaged and deployed to tomcat, and an Error 404 is reported as soon as it is refreshed
- [QtRunWork] Error starting process /uic:
- PIP report failed to create process
- Solve the problem of unable to start under zookeeper Linux
- Git bash here running error: failed to fork child process
- Anaconda opens Navigator to report an error and a web page appears Navigator Error An unexpected error occurred on Navigator start-up Report
- An error occurred when starting Tomcat in Eclipse: the sub container failed to start
- spyder an error ocurred while starting the kernel (How to Fix)
- Under Ubuntu environment, eclipse writes C program, and error starting process is reported