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

hadoop-hbase package should not try to stop/start/restart services

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Works for Me
    • Affects Version/s: CDH3u0
    • Fix Version/s: CDH3u1
    • Component/s: HBase, Packaging
    • Labels:
      None
    • Environment:
      CentOS5
    • Release Note:
      Seems to be already fixed in current git.

      Description

      Here is what hadoop-hbase tries to do when being uninstalled:

      %preun
      if [ "$1" = 0 ]; then
        # Stop any services that might be running
        for service in %{hbase_services}
        do
           service hadoop-hbase-$service stop   || /bin/true
        done
      fi
      

      But the relevant subpackages already take care of that:

      %preun %1 \
      if [ "$1" = 0 ] ; then \
      	service %{name}-%1 stop > /dev/null \
      	chkconfig --del %{name}-%1 \
      fi
      

      Note: It may be a duplicate. Just creating a ticket in case

        Attachments

          Activity

            People

            • Assignee:
              plinnell Peter Linnell
              Reporter:
              bruno Bruno Mahé
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: