Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-432

/etc/init.d/hbase-master checks wrong pid file, shows failed status on success

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: CDH4.0.0
    • Fix Version/s: None
    • Component/s: HBase
    • Labels:
    • Environment:
      Linux (Fedora 17)

      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:

      1. 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.

        Attachments

          Activity

            People

            • Assignee:
              rvs Roman V Shaposhnik
              Reporter:
              uckelman Joel Uckelman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: