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

rolling-restart.sh script unable to check expiration of master znode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.4
    • 0.94.5, 0.95.0
    • scripts
    • None
    • Linux CentOS release 5.8

    Description

      When rolling-restart.sh script stop master it enters loop trying to detect that master znode is deleted. Since it is unable to execute check command script hangs in infinite loop. Problematic line of script is:

      while ! bin/hbase zkcli stat $zmaster 2>&1 | grep "Node does not exist"; do

      "bin/hbase zkcli stat" can not be executed since script is run from bin directory. My suggestion is that this line should be like this in order to work:

      while ! "$bin"/hbase zkcli stat $zmaster 2>&1 | grep "Node does not exist"; do

      After i made this change i was able to execute rolling restart.

      Attachments

        1. HBASE-7785.txt
          0.4 kB
          Samir Ahmic

        Activity

          People

            asamir Samir Ahmic
            asamir Samir Ahmic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: