gitava / Big-Data-Study

For studying big data
2 stars 0 forks source link

hbase - hdp-node-03: no zookeeper to stop because no pid file /tmp/hbase-vagrant-zookeeper.pid #27

Closed gitava closed 4 years ago

gitava commented 4 years ago

https://blog.csdn.net/qq_20545159/article/details/49454335

解决办法:在hbase目录下conf文件夹下 hbase-env.sh中修改pid文件的存放路径,看注释,hbase默认注释掉HBASE_PID_DIR,而hbase默认把pid文件放在/tmp目录下,Ubuntu 默认重启自动删除/tmp文件夹中的目录 。删除之后hbase无法找到,在配置中把目录改成不会被删除的目录就行

!# The directory where pid files are stored. /tmp by default. export HBASE_PID_DIR=/var/hadoop/pids ———————————————— 版权声明:本文为CSDN博主「一杯咖啡半杯糖」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/sinat_23225111/article/details/82695008

gitava commented 4 years ago

hbase/conf/hbase-env.sh

# The directory where pid files are stored. /tmp by default.
# export HBASE_PID_DIR=/var/hadoop/pids
export HBASE_PID_DIR=/home/vagrant/hbase/tmp
gitava commented 4 years ago

Issue solved.

gitava commented 4 years ago

if you see it later sometime, it might be because the process is not closed/started properly. try kill/reboot.