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

Fix order of parameters after HBASE-1511

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.90.0
    • 0.90.4, 0.92.0
    • scripts
    • None
    • Reviewed

    Description

      The order of the parameters are not proper in hbase-daemon.sh. Here is a simple change that fixes it:

      --- bin/hbase-daemon.sh (revision 1101351)
      +++ bin/hbase-daemon.sh (working copy)
      @@ -143,7 +143,7 @@
          echo "`ulimit -a`" >> $loglog 2>&1
          nohup nice -n $HBASE_NICENESS "$HBASE_HOME"/bin/hbase \
              --config "${HBASE_CONF_DIR}" \
      -        $command $startStop "$@" > "$logout" 2>&1 < /dev/null &
      +        $command "$@" $startStop > "$logout" 2>&1 < /dev/null &
          echo $! > $pid
          sleep 1; head "$logout"
          ;;
      

      Also see https://issues.apache.org/jira/browse/HBASE-3833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028332#comment-13028332

      I think this is an oversight and should have been part of the patch. Currently the local-regionservers.sh simply prints out the usage and exits, because the -D are not before the command as expected.

      Attachments

        Issue Links

          Activity

            People

              larsgeorge Lars George
              larsgeorge Lars George
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: