org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Toolpublic class SimulatedDataNodes
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
SimulatedFSDataset, so they do
not store any actual data, and do not persist anything to disk; they maintain
all metadata in memory. This is useful for testing and simulation purposes.
The DataNodes will attempt to connect to a NameNode defined by the default FileSystem. There will be one DataNode started for each block list file passed as an argument. Each of these files should contain a list of blocks that the corresponding DataNode should contain, as specified by a triplet of block ID, block size, and generation stamp. Each line of the file is one block, in the format:
blockID,blockGenStamp,blockSize
This class is loosely based off of
DataNodeCluster.
| Constructor | Description |
|---|---|
SimulatedDataNodes() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
main(java.lang.String[] args) |
|
int |
run(java.lang.String[] args) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.