summaryrefslogtreecommitdiff
path: root/TWA-PIC/hbase/bin/rsgroup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'TWA-PIC/hbase/bin/rsgroup.sh')
-rw-r--r--TWA-PIC/hbase/bin/rsgroup.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/TWA-PIC/hbase/bin/rsgroup.sh b/TWA-PIC/hbase/bin/rsgroup.sh
new file mode 100644
index 0000000..f888d13
--- /dev/null
+++ b/TWA-PIC/hbase/bin/rsgroup.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+source /etc/profile
+
+hbase shell <<EOF
+
+add_rsgroup 'important'
+
+move_servers_rsgroup 'important',['twa-dellr740-dt001:16020']
+
+move_servers_rsgroup 'important',['twa-dellr740-dt002:16020']
+
+flush 'tsg:report_result'
+
+move_tables_rsgroup 'important',['tsg:report_result']
+
+flush 'tsg_galaxy:job_result'
+
+move_tables_rsgroup 'important',['tsg_galaxy:job_result']
+
+
+EOF
+