summaryrefslogtreecommitdiff
path: root/MSH-PIC/hbase/bin/alter-hbase-table.sh
diff options
context:
space:
mode:
authorwangchengcheng <[email protected]>2023-07-27 15:43:51 +0800
committerwangchengcheng <[email protected]>2023-07-27 15:43:51 +0800
commit124f687daace8b85e5c74abac04bcd0a92744a8d (patch)
tree4f563326b1be67cfb51bf6a04f1ca4d953536e76 /MSH-PIC/hbase/bin/alter-hbase-table.sh
parent08686ae87f9efe7a590f48db74ed133b481c85b1 (diff)
P19 23.07 online-configP19
Diffstat (limited to 'MSH-PIC/hbase/bin/alter-hbase-table.sh')
-rw-r--r--MSH-PIC/hbase/bin/alter-hbase-table.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/MSH-PIC/hbase/bin/alter-hbase-table.sh b/MSH-PIC/hbase/bin/alter-hbase-table.sh
new file mode 100644
index 0000000..a174368
--- /dev/null
+++ b/MSH-PIC/hbase/bin/alter-hbase-table.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+source /etc/profile
+
+hbase shell <<EOF
+
+disable "tsg_galaxy:job_result"
+alter "tsg_galaxy:job_result",NAME=>'detail',TTL=>'300'
+alter "tsg_galaxy:job_result",NAME=>'statistics',TTL=>'300'
+alter "tsg_galaxy:job_result",NAME=>'field_discovery',TTL=>'300'
+enable "tsg_galaxy:job_result"
+
+alter 'knowledge_base_hos_bucket',{DURABILITY => 'SYNC_WAL'}
+alter 'index_filename_knowledge_base_hos_bucket',{DURABILITY => 'SYNC_WAL'}
+alter 'index_time_knowledge_base_hos_bucket',{DURABILITY => 'SYNC_WAL'}
+alter 'index_partfile_knowledge_base_hos_bucket',{DURABILITY => 'SYNC_WAL'}
+
+EOF
+