diff options
| author | wangchengcheng <[email protected]> | 2023-07-27 15:43:51 +0800 |
|---|---|---|
| committer | wangchengcheng <[email protected]> | 2023-07-27 15:43:51 +0800 |
| commit | 124f687daace8b85e5c74abac04bcd0a92744a8d (patch) | |
| tree | 4f563326b1be67cfb51bf6a04f1ca4d953536e76 /PCAP-PIC/hbase/bin/alter-hbase-table.sh | |
| parent | 08686ae87f9efe7a590f48db74ed133b481c85b1 (diff) | |
P19 23.07 online-configP19
Diffstat (limited to 'PCAP-PIC/hbase/bin/alter-hbase-table.sh')
| -rw-r--r-- | PCAP-PIC/hbase/bin/alter-hbase-table.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/PCAP-PIC/hbase/bin/alter-hbase-table.sh b/PCAP-PIC/hbase/bin/alter-hbase-table.sh new file mode 100644 index 0000000..a174368 --- /dev/null +++ b/PCAP-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 + |
