Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15523

enhance hbase-daemon.sh to enable autorestart.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      enhance hbase-daemon.sh to enable autorestart.

      component(like master, region server) will auto-start when terminated/killed abnormally if
      (a) Add a new env variable $HBASE_AUTORESTART to hbase-env.sh i.e. export HBASE_AUTORESTART=true
      (b) Then add the following 3 simple lines(59-61) to /bin/hbase-daemon.sh

      51 # get arguments
      52 startStop=$1
      53 shift
      54
      55 command=$1
      56 shift
      57
      58 #make sure the auto-restart are default settings
      59 if [ "$HBASE_AUTORESTART" == "true" ] && [ "$startStop" == "start" ]; then
      60 startStop="autorestart"
      61 fi

      Attachments

        1. HBASE-15523.patch
          0.4 kB
          Yi Liang

        Issue Links

          Activity

            People

              easyliangjob Yi Liang
              easyliangjob Yi Liang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: