Available Methods
- string2Bytes ( )
- bytes2String ( )
- getNsServiceRpcUris ( )
- isValidName ( )
- getHttpPolicy ( )
- getNamenodeNameServiceId ( )
- parseHelpArgument ( )
- setGenericConf ( )
- createClientDatanodeProtocolProxy ( )
- httpServerTemplateForNNAndJN ( )
- bytes2byteArray ( )
- convertToDFS ( )
- shuffle ( )
- getNNServiceRpcAddressesForCluster ( )
- getPercentUsed ( )
- byteArray2bytes ( )
- path2String ( )
- parseRelativeTime ( )
- getInvalidateWorkPctPerIteration ( )
- createUri ( )
- addPBProtocol ( )
- getCorruptFiles ( )
- getPercentRemaining ( )
- compareBytes ( )
- dateToIso8601String ( )
- getInfoServer ( )
- byteArray2PathString ( )
- getSecondaryNameNodeAddresses ( )
- flattenAddressMap ( )
- getNNServiceRpcAddresses ( )
- getNameServiceIds ( )
Related Classes
- java.util.Arrays
- java.io.File
- java.net.URL
- java.io.FileNotFoundException
- java.net.URI
- org.junit.Assert
- java.net.URISyntaxException
- java.net.InetSocketAddress
- com.google.common.collect.Lists
- org.mockito.Mockito
- com.google.common.collect.Maps
- com.google.common.base.Preconditions
- org.apache.hadoop.conf.Configuration
- org.apache.hadoop.fs.Path
- org.apache.hadoop.fs.FileSystem
- org.apache.hadoop.fs.FileStatus
- 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
- org.apache.hadoop.hdfs.MiniDFSCluster
- org.apache.hadoop.hdfs.DistributedFileSystem
- org.apache.hadoop.net.NetUtils
- org.apache.hadoop.security.SecurityUtil
Java Code Examples for org.apache.hadoop.hdfs.DFSUtil#path2String()
The following examples show how to use
org.apache.hadoop.hdfs.DFSUtil#path2String() .
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: INodeDirectory.java From hadoop with Apache License 2.0 | 5 votes |
/** Cast INode to INodeDirectory. */ public static INodeDirectory valueOf(INode inode, Object path ) throws FileNotFoundException, PathIsNotDirectoryException { if (inode == null) { throw new FileNotFoundException("Directory does not exist: " + DFSUtil.path2String(path)); } if (!inode.isDirectory()) { throw new PathIsNotDirectoryException(DFSUtil.path2String(path)); } return inode.asDirectory(); }
Example 2
Source File: INodeDirectory.java From big-c with Apache License 2.0 | 5 votes |
/** Cast INode to INodeDirectory. */ public static INodeDirectory valueOf(INode inode, Object path ) throws FileNotFoundException, PathIsNotDirectoryException { if (inode == null) { throw new FileNotFoundException("Directory does not exist: " + DFSUtil.path2String(path)); } if (!inode.isDirectory()) { throw new PathIsNotDirectoryException(DFSUtil.path2String(path)); } return inode.asDirectory(); }