voldemort.tools
Class KeySamplerCLI
java.lang.Object
voldemort.tools.KeySamplerCLI
public class KeySamplerCLI
- extends java.lang.Object
The KeySamplerCLI tool samples keys for every partition for every store on a
cluster. A distinct file of sampled keys is generated for each store.
By default, the "first" key of each partition is sampled. Optional arguments
control sampling more keys per partition.
Constructor Summary |
KeySamplerCLI(java.lang.String url,
java.lang.String outDir,
java.util.List<java.lang.String> storeNames,
java.util.List<java.lang.Integer> partitionIds,
int nodeParallelism,
int recordsPerPartition,
int keysPerSecondLimit,
int progressPeriodOps)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeySamplerCLI
public KeySamplerCLI(java.lang.String url,
java.lang.String outDir,
java.util.List<java.lang.String> storeNames,
java.util.List<java.lang.Integer> partitionIds,
int nodeParallelism,
int recordsPerPartition,
int keysPerSecondLimit,
int progressPeriodOps)
sampleStores
public boolean sampleStores()
sampleStore
public boolean sampleStore(StoreDefinition storeDefinition)
stop
public void stop()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu