HBase
  1. HBase
  2. HBASE-2789

Propagate HBase config from Master to region servers

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 0.20.3
    • Fix Version/s: None
    • Component/s: master
    • Labels:
      None

      Description

      If HBase config is modified when HBase cluster is running, the changes wouldn't propagate to region servers after restarting cluster.

      This is different from hadoop behavior where changes get automatically copied to data nodes.

      This feature is desirable when enabling JMX, e.g.

        Activity

        Hide
        stack added a comment -

        What hadoop mechanism does this Ted? Is it this mechanism in the hadoop-daemons.sh script that you are referring to:

            if [ "$HADOOP_MASTER" != "" ]; then
              echo rsync from $HADOOP_MASTER
              rsync -a -e ssh --delete --exclude=.svn --exclude='logs/*' --exclude='contrib/hod/logs/*' $HADOOP_MASTER/ "$HADOOP_HOME"
            fi
        

        We should add this to the hbase scripts?

        Show
        stack added a comment - What hadoop mechanism does this Ted? Is it this mechanism in the hadoop-daemons.sh script that you are referring to: if [ "$HADOOP_MASTER" != "" ]; then echo rsync from $HADOOP_MASTER rsync -a -e ssh --delete --exclude=.svn --exclude='logs/*' --exclude='contrib/hod/logs/*' $HADOOP_MASTER/ "$HADOOP_HOME" fi We should add this to the hbase scripts?
        Hide
        Ted Yu added a comment -

        Yes.

        Show
        Ted Yu added a comment - Yes.
        Hide
        Ted Yu added a comment -

        I added the following to bin/hbase-daemon.sh (at line 171) for sync'ing conf files upon startup:

        if [ "$HBASE_MASTER" != "" ]
        then
        echo rsync from $HBASE_MASTER
        rsync -a -e ssh --delete $HBASE_MASTER:$

        {HBASE_CONF_DIR}

        $

        {HBASE_HOME}

        fi

        It works on a 16 node cluster one of which is the master.

        Show
        Ted Yu added a comment - I added the following to bin/hbase-daemon.sh (at line 171) for sync'ing conf files upon startup: if [ "$HBASE_MASTER" != "" ] then echo rsync from $HBASE_MASTER rsync -a -e ssh --delete $HBASE_MASTER:$ {HBASE_CONF_DIR} $ {HBASE_HOME} fi It works on a 16 node cluster one of which is the master.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Yu
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development