Available Methods
- shutdown ( )
- getFileSystem ( )
- waitActive ( )
- Builder ( )
- transitionToActive ( )
- getNameNode ( )
- getNamesystem ( )
- restartNameNode ( )
- shutdownNameNode ( )
- getBaseDirectory ( )
- startDataNodes ( )
- stopDataNode ( )
- getDataNodes ( )
- restartDataNode ( )
- waitClusterUp ( )
- transitionToStandby ( )
- getFinalizedDir ( )
- getURI ( )
- getSharedEditsDir ( )
- getInstanceStorageDir ( )
- getConfiguration ( )
- getNameNodePort ( )
- restartDataNodes ( )
- getAllBlockMetadataFiles ( )
- getNameDirs ( )
- triggerHeartbeats ( )
- formatDataNodeDirs ( )
- getNameNodeRpc ( )
- DataNodeProperties ( )
- getStorageDir ( )
- getDataNode ( )
- corruptBlockOnDataNodesByDeletingBlockFile ( )
- restartNameNodes ( )
- triggerBlockReports ( )
- addNameNode ( )
Related Classes
- java.util.Arrays
- java.io.File
- java.io.FileOutputStream
- java.util.Random
- org.junit.Before
- java.net.URI
- org.junit.Assert
- java.net.URISyntaxException
- org.junit.BeforeClass
- java.net.InetSocketAddress
- org.mockito.Mockito
- java.lang.management.ManagementFactory
- org.apache.hadoop.conf.Configuration
- javax.management.ObjectName
- org.apache.hadoop.fs.Path
- org.apache.hadoop.fs.FileSystem
- org.apache.hadoop.fs.FileStatus
- org.apache.hadoop.fs.FSDataInputStream
- org.apache.hadoop.fs.FSDataOutputStream
- org.apache.hadoop.mapred.JobConf
- org.apache.hadoop.security.UserGroupInformation
- org.apache.hadoop.util.ToolRunner
- org.apache.hadoop.fs.permission.FsPermission
- org.apache.hadoop.io.IOUtils
- org.apache.hadoop.util.StringUtils
Java Code Examples for org.apache.hadoop.hdfs.MiniDFSCluster#formatDataNodeDirs()
The following examples show how to use
org.apache.hadoop.hdfs.MiniDFSCluster#formatDataNodeDirs() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestPendingCorruptDnMessages.java From hadoop with Apache License 2.0 | 5 votes |
private static boolean wipeAndRestartDn(MiniDFSCluster cluster, int dnIndex) throws IOException { // stop the DN, reformat it, then start it again with the same xfer port. DataNodeProperties dnProps = cluster.stopDataNode(dnIndex); cluster.formatDataNodeDirs(); return cluster.restartDataNode(dnProps, true); }
Example 2
Source File: TestPendingCorruptDnMessages.java From big-c with Apache License 2.0 | 5 votes |
private static boolean wipeAndRestartDn(MiniDFSCluster cluster, int dnIndex) throws IOException { // stop the DN, reformat it, then start it again with the same xfer port. DataNodeProperties dnProps = cluster.stopDataNode(dnIndex); cluster.formatDataNodeDirs(); return cluster.restartDataNode(dnProps, true); }