[ 
https://issues.apache.org/jira/browse/HBASE-24032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Reid Chan updated HBASE-24032:
------------------------------
    Release Note: 
Admin can determine which tables go to which rsgroup by script  (setting 
hbase.rsgroup.table.mapping.script with local filystem path) on Master side 
which aims to lighten the burden of admin operations.  Note, since HBase 3+, 
rsgroup can be specified in TableDescriptor as well, if clients specify this, 
master will skip the determination from script.

Here is a simple example of script:
{code}
# Input consists of two string, 1st is the namespace of the table, 2nd is the 
table name of the table
#!/bin/bash
namespace=$1
tablename=$2
if [[ $namespace == test ]]; then
  echo test
elif [[ $tablename == *foo* ]]; then
  echo other
else
  echo default
fi
{code}

  was:
Admin can determine which tables go to which rsgroup by script  (setting 
hbase.rsgroup.table.mapping.script with local filystem path) on Master side 
which aims to lighten the burden of admin operations.  Note, since HBase 3+, 
rsgroup can be specified in TableDescriptor as well, if clients specify this, 
master will skip the determination from script.

Here is a simple example of script:
{code}
# Input consists two string, 1st one is namespace of the table, 2nd is the 
table name of the table
#!/bin/bash
namespace=$1
tablename=$2
if [[ $namespace == test ]]; then
  echo test
elif [[ $tablename == *foo* ]]; then
  echo other
else
  echo default
fi
{code}


> [RSGroup] Assign created tables to respective rsgroup automatically instead 
> of manual operations 
> -------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-24032
>                 URL: https://issues.apache.org/jira/browse/HBASE-24032
>             Project: HBase
>          Issue Type: Improvement
>          Components: master, rsgroup
>            Reporter: Reid Chan
>            Assignee: Reid Chan
>            Priority: Major
>             Fix For: 2.3.0, master, 1.7.0, 1.4.14, 2.2.5
>
>
> In prod practise, it's time consuming and tiring to assign tables to their 
> rsgroups for HBase admin by shell, especially in 1.x rsgroup client is 
> IA.private, we could not even write some programs to do that.
> And I'm here proposing a solution to do the automated rsgroup assignment by 
> allowing running a shell in postCreateTable to determine which table should 
> go to which rsgroup (way in branch-1 not master). The benefit is obvious, 
> admin can determine or change at any time the mapping rule in script without 
> restarting or re-config anything. It's flexible, convenience and time saving.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to