At the table create I used BLOOMFILTER => 'NONE'. Which is an overwrite of
the default value. What I'm looking for is something like:
alter 'test', { NAME => 'cf', METHOD => 'family_att_unset', FNAME =>
'BLOOMFILTER' }

To restore what default value is.

I agree that your option works, but what if you don't know the default
value? What I want is just remove what has been setup.

Same here:
{NAME => '@', VERSIONS => '1', EVICT_BLOCKS_ON_CLOSE => 'false',
NEW_VERSION_BEHAVIOR => 'false', KEEP_DELETED_CELLS => 'false',
CACHE_DATA_ON_WRITE => 'false', DATA_BLOCK_ENCODING => 'NONE', TTL =>
'FOREVER', MIN_VERSIONS => '0', REPLICATION_SCOPE => '0', BLOOMFILTER =>
'ROW', CACHE_INDEX_ON_WRITE => 'false', IN_MEMORY => 'false',
CACHE_BLOOMS_ON_WRITE => 'false', PREFETCH_BLOCKS_ON_OPEN => 'false',
COMPRESSION => 'SNAPPY', BLOCKCACHE => 'true', BLOCKSIZE => '65536', *METADATA
=> {'ENCODE_ON_DISK' => 'true'}*}

If I want to remove the METADATA parameter for the '@' Column Familiy...
How do I do?

2018-01-01 11:49 GMT-05:00 Ted Yu <yuzhih...@gmail.com>:

> Not sure what you meant by deleting bloom filter type.
> Bloom filter type is used when constructing store file. See the following
> in HStore:
>
>   private HStoreFile createStoreFileAndReader(StoreFileInfo info) throws
> IOException {
>
>     info.setRegionCoprocessorHost(this.region.getCoprocessorHost());
>
>     HStoreFile storeFile = new HStoreFile(this.getFileSystem(), info,
> this.
> conf, this.cacheConf,
>
>         this.family.getBloomFilterType(), isPrimaryReplicaStore());
>
>
> If you want to use a different bloom filter, you can issue this command:
>
>
> alter 'test', { NAME => 'cf', BLOOMFILTER => 'ROW' }
>
>
> Cheers
>
> On Mon, Jan 1, 2018 at 6:22 AM, Jean-Marc Spaggiari <
> jean-m...@spaggiari.org
> > wrote:
>
> > Hi,
> >
> > What is the magic to delete a CF parameter?
> >
> > Like in this example:
> > hbase(main):033:0> desc 'table'
> > Table dns is ENABLED
> >
> >
> >
> >
> > table
> >
> >
> >
> >
> > COLUMN FAMILIES DESCRIPTION
> >
> >
> >
> >
> > {NAME => '@', VERSIONS => '1', EVICT_BLOCKS_ON_CLOSE => 'false',
> > NEW_VERSION_BEHAVIOR => 'false', KEEP_DELETED_CELLS => 'false',
> > CACHE_DATA_ON_WRITE => 'false', DATA_BLOCK_ENCODING => 'NONE', TTL =>
> > 'FOREVER', MIN_VERSIONS => '0', REPLICATION_SCOPE => '0', BLOOMFILTER =>
> > 'NONE', CACHE_INDEX_ON_WRITE => 'false', IN_MEM
> > ORY => 'false', CACHE_BLOOMS_ON_WRITE => 'false', PREFETCH_BLOCKS_ON_OPEN
> > => 'false', COMPRESSION => 'SNAPPY', BLOCKCACHE => 'true', BLOCKSIZE =>
> > '65536', METADATA => {'ENCODE_ON_DISK' => 'true'}}
> >
> >
> > 1 row(s)
> > Took 0.0368 seconds
> >
> >
> >
> >
> > I want to remove the BLOOMFILTER => 'NONE',  parameter that I have set. I
> > found how to remove the CF, table parameters and options, etc. But I have
> > not found how to delete the CF parameter. IIRC there was something with
> > :NILL or similar, but I'm not 100% sure.
> >
> > In any case, I feel this should be better documented :(
> >
> > JMS
> >
>

Reply via email to