Example usage for Java org.apache.hadoop.hdfs DFSTestUtil fields, constructors, methods, implement or subclass
The text is from its open source code.
void | createFile(FileSystem fs, Path fileName, long fileLen, short replFactor, long seed) |
void | formatNameNode(Configuration conf) when formatting a namenode - we must provide clusterid. |
FileSystem | getFileSystemAs(UserGroupInformation ugi, final Configuration conf) Get a FileSystem instance as specified user in a doAs block. |
String | readFile(File f) |
String | readFile(FileSystem fs, Path fileName) |
void | waitForDatanodeDeath(DataNode dn) |
void | waitReplication(FileSystem fs, String topdir, short value) |
void | waitReplication(FileSystem fs, Path fileName, short replFactor) Wait for the given file to reach the given replication factor. |