Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-528

A small patch to give better return codes which can be understood by chef and pupper among others.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.3.0
    • Fix Version/s: 0.4.0
    • Component/s: None
    • Labels:
      None

      Description

      Configuration management tools like Puppet and Chef depend on exit codes. In case of the hadoop-hive-server package, the /etc/init.d/hadoop-hive-server status call provides zero exit code independent of the service running or not. This makes Chef believe that the service is running and there is no need to start it. The fix should be very easy, only changing the three occurances of the $status variable in the service's hive_status() function to $RETVAL.

      1. BIGTOP-528.patch
        0.7 kB
        Peter Linnell

        Activity

        Hide
        plinnell Peter Linnell added a comment -

        Applies to trunk

        Show
        plinnell Peter Linnell added a comment - Applies to trunk
        Hide
        bmahe Bruno Mahé added a comment -

        +1

        Show
        bmahe Bruno Mahé added a comment - +1

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development