@InterfaceAudience.Private public final class BlockCacheFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BLOCKCACHE_BLOCKSIZE_KEY
The target block size used by blockcache instances.
|
static String |
BUCKET_CACHE_BUCKETS_KEY
A comma-delimited array of values for use as bucket sizes.
|
static String |
BUCKET_CACHE_PERSISTENT_PATH_KEY
If the chosen ioengine can persist its state across restarts, the path to the file to persist
to.
|
static String |
BUCKET_CACHE_WRITER_QUEUE_KEY |
static String |
BUCKET_CACHE_WRITER_THREADS_KEY |
static int |
DEFAULT_BUCKET_CACHE_WRITER_QUEUE |
static int |
DEFAULT_BUCKET_CACHE_WRITER_THREADS
Defaults for Bucket cache
|
| Modifier and Type | Method and Description |
|---|---|
static BlockCache |
createBlockCache(org.apache.hadoop.conf.Configuration conf) |
public static final String BUCKET_CACHE_PERSISTENT_PATH_KEY
file:/tmp/bucketcache.data , then we will write the bucketcache data to the file
/tmp/bucketcache.data but the metadata on where the data is in the supplied file
is an in-memory map that needs to be persisted across restarts. Where to store this
in-memory state is what you supply here: e.g. /tmp/bucketcache.map.public static final String BUCKET_CACHE_WRITER_THREADS_KEY
public static final String BUCKET_CACHE_WRITER_QUEUE_KEY
public static final String BUCKET_CACHE_BUCKETS_KEY
public static final int DEFAULT_BUCKET_CACHE_WRITER_THREADS
public static final int DEFAULT_BUCKET_CACHE_WRITER_QUEUE
public static final String BLOCKCACHE_BLOCKSIZE_KEY
HConstants.DEFAULT_BLOCKSIZE.public static BlockCache createBlockCache(org.apache.hadoop.conf.Configuration conf)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.