[
https://issues.apache.org/jira/browse/HBASE-11752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14098854#comment-14098854
]
Andrew Purtell commented on HBASE-11752:
----------------------------------------
Thanks Misty.
bq. One thing I couldn't figure out from looking at your patch is how do you
set the option in the region or column to enable this?
Set the PREFETCH_BLOCKS_ON_OPEN option as "true" in the column family schema.
For example, when creating the table with the shell:
{code}
hbase> create 'MyTable', { NAME => 'myCF', PREFETCH_BLOCKS_ON_OPEN => 'true' }
{code}
Or, if creating schema dynamically:
{code}
// ...
HTableDescriptor tableDesc = new HTableDescriptor("myTable");
HColumnDescriptor cfDesc = new HColumnDescriptor("myCF");
cfDesc.setPrefetchBlocksOnOpen(true);
tableDesc.addFamily(cfDesc);
// ...
{code}
> Document blockcache prefetch option
> -----------------------------------
>
> Key: HBASE-11752
> URL: https://issues.apache.org/jira/browse/HBASE-11752
> Project: HBase
> Issue Type: Sub-task
> Components: BlockCache, documentation
> Reporter: Misty Stanley-Jones
> Assignee: Misty Stanley-Jones
> Fix For: 0.99.0, 0.98.3
>
> Attachments: HBASE-11752.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.2#6252)