如何删除Hbase上的配置设置?

时间:2018-07-31 20:08:01

标签: hbase

目前,我有一张表格,其设置如下:

hbase(main):020:0> describe 'my_table'
Table my_table is ENABLED                                                                                                                                                                      
hdfs_storage_metadata, {CONFIGURATION => {'kafka.notification.broker' => 'kafka:6667,kafka1:6667,kafka2:6667', 'kafka.notification.health.topic
' => 'Kafka-topic', 'kafka.some.topic' => 'some-coprocessor'}}                                                                                                                  
COLUMN FAMILIES DESCRIPTION                                                                                                                                                                                 
{NAME => 'm', BLOOMFILTER => 'ROW', VERSIONS => '1', IN_MEMORY => 'false', KEEP_DELETED_CELLS => 'FALSE', DATA_BLOCK_ENCODING => 'NONE', TTL => 'FOREVER', COMPRESSION => 'SNAPPY', MIN_VERSIONS => '0', BLO
CKCACHE => 'true', BLOCKSIZE => '65536', REPLICATION_SCOPE => '1'} 

但是,由于这些表的配置设置不同,我试图启用跨集群复制并收到错误消息。我需要删除CONFIGURATION设置,但是找不到找到该方法的方法。我看过文档并尝试过

alter 'my_table', METHOD => 'table_att_unset',NAME => 'CONFIGURATION'

但是我发现找不到CONFIGURATION。从hbase-shell文档中,我尝试了

alter 'my_table', METHOD => 'table_conf_unset',NAME => 'CONFIGURATION'

但是得到table_conf_unset找不到。这是我什至可以做的事情吗?我不确定还有什么其他方法。

我正在运行hbase版本1.1.2.2.6.0.3-8

1 个答案:

答案 0 :(得分:0)

您需要像这样分别取消设置每个配置:-

alter 'my_table', METHOD => 'table_att_unset', NAME => 'kafka.notification.broker'
alter 'my_table', METHOD => 'table_att_unset', NAME => 'kafka.notification.health.topic'
alter 'my_table', METHOD => 'table_att_unset', NAME => 'kafka.some.topic'