public 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 and Description |
|---|
SimulatedDataNodes() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
int |
run(String[] args) |
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.