Details
Description
'systemctl start hbase-master.service' fails this way:
Oct 17 14:13:19 scylla systemd[1]: PID file /usr/lib/hbase/pids/hadoop_hbase.pid not readable (yet?) after start.
Oct 17 14:13:19 scylla systemd[1]: Unit hbase-master.service entered failed state.
This happens because the pidfile /etc/init.d/hbase-master tells systemd to look for is not the pidfile created by /etc/init.d/hbase-master.
/etc/init.d/hbase-master creates this pidfile:
PID_FILE=${HBASE_PID_DIR}/hbase-hbase-master.pid
/etc/init.d/hbase-master tells systemctl to look for this pidfile:
- pidfile: /usr/lib/hbase/pids/hadoop_hbase.pid
hadoop_hbase.pid != hbase-hbase-master.pid. One of these should be changed to match the other. E.g., changing "hadoop_hbase.pid" to "hbase-hbase-master.pid" is sufficient to fix the problem.