Uses of Class
org.apache.hadoop.fs.Path
Packages that use Path
Package
Description
Configuration of system parameters.
Implementations of
AbstractFileSystem for hdfs
over rpc and hdfs over web.Supporting classes for metrics instrumentation.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
A distributed implementation of
FileSystem for reading and writing files on
Azure Storage.Support for manifest committer.
This package contains implementation classes for use inside
filesystems.
This is the "Magic" committer and support.
ViewFileSystem and ViewFileSystemOverloadScheme classes.
This package provides the administrative APIs for HDFS.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Generic i/o code for use when reading and writing data to the network,
to databases, and to files.
Support for dynamic access to filesystem operations which are not available
in older hadoop releases.
Intermediate manifest committer.
Persistence formats.
Builtin metrics sinks
Classes for hadoop security.
Command-line tools for MapReduce.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Package org.apache.hadoop.yarn.service.client contains classes
for YARN Services Client API.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
-
Uses of Path in org.apache.hadoop.conf
Methods in org.apache.hadoop.conf that return PathModifier and TypeMethodDescriptionConfiguration.getLocalPath(String dirsProp, String path) Get a local file under a directory named by dirsProp with the given path.Methods in org.apache.hadoop.conf with parameters of type PathModifier and TypeMethodDescriptionvoidConfiguration.addResource(Path file) Add a configuration resource.voidConfiguration.addResource(Path file, boolean restrictedParser) -
Uses of Path in org.apache.hadoop.fs
Fields in org.apache.hadoop.fs declared as PathMethods in org.apache.hadoop.fs that return PathModifier and TypeMethodDescriptionBulkDelete.basePath()Base path of a bulk delete operation.AbstractFileSystem.createSnapshot(Path path, String snapshotName) The specification of this method matches that ofFileContext.createSnapshot(Path, String).final PathFileContext.createSnapshot(Path path) Create a snapshot with a default name.FileContext.createSnapshot(Path path, String snapshotName) Create a snapshot.final PathFileSystem.createSnapshot(Path path) Create a snapshot with a default name.FileSystem.createSnapshot(Path path, String snapshotName) Create a snapshot.FilterFileSystem.createSnapshot(Path path, String snapshotName) protected PathFileSystem.fixRelativePart(Path p) SeeFileContext.fixRelativePart(org.apache.hadoop.fs.Path).ChecksumFileSystem.getChecksumFile(Path file) Return the name of the checksum file associated with a file.Trash.getCurrentTrashDir(Path path) abstract PathTrashPolicy.getCurrentTrashDir()Get the current working directory of the Trash Policy This API does not work with files deleted from encryption zone when HDFS data encryption at rest feature is enabled as rename file between encryption zones or encryption zone and non-encryption zone is not allowed.TrashPolicy.getCurrentTrashDir(Path path) Get the current trash directory for path specified based on the Trash PolicyAbstractFileSystem.getEnclosingRoot(Path path) Return path of the enclosing root for a given path The enclosing root path is a common ancestor that should be used for temp and staging dirs as well as within encryption zones and other restricted directories.FileSystem.getEnclosingRoot(Path path) Return path of the enclosing root for a given path.FilterFileSystem.getEnclosingRoot(Path path) AbstractFileSystem.getHomeDirectory()Return the current user's home directory in this file system.FileContext.getHomeDirectory()Return the current user's home directory in this file system.FileSystem.getHomeDirectory()Return the current user's home directory in this FileSystem.FilterFileSystem.getHomeDirectory()RawLocalFileSystem.getHomeDirectory()AbstractFileSystem.getInitialWorkingDirectory()Some file systems like LocalFileSystem have an initial workingDir that is used as the starting workingDir.protected PathFileSystem.getInitialWorkingDirectory()Note: with the new FileContext class, getWorkingDirectory() will be removed.protected PathFilterFileSystem.getInitialWorkingDirectory()protected PathRawLocalFileSystem.getInitialWorkingDirectory()AbstractFileSystem.getLinkTarget(Path f) Partially resolves the path.FileContext.getLinkTarget(Path f) Returns the target of the given symbolic link as it was specified when the link was created.FileSystem.getLinkTarget(Path f) FilterFileSystem.getLinkTarget(Path f) LocalFileSystem.getLinkTarget(Path f) RawLocalFileSystem.getLinkTarget(Path f) PartialListing.getListedPath()Path being listed.Path.getParent()Returns the parent of a path or null if at root.FileStatus.getPath()static PathPath.getPathWithoutSchemeAndAuthority(Path path) Return a version of the given Path without the scheme information.FileStatus.getSymlink()FileSystem.getTrashRoot(Path path) Get the root directory of Trash for current user when the path specified is deleted.FilterFileSystem.getTrashRoot(Path path) FileContext.getWorkingDirectory()Gets the working directory for wd-relative names (such a "foo/bar").abstract PathFileSystem.getWorkingDirectory()Get the current working directory for the given FileSystemFilterFileSystem.getWorkingDirectory()Get the current working directory for the given file systemRawLocalFileSystem.getWorkingDirectory()AbstractFileSystem.makeQualified(Path path) Make the path fully qualified to this file systemFileContext.makeQualified(Path path) Make the path fully qualified if it is isn't.FileSystem.makeQualified(Path path) Qualify a path to one which uses this FileSystem and, if relative, made absolute.FilterFileSystem.makeQualified(Path path) Make sure that a path specifies a FileSystem.Returns a qualified path object.Path.makeQualified(FileSystem fs) Deprecated.static PathPath.mergePaths(Path path1, Path path2) Merge 2 paths such that the second path is appended relative to the first.protected PathResolves all symbolic links in the specified path.protected PathFileContext.resolveIntermediate(Path f) Resolves all symbolic links in the specified path leading up to, but not including the final path component.protected PathFileSystem.resolveLink(Path f) protected PathFilterFileSystem.resolveLink(Path f) AbstractFileSystem.resolvePath(Path p) Return the fully-qualified path of path f resolving the path through any internal symlinks or mount pointFileContext.resolvePath(Path f) Resolve the path following any symlinks or mount pointsFileSystem.resolvePath(Path p) Return the fully-qualified path of path, resolving the path through any symlinks or mount point.FilterFileSystem.resolvePath(Path p) ChecksumFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) FileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) Returns a local file that the user can write output to.FilterFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) Returns a local File that the user can write output to.RawLocalFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) static Path[]FileUtil.stat2Paths(FileStatus[] stats) convert an array of FileStatus to an array of Pathstatic Path[]FileUtil.stat2Paths(FileStatus[] stats, Path path) convert an array of FileStatus to an array of Path.Adds a suffix to the final name in the path.Methods in org.apache.hadoop.fs that return types with arguments of type PathModifier and TypeMethodDescriptionBulkDelete.bulkDelete(Collection<Path> paths) Delete a list of files/objects.FileUtil.getJarsInDirectory(String path) Returns all jars that are in the directory.FileUtil.getJarsInDirectory(String path, boolean useLocal) Returns all jars that are in the directory.Path.getOptionalParentPath()Returns the parent of a path asOptionalorOptional.empty()i.e an empty Optional if at root.org.apache.hadoop.fs.RemoteIterator<Path>AbstractFileSystem.listCorruptFileBlocks(Path path) org.apache.hadoop.fs.RemoteIterator<Path>FileContext.listCorruptFileBlocks(Path path) List CorruptFile Blocks.org.apache.hadoop.fs.RemoteIterator<Path>FileSystem.listCorruptFileBlocks(Path path) List corrupted file blocks.org.apache.hadoop.fs.RemoteIterator<Path>FilterFileSystem.listCorruptFileBlocks(Path path) Methods in org.apache.hadoop.fs with parameters of type PathModifier and TypeMethodDescriptionMultipartUploader.abort(UploadHandle uploadId, Path filePath) Aborts a multipart upload.MultipartUploader.abortUploadsUnderPath(Path path) Best effort attempt to aborts multipart uploads under a path.booleanbooleanTests whether or not the specified abstract pathname should be included in a pathname list.voidThe specification of this method matches that ofFileContext.access(Path, FsAction)except that an UnresolvedLinkException may be thrown if a symlink is encountered in the path.voidChecks if the user can access a path.voidChecks if the user can access a path.voidChecksumFileSystem.append(Path f, int bufferSize, Progressable progress) Append to an existing file (optional operation).Append to an existing file (optional operation).Append to an existing file (optional operation).abstract FSDataOutputStreamFileSystem.append(Path f, int bufferSize, Progressable progress) Append to an existing file (optional operation).FileSystem.append(Path f, int bufferSize, Progressable progress, boolean appendToNewBlock) Append to an existing file (optional operation).FilterFileSystem.append(Path f, int bufferSize, Progressable progress) RawLocalFileSystem.append(Path f, int bufferSize, Progressable progress) ChecksumFileSystem.appendFile(Path path) This is overridden to ensure that this class's create() method is ultimately called.FileSystem.appendFile(Path path) Create a Builder to append a file.FilterFileSystem.appendFile(Path path) booleanFileSystem.cancelDeleteOnExit(Path f) Cancel the scheduled deletion of the path when the FileSystem is closed.static booleanFileUtil.checkFSSupportsEC(FileSystem fs, Path path) Return true if the FS implementsWithErasureCodingand supports EC_POLICY option inOptions.OpenFileOptions.voidCheck that a Path belongs to this FileSystem.protected voidCheck that a Path belongs to this FileSystem.protected voidCheck that a Path belongs to this FileSystem.intMultipartUploader.complete(UploadHandle uploadId, Path filePath, Map<Integer, PartHandle> handles) Complete a multipart upload.voidChecksumFileSystem.completeLocalOutput(Path fsOutputFile, Path tmpLocalFile) voidFileSystem.completeLocalOutput(Path fsOutputFile, Path tmpLocalFile) Called when we're all done writing to the target.voidFilterFileSystem.completeLocalOutput(Path fsOutputFile, Path tmpLocalFile) Called when we're all done writing to the target.voidRawLocalFileSystem.completeLocalOutput(Path fsWorkingFile, Path tmpLocalFile) voidvoidConcat existing files together.voidvoidstatic booleanFileUtil.copy(File src, FileSystem dstFS, Path dst, boolean deleteSource, Configuration conf) Copy local files to a FileSystem.static booleanFileUtil.copy(FileSystem srcFS, FileStatus srcStatus, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf) Copy a file/directory tree within/between filesystems.static booleanFileUtil.copy(FileSystem srcFS, Path[] srcs, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf) static booleanFileUtil.copy(FileSystem srcFS, Path src, File dst, boolean deleteSource, Configuration conf) Copy FileSystem files to local files.static booleanFileUtil.copy(FileSystem srcFS, Path src, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf) Copy files between FileSystems.static booleanFileUtil.copy(FileSystem srcFS, Path src, FileSystem dstFS, Path dst, boolean deleteSource, Configuration conf) Copy files between FileSystems.voidChecksumFileSystem.copyFromLocalFile(boolean delSrc, Path src, Path dst) voidFileSystem.copyFromLocalFile(boolean delSrc, boolean overwrite, Path[] srcs, Path dst) The src files are on the local disk.voidFileSystem.copyFromLocalFile(boolean delSrc, boolean overwrite, Path src, Path dst) The src file is on the local disk.voidFileSystem.copyFromLocalFile(boolean delSrc, Path src, Path dst) The src file is on the local disk.voidFileSystem.copyFromLocalFile(Path src, Path dst) The src file is on the local disk.voidFilterFileSystem.copyFromLocalFile(boolean delSrc, boolean overwrite, Path[] srcs, Path dst) The src files are on the local disk.voidFilterFileSystem.copyFromLocalFile(boolean delSrc, boolean overwrite, Path src, Path dst) The src file is on the local disk.voidFilterFileSystem.copyFromLocalFile(boolean delSrc, Path src, Path dst) The src file is on the local disk.voidLocalFileSystem.copyFromLocalFile(boolean delSrc, Path src, Path dst) voidChecksumFileSystem.copyToLocalFile(boolean delSrc, Path src, Path dst) The src file is under FS, and the dst is on the local disk.voidChecksumFileSystem.copyToLocalFile(Path src, Path dst, boolean copyCrc) The src file is under FS, and the dst is on the local disk.voidFileSystem.copyToLocalFile(boolean delSrc, Path src, Path dst) Copy it a file from a remote filesystem to the local one.voidFileSystem.copyToLocalFile(boolean delSrc, Path src, Path dst, boolean useRawLocalFileSystem) The src file is under this filesystem, and the dst is on the local disk.voidFileSystem.copyToLocalFile(Path src, Path dst) Copy it a file from the remote filesystem to the local one.voidFilterFileSystem.copyToLocalFile(boolean delSrc, Path src, Path dst) The src file is under FS, and the dst is on the local disk.voidLocalFileSystem.copyToLocalFile(boolean delSrc, Path src, Path dst) final FSDataOutputStreamAbstractFileSystem.create(Path f, EnumSet<CreateFlag> createFlag, org.apache.hadoop.fs.Options.CreateOpts... opts) The specification of this method matches that ofFileContext.create(Path, EnumSet, Options.CreateOpts...)except that the Path f must be fully qualified and the permission is absolute (i.e. umask has been applied).ChecksumFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) ChecksumFileSystem.create(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress, org.apache.hadoop.fs.Options.ChecksumOpt checksumOpt) Create aFSDataOutputStreamBuilderfor creating or overwriting a file on indicated path.FileContext.create(Path f, EnumSet<CreateFlag> createFlag, org.apache.hadoop.fs.Options.CreateOpts... opts) Create or overwrite file on indicated path and returns an output stream for writing into the file.static FSDataOutputStreamFileSystem.create(FileSystem fs, Path file, FsPermission permission) Create a file with the provided permission.Create an FSDataOutputStream at the indicated Path.Create an FSDataOutputStream at the indicated Path.Create an FSDataOutputStream at the indicated Path.Create an FSDataOutputStream at the indicated Path.FileSystem.create(Path f, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) Create an FSDataOutputStream at the indicated Path with write-progress reporting.FileSystem.create(Path f, boolean overwrite, int bufferSize, Progressable progress) Create anFSDataOutputStreamat the indicated Path with write-progress reporting.Create an FSDataOutputStream at the indicated Path.FileSystem.create(Path f, short replication, Progressable progress) Create an FSDataOutputStream at the indicated Path with write-progress reporting.abstract FSDataOutputStreamFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) Create an FSDataOutputStream at the indicated Path with write-progress reporting.FileSystem.create(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) Create an FSDataOutputStream at the indicated Path with write-progress reporting.FileSystem.create(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress, org.apache.hadoop.fs.Options.ChecksumOpt checksumOpt) Create an FSDataOutputStream at the indicated Path with a custom checksum option.FileSystem.create(Path f, Progressable progress) Create an FSDataOutputStream at the indicated Path with write-progress reporting.FilterFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) FilterFileSystem.create(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress, org.apache.hadoop.fs.Options.ChecksumOpt checksumOpt) RawLocalFileSystem.create(Path f, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) RawLocalFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) BulkDeleteSource.createBulkDelete(Path path) Create a bulk delete operation.FileSystem.createBulkDelete(Path path) Create a bulk delete operation.protected static org.apache.hadoop.fs.FileSystem.FSDataInputStreamBuilderFileSystem.createDataInputStreamBuilder(FileSystem fileSystem, Path path) Create instance of the standardFileSystem.FSDataInputStreamBuilderfor the given filesystem and path.protected static FSDataOutputStreamBuilderFileSystem.createDataOutputStreamBuilder(FileSystem fileSystem, Path path) Create instance of the standard FSDataOutputStreamBuilder for the given filesystem and path.ChecksumFileSystem.createFile(Path path) This is overridden to ensure that this class's create() method is ultimately called.FileSystem.createFile(Path path) Create a new FSDataOutputStreamBuilder for the file with path.FilterFileSystem.createFile(Path path) abstract FSDataOutputStreamAbstractFileSystem.createInternal(Path f, EnumSet<CreateFlag> flag, FsPermission absolutePermission, int bufferSize, short replication, long blockSize, Progressable progress, org.apache.hadoop.fs.Options.ChecksumOpt checksumOpt, boolean createParent) The specification of this method matches that ofAbstractFileSystem.create(Path, EnumSet, Options.CreateOpts...)except that the opts have been declared explicitly.static String[]static String[]FileUtil.createJarWithClassPath(String inputClassPath, Path pwd, Path targetDir, Map<String, String> callerEnv) Create a jar file at the given path, containing a manifest with a classpath that references all specified entries.org.apache.hadoop.fs.MultipartUploaderBuilderAbstractFileSystem.createMultipartUploader(Path basePath) Create a multipart uploader.org.apache.hadoop.fs.MultipartUploaderBuilderFileContext.createMultipartUploader(Path basePath) Create a multipart uploader.org.apache.hadoop.fs.MultipartUploaderBuilderFileSystem.createMultipartUploader(Path basePath) Create a multipart uploader.booleanFileSystem.createNewFile(Path f) Creates the given Path as a brand-new zero-length file.ChecksumFileSystem.createNonRecursive(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) ChecksumFileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) FileSystem.createNonRecursive(Path f, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) Opens an FSDataOutputStream at the indicated Path with write-progress reporting.FileSystem.createNonRecursive(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) Opens an FSDataOutputStream at the indicated Path with write-progress reporting.FileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) Opens an FSDataOutputStream at the indicated Path with write-progress reporting.FilterFileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) RawLocalFileSystem.createNonRecursive(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) RawLocalFileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) protected OutputStreamRawLocalFileSystem.createOutputStream(Path f, boolean append) protected OutputStreamRawLocalFileSystem.createOutputStreamWithMode(Path f, boolean append, FsPermission permission) AbstractFileSystem.createSnapshot(Path path, String snapshotName) The specification of this method matches that ofFileContext.createSnapshot(Path, String).final PathFileContext.createSnapshot(Path path) Create a snapshot with a default name.FileContext.createSnapshot(Path path, String snapshotName) Create a snapshot.final PathFileSystem.createSnapshot(Path path) Create a snapshot with a default name.FileSystem.createSnapshot(Path path, String snapshotName) Create a snapshot.FilterFileSystem.createSnapshot(Path path, String snapshotName) voidAbstractFileSystem.createSymlink(Path target, Path link, boolean createParent) The specification of this method matches that ofFileContext.createSymlink(Path, Path, boolean);voidFileContext.createSymlink(Path target, Path link, boolean createParent) Creates a symbolic link to an existing file.voidFileSystem.createSymlink(Path target, Path link, boolean createParent) voidFilterFileSystem.createSymlink(Path target, Path link, boolean createParent) voidLocalFileSystem.createSymlink(Path target, Path link, boolean createParent) voidRawLocalFileSystem.createSymlink(Path target, Path link, boolean createParent) abstract booleanThe specification of this method matches that ofFileContext.delete(Path, boolean)except that Path f must be for this file system.booleanImplement the delete(Path, boolean) in checksum file system.booleanDelete a file.booleanDeprecated.UseFileSystem.delete(Path, boolean)instead.abstract booleanDelete a file.booleanDelete a filebooleanDelete the given path to a file or directory.booleanFileContext.deleteOnExit(Path f) Mark a path to be deleted on JVM shutdown.booleanFileSystem.deleteOnExit(Path f) Mark a path to be deleted when its FileSystem is closed.voidAbstractFileSystem.deleteSnapshot(Path snapshotDir, String snapshotName) The specification of this method matches that ofFileContext.deleteSnapshot(Path, String).voidFileContext.deleteSnapshot(Path path, String snapshotName) Delete a snapshot of a directory.voidFileSystem.deleteSnapshot(Path path, String snapshotName) Delete a snapshot of a directory.voidFilterFileSystem.deleteSnapshot(Path path, String snapshotName) booleanCheck if a path exists.booleanprotected PathFileSystem.fixRelativePart(Path p) SeeFileContext.fixRelativePart(org.apache.hadoop.fs.Path).static voidFileUtil.fullyDelete(FileSystem fs, Path dir) Deprecated.AbstractFileSystem.getAclStatus(Path path) Gets the ACLs of files and directories.FileContext.getAclStatus(Path path) Gets the ACLs of files and directories.FileSystem.getAclStatus(Path path) Gets the ACL of a file or directory.FilterFileSystem.getAclStatus(Path path) longFileSystem.getBlockSize(Path f) Deprecated.UseFileSystem.getFileStatus(Path)insteadChecksumFileSystem.getChecksumFile(Path file) Return the name of the checksum file associated with a file.longChecksumFileSystem.getChecksumFileLength(Path file, long fileSize) Return the length of the checksum file given the size of the actual file.FileSystem.getContentSummary(Path f) Return theContentSummaryof a givenPath.Trash.getCurrentTrashDir(Path path) TrashPolicy.getCurrentTrashDir(Path path) Get the current trash directory for path specified based on the Trash PolicylongFileSystem.getDefaultBlockSize(Path f) Return the number of bytes that large input files should be optimally be split into to minimize I/O time.longFilterFileSystem.getDefaultBlockSize(Path f) shortFileSystem.getDefaultReplication(Path path) Get the default replication for a path.shortFilterFileSystem.getDefaultReplication(Path f) Get delegation tokens for the file systems accessed for a given path.AbstractFileSystem.getEnclosingRoot(Path path) Return path of the enclosing root for a given path The enclosing root path is a common ancestor that should be used for temp and staging dirs as well as within encryption zones and other restricted directories.FileSystem.getEnclosingRoot(Path path) Return path of the enclosing root for a given path.FilterFileSystem.getEnclosingRoot(Path path) abstract BlockLocation[]AbstractFileSystem.getFileBlockLocations(Path f, long start, long len) The specification of this method matches that ofFileContext.getFileBlockLocations(Path, long, long)except that Path f must be for this file system.FileContext.getFileBlockLocations(Path f, long start, long len) Return blockLocation of the given file for the given offset and len.FileSystem.getFileBlockLocations(Path p, long start, long len) Return an array containing hostnames, offset and size of portions of the given file.abstract FileChecksumAbstractFileSystem.getFileChecksum(Path f) The specification of this method matches that ofFileContext.getFileChecksum(Path)except that Path f must be for this file system.FileContext.getFileChecksum(Path f) Get the checksum of a file.FileSystem.getFileChecksum(Path f) Get the checksum of a file, if the FS supports checksums.FileSystem.getFileChecksum(Path f, long length) Get the checksum of a file, from the beginning of the file till the specific length.FilterFileSystem.getFileChecksum(Path f) FilterFileSystem.getFileChecksum(Path f, long length) AbstractFileSystem.getFileLinkStatus(Path f) The specification of this method matches that ofFileContext.getFileLinkStatus(Path)except that an UnresolvedLinkException may be thrown if a symlink is encountered in the path leading up to the final path component.FileContext.getFileLinkStatus(Path f) Return a file status object that represents the path.FileSystem.getFileLinkStatus(Path f) FilterFileSystem.getFileLinkStatus(Path f) LocalFileSystem.getFileLinkStatus(Path f) RawLocalFileSystem.getFileLinkStatus(Path f) Return a FileStatus representing the given path.abstract FileStatusAbstractFileSystem.getFileStatus(Path f) The specification of this method matches that ofFileContext.getFileStatus(Path)except that an UnresolvedLinkException may be thrown if a symlink is encountered in the path.FileContext.getFileStatus(Path f) Return a file status object that represents the path.abstract FileStatusFileSystem.getFileStatus(Path f) Return a file status object that represents the path.FilterFileSystem.getFileStatus(Path f) Get file status.RawLocalFileSystem.getFileStatus(Path f) protected AbstractFileSystemFileContext.getFSofPath(Path absOrFqPath) Get the file system of supplied path.protected static FileSystemFileSystem.getFSofPath(Path absOrFqPath, Configuration conf) AbstractFileSystem.getFsStatus(Path f) The specification of this method matches that ofFileContext.getFsStatus(Path)except that Path f must be for this file system.FileContext.getFsStatus(Path f) Returns a status object describing the use and capacity of the file system denoted by the Parh argument p.static TrashPolicyTrashPolicy.getInstance(Configuration conf, FileSystem fs, Path home) Deprecated.UseTrashPolicy.getInstance(Configuration, FileSystem)instead.longDeprecated.UseFileSystem.getFileStatus(Path)instead.AbstractFileSystem.getLinkTarget(Path f) Partially resolves the path.FileContext.getLinkTarget(Path f) Returns the target of the given symbolic link as it was specified when the link was created.FileSystem.getLinkTarget(Path f) FilterFileSystem.getLinkTarget(Path f) LocalFileSystem.getLinkTarget(Path f) RawLocalFileSystem.getLinkTarget(Path f) static PathPath.getPathWithoutSchemeAndAuthority(Path path) Return a version of the given Path without the scheme information.FileSystem.getQuotaUsage(Path f) Return theQuotaUsageof a givenPath.shortFileSystem.getReplication(Path src) Deprecated.UseFileSystem.getFileStatus(Path)insteadAbstractFileSystem.getServerDefaults(Path f) Return a set of server default configuration values based on path.FileContext.getServerDefaults(Path path) Return a set of server default configuration values based on path.FileSystem.getServerDefaults(Path p) Return a set of server default configuration values.FilterFileSystem.getServerDefaults(Path f) Returns a status object describing the use and capacity of the filesystem.AbstractFileSystem.getStoragePolicy(Path src) Retrieve the storage policy for a given file or directory.FileContext.getStoragePolicy(Path path) Query the effective storage policy ID for the given file or directory.FileSystem.getStoragePolicy(Path src) Query the effective storage policy ID for the given file or directory.FilterFileSystem.getStoragePolicy(Path src) FileSystem.getTrashRoot(Path path) Get the root directory of Trash for current user when the path specified is deleted.FilterFileSystem.getTrashRoot(Path path) AbstractFileSystem.getUriPath(Path p) Get the path-part of a pathname.longReturn the total size of all files from a specified path.longReturn the total size of all files from a specified path.byte[]Get an xattr for a file or directory.byte[]Get an xattr for a file or directory.byte[]Get an xattr name and value for a file or directory.byte[]Get all of the xattrs for a file or directory.Get all of the xattrs for a file or directory.Get all of the xattrs for a file or directory.Get all of the xattrs for a file or directory.Get all of the xattr name/value pairs for a file or directory.Get all of the xattrs name/value pairs for a file or directory.FileSystem.globStatus(Path pathPattern) Return all the files that match filePattern and are not checksum files.FileSystem.globStatus(Path pathPattern, PathFilter filter) Return an array ofFileStatusobjects whose path names matchpathPatternand is accepted by the user-supplied path filter.final booleanRawLocalFileSystem.handleEmptyDstDirectoryOnWindows(Path src, File srcFile, Path dst, File dstFile) booleanAbstractFileSystem.hasPathCapability(Path path, String capability) booleanChecksumFileSystem.hasPathCapability(Path path, String capability) Disable those operations which the checksummed FS blocks.booleanFileContext.hasPathCapability(Path path, String capability) Return the path capabilities of the bondedAbstractFileSystem.booleanFileSystem.hasPathCapability(Path path, String capability) The base FileSystem implementation generally has no knowledge of the capabilities of actual implementations.booleanFilterFileSystem.hasPathCapability(Path path, String capability) booleanRawLocalFileSystem.hasPathCapability(Path path, String capability) abstract voidTrashPolicy.initialize(Configuration conf, FileSystem fs, Path home) Deprecated.UseTrashPolicy.initialize(Configuration, FileSystem)instead.static booleanChecksumFileSystem.isChecksumFile(Path file) Return true if file is a checksum file name.booleanFileSystem.isDirectory(Path f) Deprecated.UseFileSystem.getFileStatus(Path)insteadbooleanDeprecated.UseFileSystem.getFileStatus(Path)insteadorg.apache.hadoop.fs.RemoteIterator<Path>AbstractFileSystem.listCorruptFileBlocks(Path path) org.apache.hadoop.fs.RemoteIterator<Path>FileContext.listCorruptFileBlocks(Path path) List CorruptFile Blocks.org.apache.hadoop.fs.RemoteIterator<Path>FileSystem.listCorruptFileBlocks(Path path) List corrupted file blocks.org.apache.hadoop.fs.RemoteIterator<Path>FilterFileSystem.listCorruptFileBlocks(Path path) org.apache.hadoop.fs.RemoteIterator<LocatedFileStatus>List the statuses and block locations of the files in the given path.org.apache.hadoop.fs.RemoteIterator<LocatedFileStatus>AbstractFileSystem.listLocatedStatus(Path f) The specification of this method matches that ofFileContext.listLocatedStatus(Path)except that Path f must be for this file system.org.apache.hadoop.fs.RemoteIterator<LocatedFileStatus>ChecksumFileSystem.listLocatedStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.org.apache.hadoop.fs.RemoteIterator<LocatedFileStatus>FileContext.listLocatedStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.org.apache.hadoop.fs.RemoteIterator<LocatedFileStatus>FileSystem.listLocatedStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.protected org.apache.hadoop.fs.RemoteIterator<LocatedFileStatus>FileSystem.listLocatedStatus(Path f, PathFilter filter) List a directory.org.apache.hadoop.fs.RemoteIterator<LocatedFileStatus>FilterFileSystem.listLocatedStatus(Path f) List files and its block locations in a directory.protected org.apache.hadoop.fs.RemoteIterator<LocatedFileStatus>FilterFileSystem.listLocatedStatus(Path f, PathFilter filter) abstract FileStatus[]AbstractFileSystem.listStatus(Path f) The specification of this method matches that ofFileContext.Util.listStatus(Path)except that Path f must be for this file system.ChecksumFileSystem.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.org.apache.hadoop.fs.RemoteIterator<FileStatus>FileContext.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.abstract FileStatus[]FileSystem.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.FileSystem.listStatus(Path[] files) Filter files/directories in the given list of paths using default path filter.FileSystem.listStatus(Path[] files, PathFilter filter) Filter files/directories in the given list of paths using user-supplied path filter.FileSystem.listStatus(Path f, PathFilter filter) Filter files/directories in the given path using the user-supplied path filter.FilterFileSystem.listStatus(Path f) List files in a directory.RawLocalFileSystem.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.protected org.apache.hadoop.fs.FileSystem.DirectoryEntriesFileSystem.listStatusBatch(Path f, byte[] token) Given an opaque iteration token, return the next batch of entries in a directory.org.apache.hadoop.fs.RemoteIterator<FileStatus>AbstractFileSystem.listStatusIterator(Path f) The specification of this method matches that ofFileContext.listStatus(Path)except that Path f must be for this file system.org.apache.hadoop.fs.RemoteIterator<FileStatus>ChecksumFileSystem.listStatusIterator(Path p) org.apache.hadoop.fs.RemoteIterator<FileStatus>FileSystem.listStatusIterator(Path p) Returns a remote iterator so that followup calls are made on demand while consuming the entries.org.apache.hadoop.fs.RemoteIterator<FileStatus>FilterFileSystem.listStatusIterator(Path f) Return a remote iterator for listing in a directoryAbstractFileSystem.listXAttrs(Path path) Get all of the xattr names for a file or directory.FileContext.listXAttrs(Path path) Get all of the xattr names for a file or directory.FileSystem.listXAttrs(Path path) Get all of the xattr names for a file or directory.FilterFileSystem.listXAttrs(Path path) AbstractFileSystem.makeQualified(Path path) Make the path fully qualified to this file systemFileContext.makeQualified(Path path) Make the path fully qualified if it is isn't.FileSystem.makeQualified(Path path) Qualify a path to one which uses this FileSystem and, if relative, made absolute.FilterFileSystem.makeQualified(Path path) Make sure that a path specifies a FileSystem.Returns a qualified path object.static voidFileUtil.maybeIgnoreMissingDirectory(FileSystem fs, Path path, FileNotFoundException e) Method to call after a FNFE has been raised on a treewalk, so as to decide whether to throw the exception (default), or, if the FS supports inconsistent directory listings, to log and ignore it.static PathPath.mergePaths(Path path1, Path path2) Merge 2 paths such that the second path is appended relative to the first.abstract voidAbstractFileSystem.mkdir(Path dir, FsPermission permission, boolean createParent) The specification of this method matches that ofFileContext.mkdir(Path, FsPermission, boolean)except that the Path f must be fully qualified and the permission is absolute (i.e.voidFileContext.mkdir(Path dir, FsPermission permission, boolean createParent) Make(create) a directory and all the non-existent parents.booleanstatic booleanFileSystem.mkdirs(FileSystem fs, Path dir, FsPermission permission) Create a directory with the provided permission.booleanCallFileSystem.mkdirs(Path, FsPermission)with default permission.abstract booleanFileSystem.mkdirs(Path f, FsPermission permission) Make the given file and all non-existent parents into directories.booleanbooleanFilterFileSystem.mkdirs(Path f, FsPermission permission) booleanCreates the specified directory hierarchy.booleanRawLocalFileSystem.mkdirs(Path f, FsPermission permission) protected booleanRawLocalFileSystem.mkOneDirWithMode(Path p, File p2f, FsPermission permission) voidAbstractFileSystem.modifyAclEntries(Path path, List<AclEntry> aclSpec) Modifies ACL entries of files and directories.voidChecksumFileSystem.modifyAclEntries(Path src, List<AclEntry> aclSpec) voidFileContext.modifyAclEntries(Path path, List<AclEntry> aclSpec) Modifies ACL entries of files and directories.voidFileSystem.modifyAclEntries(Path path, List<AclEntry> aclSpec) Modifies ACL entries of files and directories.voidFilterFileSystem.modifyAclEntries(Path path, List<AclEntry> aclSpec) voidFileSystem.moveFromLocalFile(Path[] srcs, Path dst) The src files is on the local disk.voidFileSystem.moveFromLocalFile(Path src, Path dst) The src file is on the local disk.voidRawLocalFileSystem.moveFromLocalFile(Path src, Path dst) static booleanTrash.moveToAppropriateTrash(FileSystem fs, Path p, Configuration conf) In case of the symlinks or mount points, one has to move the appropriate trashbin in the actual volume of the path p being deleted.voidFileSystem.moveToLocalFile(Path src, Path dst) Copy a file to the local filesystem, then delete it from the remote filesystem (if successfully copied).booleanTrash.moveToTrash(Path path) Move a file or directory to the current trash directory.abstract booleanTrashPolicy.moveToTrash(Path path) Move a file or directory to the current trash directory.The specification of this method matches that ofFileContext.open(Path)except that Path f must be for this file system.abstract FSDataInputStreamThe specification of this method matches that ofFileContext.open(Path, int)except that Path f must be for this file system.Opens an FSDataInputStream at the indicated Path.Opens an FSDataInputStream at the indicated Path using default buffersize.Opens an FSDataInputStream at the indicated Path.Opens an FSDataInputStream at the indicated Path.abstract FSDataInputStreamOpens an FSDataInputStream at the indicated Path.Opens an FSDataInputStream at the indicated Path.This is overridden to ensure that this class'sChecksumFileSystem.openFileWithOptions(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.impl.OpenFileParameters)() method is called, and so ultimately itsChecksumFileSystem.open(Path, int).Open a file for reading through a builder API.Open a file for reading through a builder API.AbstractFileSystem.openFileWithOptions(Path path, org.apache.hadoop.fs.impl.OpenFileParameters parameters) Open a file with the given set of options.protected CompletableFuture<FSDataInputStream>ChecksumFileSystem.openFileWithOptions(Path path, org.apache.hadoop.fs.impl.OpenFileParameters parameters) Open the file as a blocking call toChecksumFileSystem.open(Path, int).protected CompletableFuture<FSDataInputStream>FileSystem.openFileWithOptions(Path path, org.apache.hadoop.fs.impl.OpenFileParameters parameters) Execute the actual open file operation.protected CompletableFuture<FSDataInputStream>FilterFileSystem.openFileWithOptions(Path path, org.apache.hadoop.fs.impl.OpenFileParameters parameters) LocalFileSystem.pathToFile(Path path) Convert a path to a File.RawLocalFileSystem.pathToFile(Path path) Convert a path to a File.protected FSDataOutputStreamFileSystem.primitiveCreate(Path f, FsPermission absolutePermission, EnumSet<CreateFlag> flag, int bufferSize, short replication, long blockSize, Progressable progress, org.apache.hadoop.fs.Options.ChecksumOpt checksumOpt) Deprecated.protected FSDataOutputStreamFilterFileSystem.primitiveCreate(Path f, FsPermission absolutePermission, EnumSet<CreateFlag> flag, int bufferSize, short replication, long blockSize, Progressable progress, org.apache.hadoop.fs.Options.ChecksumOpt checksumOpt) protected booleanFileSystem.primitiveMkdir(Path f, FsPermission absolutePermission) Deprecated.protected voidFileSystem.primitiveMkdir(Path f, FsPermission absolutePermission, boolean createParent) Deprecated.protected booleanFilterFileSystem.primitiveMkdir(Path f, FsPermission abdolutePermission) MultipartUploader.putPart(UploadHandle uploadId, int partNumber, boolean isLastPart, Path filePath, InputStream inputStream, long lengthInBytes) Put part as part of a multipart upload.voidRemoves all but the base ACL entries of files and directories.voidvoidRemoves all but the base ACL entries of files and directories.voidRemoves all but the base ACL entries of files and directories.voidvoidAbstractFileSystem.removeAclEntries(Path path, List<AclEntry> aclSpec) Removes ACL entries from files and directories.voidChecksumFileSystem.removeAclEntries(Path src, List<AclEntry> aclSpec) voidFileContext.removeAclEntries(Path path, List<AclEntry> aclSpec) Removes ACL entries from files and directories.voidFileSystem.removeAclEntries(Path path, List<AclEntry> aclSpec) Removes ACL entries from files and directories.voidFilterFileSystem.removeAclEntries(Path path, List<AclEntry> aclSpec) voidAbstractFileSystem.removeDefaultAcl(Path path) Removes all default ACL entries from files and directories.voidChecksumFileSystem.removeDefaultAcl(Path src) voidFileContext.removeDefaultAcl(Path path) Removes all default ACL entries from files and directories.voidFileSystem.removeDefaultAcl(Path path) Removes all default ACL entries from files and directories.voidFilterFileSystem.removeDefaultAcl(Path path) voidAbstractFileSystem.removeXAttr(Path path, String name) Remove an xattr of a file or directory.voidFileContext.removeXAttr(Path path, String name) Remove an xattr of a file or directory.voidFileSystem.removeXAttr(Path path, String name) Remove an xattr of a file or directory.voidFilterFileSystem.removeXAttr(Path path, String name) final voidAbstractFileSystem.rename(Path src, Path dst, Options.Rename... options) The specification of this method matches that ofFileContext.rename(Path, Path, Options.Rename...)except that Path f must be for this file system.booleanRename files/dirsvoidFileContext.rename(Path src, Path dst, Options.Rename... options) Renames Path src to Path dst Fails if src is a file and dst is a directory.abstract booleanRenames Path src to Path dst.protected voidFileSystem.rename(Path src, Path dst, Options.Rename... options) Deprecated.static voidFileUtil.rename(FileSystem srcFs, Path src, Path dst, Options.Rename... options) booleanRenames Path src to Path dst.protected voidFilterFileSystem.rename(Path src, Path dst, Options.Rename... options) booleanabstract voidAbstractFileSystem.renameInternal(Path src, Path dst) The specification of this method matches that ofFileContext.rename(Path, Path, Options.Rename...)except that Path f must be for this file system and NO OVERWRITE is performed.voidAbstractFileSystem.renameInternal(Path src, Path dst, boolean overwrite) The specification of this method matches that ofFileContext.rename(Path, Path, Options.Rename...)except that Path f must be for this file system.voidAbstractFileSystem.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) The specification of this method matches that ofFileContext.renameSnapshot(Path, String, String).voidFileContext.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) Rename a snapshot.voidFileSystem.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) Rename a snapshot.voidFilterFileSystem.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) booleanChecksumFileSystem.reportChecksumFailure(Path f, FSDataInputStream in, long inPos, FSDataInputStream sums, long sumsPos) Report a checksum error to the file system.booleanLocalFileSystem.reportChecksumFailure(Path p, FSDataInputStream in, long inPos, FSDataInputStream sums, long sumsPos) Moves files to a bad file directory on the same device, so that their storage will not be reused.protected PathResolves all symbolic links in the specified path.protected PathFileContext.resolveIntermediate(Path f) Resolves all symbolic links in the specified path leading up to, but not including the final path component.protected PathFileSystem.resolveLink(Path f) protected PathFilterFileSystem.resolveLink(Path f) AbstractFileSystem.resolvePath(Path p) Return the fully-qualified path of path f resolving the path through any internal symlinks or mount pointFileContext.resolvePath(Path f) Resolve the path following any symlinks or mount pointsFileSystem.resolvePath(Path p) Return the fully-qualified path of path, resolving the path through any symlinks or mount point.FilterFileSystem.resolvePath(Path p) voidAbstractFileSystem.satisfyStoragePolicy(Path path) Set the source path to satisfy storage policy.voidFileContext.satisfyStoragePolicy(Path path) Set the source path to satisfy storage policy.voidFileSystem.satisfyStoragePolicy(Path path) Set the source path to satisfy storage policy.voidFilterFileSystem.satisfyStoragePolicy(Path src) voidFully replaces ACL of files and directories, discarding all existing entries.voidvoidFully replaces ACL of files and directories, discarding all existing entries.voidFully replaces ACL of files and directories, discarding all existing entries.voidabstract voidThe specification of this method matches that ofFileContext.setOwner(Path, String, String)except that Path f must be for this file system.voidvoidSet owner of a path (i.e. a file or a directory).voidSet owner of a path (i.e. a file or a directory).voidvoidUse the command chown to set owner.voidabstract voidAbstractFileSystem.setPermission(Path f, FsPermission permission) The specification of this method matches that ofFileContext.setPermission(Path, FsPermission)except that Path f must be for this file system.voidChecksumFileSystem.setPermission(Path src, FsPermission permission) voidFileContext.setPermission(Path f, FsPermission permission) Set permission of a path.voidFileSystem.setPermission(Path p, FsPermission permission) Set permission of a path.voidFilterFileSystem.setPermission(Path p, FsPermission permission) voidRawLocalFileSystem.setPermission(Path p, FsPermission permission) Use the command chmod to set permission.voidSet quota for the givenPath.voidFileSystem.setQuotaByStorageType(Path src, StorageType type, long quota) Set per storage type quota for the givenPath.abstract booleanAbstractFileSystem.setReplication(Path f, short replication) The specification of this method matches that ofFileContext.setReplication(Path, short)except that Path f must be for this file system.booleanChecksumFileSystem.setReplication(Path src, short replication) Set replication for an existing file.booleanFileContext.setReplication(Path f, short replication) Set replication for an existing file.booleanFileSystem.setReplication(Path src, short replication) Set the replication for an existing file.booleanFilterFileSystem.setReplication(Path src, short replication) Set replication for an existing file.voidAbstractFileSystem.setStoragePolicy(Path path, String policyName) Set the storage policy for a given file or directory.voidFileContext.setStoragePolicy(Path path, String policyName) Set the storage policy for a given file or directory.voidFileSystem.setStoragePolicy(Path src, String policyName) Set the storage policy for a given file or directory.voidFilterFileSystem.setStoragePolicy(Path src, String policyName) voidFileStatus.setSymlink(Path p) abstract voidThe specification of this method matches that ofFileContext.setTimes(Path, long, long)except that Path f must be for this file system.voidSet access time of a file.voidSet access time of a file.voidvoidSets thePath's last modified time and last access time to the given valid times.voidFileContext.setVerifyChecksum(boolean verifyChecksum, Path f) Set the verify checksum flag for the file system denoted by the path.voidFileContext.setWorkingDirectory(Path newWDir) Set the working directory for wd-relative names (such a "foo/bar").abstract voidFileSystem.setWorkingDirectory(Path new_dir) Set the current working directory for the given FileSystem.voidFilterFileSystem.setWorkingDirectory(Path newDir) Set the current working directory for the given file system.voidRawLocalFileSystem.setWorkingDirectory(Path newDir) Set the working directory to the given directory.voidSet an xattr of a file or directory.voidAbstractFileSystem.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) Set an xattr of a file or directory.voidSet an xattr of a file or directory.voidFileContext.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) Set an xattr of a file or directory.voidSet an xattr of a file or directory.voidFileSystem.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) Set an xattr of a file or directory.voidvoidFilterFileSystem.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) ChecksumFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) FileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) Returns a local file that the user can write output to.FilterFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) Returns a local File that the user can write output to.RawLocalFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) MultipartUploader.startUpload(Path filePath) Initialize a multipart upload.static Path[]FileUtil.stat2Paths(FileStatus[] stats, Path path) convert an array of FileStatus to an array of Path.booleanThe specification of this method matches that ofFileContext.truncate(Path, long)except that Path f must be for this file system.booleanbooleanTruncate the file in the indicated path to the indicated size.booleanTruncate the file in the indicated path to the indicated size.booleanbooleanvoidAbstractFileSystem.unsetStoragePolicy(Path src) Unset the storage policy set for a given file or directory.voidFileContext.unsetStoragePolicy(Path src) Unset the storage policy set for a given file or directory.voidFileSystem.unsetStoragePolicy(Path src) Unset the storage policy set for a given file or directory.voidFilterFileSystem.unsetStoragePolicy(Path src) static FileContextFileUtil.write(FileContext fileContext, Path path, byte[] bytes) Writes bytes to a file.static FileContextFileUtil.write(FileContext fileContext, Path path, CharSequence charseq) Write a line of text to a file.static FileContextFileUtil.write(FileContext fs, Path path, CharSequence charseq, Charset cs) Write a line of text to a file.static FileContextFileUtil.write(FileContext fileContext, Path path, Iterable<? extends CharSequence> lines, Charset cs) Write lines of text to a file.static FileSystemFileUtil.write(FileSystem fs, Path path, byte[] bytes) Writes bytes to a file.static FileSystemFileUtil.write(FileSystem fs, Path path, CharSequence charseq) Write a line of text to a file.static FileSystemFileUtil.write(FileSystem fs, Path path, CharSequence charseq, Charset cs) Write a line of text to a file.static FileSystemFileUtil.write(FileSystem fs, Path path, Iterable<? extends CharSequence> lines, Charset cs) Write lines of text to a file.Method parameters in org.apache.hadoop.fs with type arguments of type PathModifier and TypeMethodDescriptionorg.apache.hadoop.fs.RemoteIterator<PartialListing<LocatedFileStatus>>BatchListingOperations.batchedListLocatedStatusIterator(List<Path> paths) Batched listing API that returnsPartialListings for the passed Paths.org.apache.hadoop.fs.RemoteIterator<PartialListing<FileStatus>>BatchListingOperations.batchedListStatusIterator(List<Path> paths) Batched listing API that returnsPartialListings for the passed Paths.BulkDelete.bulkDelete(Collection<Path> paths) Delete a list of files/objects.Constructors in org.apache.hadoop.fs with parameters of type PathModifierConstructorDescriptionAvroFSInput(FileContext fc, Path p) Construct given aFileContextand aPath.FileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path path) Constructor for file systems on which symbolic links are not supportedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path) FileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, boolean hasAcl, boolean isEncrypted, boolean isErasureCoded) FileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, Set<FileStatus.AttrFlags> attr) FileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, Path path) protectedFSDataOutputStreamBuilder(FileSystem fileSystem, Path p) Constructor.LocatedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, boolean hasAcl, boolean isEncrypted, boolean isErasureCoded, BlockLocation[] locations) Constructor.LocatedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, Set<FileStatus.AttrFlags> attr, BlockLocation[] locations) Constructor.LocatedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, BlockLocation[] locations) Deprecated.PartialListing(Path listedPath, List<T> partialListing) PartialListing(Path listedPath, org.apache.hadoop.ipc.RemoteException exception) Create a new Path based on the child path resolved against the parent path.Create a new Path based on the child path resolved against the parent path.Create a new Path based on the child path resolved against the parent path. -
Uses of Path in org.apache.hadoop.fs.adl
Methods in org.apache.hadoop.fs.adl that return PathModifier and TypeMethodDescriptionAdlFileSystem.getHomeDirectory()Constructing home directory locally is fine as long as Hadoop local user name and ADL user name relationship story is not fully baked yet.AdlFileSystem.getWorkingDirectory()Get the current working directory for the given file system.Methods in org.apache.hadoop.fs.adl with parameters of type PathModifier and TypeMethodDescriptionvoidChecks if the user can access a path.AdlFileSystem.append(Path f, int bufferSize, Progressable progress) Append to an existing file (optional operation).voidConcat existing files together.AdlFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) Create call semantic is handled differently in case of ADL.AdlFileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) Deprecated.API only for 0.20-appendbooleanDelete a file.AdlFileSystem.getAclStatus(Path path) Gets the ACL of a file or directory.longAdlFileSystem.getBlockSize(Path f) Deprecated.Use getFileStatus() insteadAdlFileSystem.getContentSummary(Path f) Return theContentSummaryof a givenPath.longAdlFileSystem.getDefaultBlockSize(Path f) Return the number of bytes that large input files should be optimally be split into to minimize i/o time.AdlFileSystem.getFileStatus(Path f) Return a file status object that represents the path.shortAdlFileSystem.getReplication(Path src) Deprecated.Use getFileStatus() insteadbooleanAdlFileSystem.hasPathCapability(Path path, String capability) AdlFileSystem.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.booleanAdlFileSystem.mkdirs(Path path, FsPermission permission) Make the given file and all non-existent parents into directories.voidAdlFileSystem.modifyAclEntries(Path path, List<AclEntry> aclSpec) Modifies ACL entries of files and directories.Open call semantic is handled differently in case of ADL.voidRemoves all but the base ACL entries of files and directories.voidAdlFileSystem.removeAclEntries(Path path, List<AclEntry> aclSpec) Removes ACL entries from files and directories.voidAdlFileSystem.removeDefaultAcl(Path path) Removes all default ACL entries from files and directories.booleanRenames Path src to Path dst.voidAdlFileSystem.rename(Path src, Path dst, Options.Rename... options) Deprecated.voidFully replaces ACL of files and directories, discarding all existing entries.voidSet owner of a path (i.e. a file or a directory).voidAdlFileSystem.setPermission(Path path, FsPermission permission) Set permission of a path.booleanAdlFileSystem.setReplication(Path p, short replication) Azure data lake does not support user configuration for data replication hence not leaving system to query on azure data lake.voidAdlFileSystem.setWorkingDirectory(Path dir) Set the current working directory for the given file system. -
Uses of Path in org.apache.hadoop.fs.azure
Methods in org.apache.hadoop.fs.azure that return PathMethods in org.apache.hadoop.fs.azure with parameters of type PathModifier and TypeMethodDescriptionNativeAzureFileSystem.append(Path path, int i, Progressable progressable) Deprecated.NativeAzureFileSystem.create(Path path, FsPermission fsPermission, boolean b, int i, short i1, long l, Progressable progressable) Deprecated.booleanDeprecated.NativeAzureFileSystem.getFileStatus(Path path) Deprecated.NativeAzureFileSystem.listStatus(Path path) Deprecated.booleanNativeAzureFileSystem.mkdirs(Path path, FsPermission fsPermission) Deprecated.Deprecated.booleanDeprecated.voidNativeAzureFileSystem.setWorkingDirectory(Path path) Deprecated. -
Uses of Path in org.apache.hadoop.fs.azurebfs
Methods in org.apache.hadoop.fs.azurebfs with parameters of type PathModifier and TypeMethodDescriptionvoidAzureBlobFileSystemStore.access(Path path, FsAction mode, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) voidAzureBlobFileSystemStore.breakLease(Path path, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) Break any current lease on an ABFS file.voidAzureBlobFileSystemStore.createDirectory(Path path, FsPermission permission, FsPermission umask, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) Creates a directory.AzureBlobFileSystemStore.createFile(Path path, org.apache.hadoop.fs.FileSystem.Statistics statistics, boolean overwrite, FsPermission permission, FsPermission umask, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) AzureBlobFileSystemStore.createNonRecursive(Path path, org.apache.hadoop.fs.FileSystem.Statistics statistics, boolean overwrite, FsPermission permission, FsPermission umask, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) Checks existence of parent of the given path.voidAzureBlobFileSystemStore.delete(Path path, boolean recursive, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) AzureBlobFileSystemStore.getAclStatus(Path path, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) AzureBlobFileSystemStore.getFileStatus(Path path, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) AzureBlobFileSystemStore.getPathStatus(Path path, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) AzureBlobFileSystemStore.getRelativePath(Path path) AzureBlobFileSystemStore.listStatus(Path path, String startFrom, List<FileStatus> fileStatuses, boolean fetchAll, String continuation, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) AzureBlobFileSystemStore.listStatus(Path path, String startFrom, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) AzureBlobFileSystemStore.listStatus(Path path, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) voidAzureBlobFileSystemStore.modifyAclEntries(Path path, List<AclEntry> aclSpec, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) org.apache.hadoop.fs.azurebfs.services.AbfsInputStreamAzureBlobFileSystemStore.openFileForRead(Path path, Optional<org.apache.hadoop.fs.impl.OpenFileParameters> parameters, org.apache.hadoop.fs.FileSystem.Statistics statistics, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) org.apache.hadoop.fs.azurebfs.services.AbfsInputStreamAzureBlobFileSystemStore.openFileForRead(Path path, org.apache.hadoop.fs.FileSystem.Statistics statistics, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) AzureBlobFileSystemStore.openFileForWrite(Path path, org.apache.hadoop.fs.FileSystem.Statistics statistics, boolean overwrite, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) voidAzureBlobFileSystemStore.removeAcl(Path path, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) voidAzureBlobFileSystemStore.removeAclEntries(Path path, List<AclEntry> aclSpec, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) voidAzureBlobFileSystemStore.removeDefaultAcl(Path path, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) booleanAzureBlobFileSystemStore.rename(Path source, Path destination, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext, String sourceEtag) Rename a file or directory.voidAzureBlobFileSystemStore.setAcl(Path path, List<AclEntry> aclSpec, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) voidAzureBlobFileSystemStore.setOwner(Path path, String owner, String group, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) voidAzureBlobFileSystemStore.setPathProperties(Path path, Hashtable<String, String> properties, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) voidAzureBlobFileSystemStore.setPermission(Path path, FsPermission permission, org.apache.hadoop.fs.azurebfs.utils.TracingContext tracingContext) -
Uses of Path in org.apache.hadoop.fs.azurebfs.commit
Methods in org.apache.hadoop.fs.azurebfs.commit with parameters of type PathModifier and TypeMethodDescriptionAzureManifestCommitterFactory.createOutputCommitter(Path outputPath, TaskAttemptContext context) -
Uses of Path in org.apache.hadoop.fs.ftp
Methods in org.apache.hadoop.fs.ftp that return PathModifier and TypeMethodDescriptionFTPFileSystem.getHomeDirectory()FTPFileSystem.getWorkingDirectory()Methods in org.apache.hadoop.fs.ftp with parameters of type PathModifier and TypeMethodDescriptionFTPFileSystem.append(Path f, int bufferSize, Progressable progress) This optional operation is not yet supported.FTPFileSystem.create(Path file, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) A stream obtained via this call must be closed before using other APIs of this class or else the invocation will block.booleanFTPFileSystem.getFileStatus(Path file) FTPFileSystem.listStatus(Path file) booleanFTPFileSystem.mkdirs(Path file, FsPermission permission) booleanvoidFTPFileSystem.setWorkingDirectory(Path newDir) -
Uses of Path in org.apache.hadoop.fs.impl
Methods in org.apache.hadoop.fs.impl that return PathModifier and TypeMethodDescriptionAbstractFSBuilderImpl.getPath()Get the path: only valid if constructed with a path.Methods in org.apache.hadoop.fs.impl that return types with arguments of type PathModifier and TypeMethodDescriptionAbstractFSBuilderImpl.getOptionalPath()Get the optional path; may be empty.Constructors in org.apache.hadoop.fs.impl with parameters of type PathModifierConstructorDescriptionprotectedAbstractFSBuilderImpl(Path path) protectedFutureDataInputStreamBuilderImpl(FileContext fc, Path path) Construct from aFileContext.protectedFutureDataInputStreamBuilderImpl(FileSystem fileSystem, Path path) Constructor.protectedConstruct from aFileContext.protectedMultipartUploaderBuilderImpl(FileSystem fileSystem, Path p) Constructor.Constructor parameters in org.apache.hadoop.fs.impl with type arguments of type PathModifierConstructorDescriptionprotectedAbstractFSBuilderImpl(Optional<Path> optionalPath, Optional<PathHandle> optionalPathHandle) Constructor with both optional path and path handle. -
Uses of Path in org.apache.hadoop.fs.s3a.commit.magic
Methods in org.apache.hadoop.fs.s3a.commit.magic that return PathModifier and TypeMethodDescriptionprotected final PathMagicS3GuardCommitter.getBaseTaskAttemptPath(TaskAttemptContext context) protected final PathMagicS3GuardCommitter.getJobAttemptPath(int appAttemptId) Compute the path where the output of a given job attempt will be placed.protected PathMagicS3GuardCommitter.getJobPath()Compute the path under which all job attempts will be placed.final PathMagicS3GuardCommitter.getTaskAttemptPath(TaskAttemptContext context) Compute the path where the output of a task attempt is stored until that task is committed.MagicS3GuardCommitter.getTempTaskAttemptPath(TaskAttemptContext context) Get a temporary directory for data.Constructors in org.apache.hadoop.fs.s3a.commit.magic with parameters of type PathModifierConstructorDescriptionMagicS3GuardCommitter(Path outputPath, TaskAttemptContext context) Create a task committer. -
Uses of Path in org.apache.hadoop.fs.viewfs
Methods in org.apache.hadoop.fs.viewfs that return PathModifier and TypeMethodDescriptionViewFileSystem.createSnapshot(Path path, String snapshotName) ViewFs.createSnapshot(Path path, String snapshotName) ViewFileSystem.getEnclosingRoot(Path path) ViewFileSystem.getHomeDirectory()ViewFs.getHomeDirectory()ViewFileSystem.getLinkTarget(Path path) ViewFs.getLinkTarget(Path f) ViewFileSystem.getTrashRoot(Path path) Get the trash root directory for current user when the path specified is deleted.ViewFileSystem.getWorkingDirectory()ViewFileSystem.resolvePath(Path f) ViewFs.resolvePath(Path f) Methods in org.apache.hadoop.fs.viewfs with parameters of type PathModifier and TypeMethodDescriptionvoidvoidViewFileSystem.append(Path f, int bufferSize, Progressable progress) ViewFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) ViewFs.createInternal(Path f, EnumSet<CreateFlag> flag, FsPermission absolutePermission, int bufferSize, short replication, long blockSize, Progressable progress, org.apache.hadoop.fs.Options.ChecksumOpt checksumOpt, boolean createParent) ViewFileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) ViewFileSystem.createSnapshot(Path path, String snapshotName) ViewFs.createSnapshot(Path path, String snapshotName) voidViewFs.createSymlink(Path target, Path link, boolean createParent) booleanbooleanbooleanvoidViewFileSystem.deleteSnapshot(Path path, String snapshotName) voidViewFs.deleteSnapshot(Path path, String snapshotName) ViewFileSystem.getAclStatus(Path path) ViewFs.getAclStatus(Path path) ViewFileSystem.getContentSummary(Path f) longViewFileSystem.getDefaultBlockSize(Path f) shortViewFileSystem.getDefaultReplication(Path f) ViewFileSystem.getEnclosingRoot(Path path) ViewFs.getFileBlockLocations(Path f, long start, long len) ViewFileSystem.getFileChecksum(Path f) ViewFileSystem.getFileChecksum(Path f, long length) ViewFs.getFileChecksum(Path f) ViewFs.getFileLinkStatus(Path f) ViewFileSystem.getFileStatus(Path f) Return a file status object that represents the path.ViewFs.getFileStatus(Path f) The specification of this method matches that ofFileContext.getFileStatus(Path)except that an UnresolvedLinkException may be thrown if a symlink is encountered in the path.ViewFileSystem.getLinkTarget(Path path) ViewFs.getLinkTarget(Path f) ViewFileSystem.getQuotaUsage(Path f) ViewFileSystem.getServerDefaults(Path f) ViewFs.getServerDefaults(Path f) ViewFileSystemUtil.getStatus(FileSystem fileSystem, Path path) Get FsStatus for all ViewFsMountPoints matching path for the given ViewFileSystem.ViewFileSystem.getStoragePolicy(Path src) ViewFs.getStoragePolicy(Path src) Retrieve the storage policy for a given file or directory.ViewFileSystem.getTrashRoot(Path path) Get the trash root directory for current user when the path specified is deleted.byte[]byte[]booleanViewFileSystem.hasPathCapability(Path path, String capability) Reject the concat operation; forward the rest to the viewed FS.org.apache.hadoop.fs.RemoteIterator<LocatedFileStatus>ViewFileSystem.listLocatedStatus(Path f, PathFilter filter) org.apache.hadoop.fs.RemoteIterator<LocatedFileStatus>ViewFs.listLocatedStatus(Path f) ViewFileSystem.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.ViewFs.listStatus(Path f) The specification of this method matches that ofFileContext.Util.listStatus(Path)except that Path f must be for this file system.org.apache.hadoop.fs.RemoteIterator<FileStatus>ViewFs.listStatusIterator(Path f) ViewFileSystem.listXAttrs(Path path) ViewFs.listXAttrs(Path path) voidViewFs.mkdir(Path dir, FsPermission permission, boolean createParent) booleanbooleanViewFileSystem.mkdirs(Path dir, FsPermission permission) voidViewFileSystem.modifyAclEntries(Path path, List<AclEntry> aclSpec) voidViewFs.modifyAclEntries(Path path, List<AclEntry> aclSpec) voidvoidvoidViewFileSystem.removeAclEntries(Path path, List<AclEntry> aclSpec) voidViewFs.removeAclEntries(Path path, List<AclEntry> aclSpec) voidViewFileSystem.removeDefaultAcl(Path path) voidViewFs.removeDefaultAcl(Path path) voidViewFileSystem.removeXAttr(Path path, String name) voidViewFs.removeXAttr(Path path, String name) booleanvoidViewFs.renameInternal(Path src, Path dst) voidViewFs.renameInternal(Path src, Path dst, boolean overwrite) voidViewFileSystem.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) voidViewFs.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) ViewFileSystem.resolvePath(Path f) ViewFs.resolvePath(Path f) voidViewFileSystem.satisfyStoragePolicy(Path src) voidViewFs.satisfyStoragePolicy(Path path) voidvoidvoidvoidvoidViewFileSystem.setPermission(Path f, FsPermission permission) voidViewFs.setPermission(Path f, FsPermission permission) booleanViewFileSystem.setReplication(Path f, short replication) booleanViewFs.setReplication(Path f, short replication) voidViewFileSystem.setStoragePolicy(Path src, String policyName) voidViewFs.setStoragePolicy(Path path, String policyName) voidvoidvoidViewFileSystem.setWorkingDirectory(Path new_dir) voidViewFileSystem.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) voidViewFs.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) booleanbooleanvoidViewFileSystem.unsetStoragePolicy(Path src) voidViewFs.unsetStoragePolicy(Path src) Constructors in org.apache.hadoop.fs.viewfs with parameters of type Path -
Uses of Path in org.apache.hadoop.hdfs.client
Methods in org.apache.hadoop.hdfs.client that return PathModifier and TypeMethodDescriptionHdfsAdmin.provisionSnapshotTrash(Path path) Provision a trash directory for a given snapshottable directory.Methods in org.apache.hadoop.hdfs.client with parameters of type PathModifier and TypeMethodDescriptionvoidHdfsAdmin.allowSnapshot(Path path) Allow snapshot on a directory.voidHdfsAdmin.clearQuota(Path src) Clear the namespace quota (count of files, directories and sym links) for a directory.voidHdfsAdmin.clearQuotaByStorageType(Path src, StorageType type) Clear the space quota by storage type for a directory.voidHdfsAdmin.clearSpaceQuota(Path src) Clear the storage space quota (size of files) for a directory.voidHdfsAdmin.createEncryptionZone(Path path, String keyName) Deprecated.voidHdfsAdmin.createEncryptionZone(Path path, String keyName, EnumSet<CreateEncryptionZoneFlag> flags) Create an encryption zone rooted at an empty existing directory, using the specified encryption key.voidHdfsAdmin.disallowSnapshot(Path path) Disallow snapshot on a directory.HdfsAdmin.getEncryptionZoneForPath(Path path) Get the path of the encryption zone for a given file or directory.org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyHdfsAdmin.getErasureCodingPolicy(Path path) Get the erasure coding policy information for the specified pathorg.apache.hadoop.fs.FileEncryptionInfoHdfsAdmin.getFileEncryptionInfo(Path path) Returns the FileEncryptionInfo on the HdfsFileStatus for the given path.HdfsAdmin.getStoragePolicy(Path src) Query the effective storage policy ID for the given file or directory.voidHdfsAdmin.provisionEncryptionZoneTrash(Path path) Provision a trash directory for a given encryption zone.HdfsAdmin.provisionSnapshotTrash(Path path) Provision a trash directory for a given snapshottable directory.voidHdfsAdmin.reencryptEncryptionZone(Path zone, HdfsConstants.ReencryptAction action) Performs re-encryption action for a given encryption zone.voidHdfsAdmin.satisfyStoragePolicy(Path path) Set the source path to the specified storage policy.voidHdfsAdmin.setErasureCodingPolicy(Path path, String ecPolicyName) Set the source path to the specified erasure coding policy.voidSet the namespace quota (count of files, directories, and sym links) for a directory.voidHdfsAdmin.setQuotaByStorageType(Path src, StorageType type, long quota) Set the quota by storage type for a directory.voidHdfsAdmin.setSpaceQuota(Path src, long spaceQuota) Set the storage space quota (size of files) for a directory.voidHdfsAdmin.setStoragePolicy(Path src, String policyName) Set the source path to the specified storage policy.voidHdfsAdmin.unsetErasureCodingPolicy(Path path) Unset erasure coding policy from the directory.voidHdfsAdmin.unsetStoragePolicy(Path src) Unset the storage policy set for a given file or directory. -
Uses of Path in org.apache.hadoop.hdfs.protocol
Methods in org.apache.hadoop.hdfs.protocol that return Path -
Uses of Path in org.apache.hadoop.hdfs.server.common
Constructors in org.apache.hadoop.hdfs.server.common with parameters of type PathModifierConstructorDescriptionFileRegion(long blockId, Path path, long offset, long length) FileRegion(long blockId, Path path, long offset, long length, long genStamp) FileRegion(long blockId, Path path, long offset, long length, long genStamp, byte[] nonce) -
Uses of Path in org.apache.hadoop.hdfs.server.common.blockaliasmap.impl
Methods in org.apache.hadoop.hdfs.server.common.blockaliasmap.impl with parameters of type PathModifier and TypeMethodDescriptionstatic StringTextFileRegionAliasMap.blockPoolIDFromFileName(Path file) -
Uses of Path in org.apache.hadoop.hdfs.server.namenode
Constructors in org.apache.hadoop.hdfs.server.namenode with parameters of type Path -
Uses of Path in org.apache.hadoop.io
Methods in org.apache.hadoop.io with parameters of type PathModifier and TypeMethodDescriptionstatic org.apache.hadoop.io.SequenceFile.WriterSequenceFile.createWriter(FileContext fc, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType, CompressionCodec codec, org.apache.hadoop.io.SequenceFile.Metadata metadata, EnumSet<CreateFlag> createFlag, org.apache.hadoop.fs.Options.CreateOpts... opts) Construct the preferred type of SequenceFile Writer.static org.apache.hadoop.io.SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass) Deprecated.static org.apache.hadoop.io.SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, int bufferSize, short replication, long blockSize, boolean createParent, SequenceFile.CompressionType compressionType, CompressionCodec codec, org.apache.hadoop.io.SequenceFile.Metadata metadata) Deprecated.static org.apache.hadoop.io.SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, int bufferSize, short replication, long blockSize, SequenceFile.CompressionType compressionType, CompressionCodec codec, Progressable progress, org.apache.hadoop.io.SequenceFile.Metadata metadata) Deprecated.static org.apache.hadoop.io.SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType) Deprecated.static org.apache.hadoop.io.SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType, CompressionCodec codec) Deprecated.static org.apache.hadoop.io.SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType, CompressionCodec codec, Progressable progress) Deprecated.static org.apache.hadoop.io.SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType, CompressionCodec codec, Progressable progress, org.apache.hadoop.io.SequenceFile.Metadata metadata) Deprecated.static org.apache.hadoop.io.SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType, Progressable progress) Deprecated.static longMapFile.fix(FileSystem fs, Path dir, Class<? extends Writable> keyClass, Class<? extends Writable> valueClass, boolean dryrun, Configuration conf) This method attempts to fix a corrupt MapFile by re-creating its index. -
Uses of Path in org.apache.hadoop.io.compress
Methods in org.apache.hadoop.io.compress with parameters of type PathModifier and TypeMethodDescriptionFind the relevant compression codec for the given file based on its filename suffix. -
Uses of Path in org.apache.hadoop.io.wrappedio
Methods in org.apache.hadoop.io.wrappedio that return PathModifier and TypeMethodDescriptionstatic PathWrappedIO.fileSystem_getEnclosingRoot(FileSystem fs, Path path) Return path of the enclosing root for a given path.Methods in org.apache.hadoop.io.wrappedio that return types with arguments of type PathModifier and TypeMethodDescriptionWrappedIO.bulkDelete_delete(FileSystem fs, Path base, Collection<Path> paths) Delete a list of files/objects.Methods in org.apache.hadoop.io.wrappedio with parameters of type PathModifier and TypeMethodDescriptionWrappedIO.bulkDelete_delete(FileSystem fs, Path base, Collection<Path> paths) Delete a list of files/objects.static intWrappedIO.bulkDelete_pageSize(FileSystem fs, Path path) Get the maximum number of objects/files to delete in a single request.static PathWrappedIO.fileSystem_getEnclosingRoot(FileSystem fs, Path path) Return path of the enclosing root for a given path.static FSDataInputStreamWrappedIO.fileSystem_openFile(FileSystem fs, Path path, String policy, FileStatus status, Long length, Map<String, String> options) OpenFile assistant, easy reflection-based access toFileSystem.openFile(Path)and blocks awaiting the operation completion.static SerializableWrappedStatistics.iostatisticsSnapshot_load(FileSystem fs, Path path) Load IOStatisticsSnapshot from a Hadoop filesystem.static voidWrappedStatistics.iostatisticsSnapshot_save(Serializable snapshot, FileSystem fs, Path path, boolean overwrite) Save IOStatisticsSnapshot to a Hadoop filesystem as a JSON file.static booleanWrappedIO.pathCapabilities_hasPathCapability(Object fs, Path path, String capability) Does a path have a given capability?Method parameters in org.apache.hadoop.io.wrappedio with type arguments of type PathModifier and TypeMethodDescriptionWrappedIO.bulkDelete_delete(FileSystem fs, Path base, Collection<Path> paths) Delete a list of files/objects. -
Uses of Path in org.apache.hadoop.mapred
Methods in org.apache.hadoop.mapred that return PathModifier and TypeMethodDescriptionstatic Path[]FileInputFormat.getInputPaths(JobConf conf) Get the list of inputPaths for the map-reduce job.JobConf.getLocalPath(String pathString) Constructs a local file name.static PathFileOutputFormat.getOutputPath(JobConf conf) Get thePathto the output directory for the map-reduce job.FileSplit.getPath()The file containing this split's data.static PathFileOutputFormat.getPathForCustomFile(JobConf conf, String name) Helper function to generate aPathfor a file that is unique for the task within the job output directory.static PathSkipBadRecords.getSkipOutputPath(Configuration conf) Get the directory to which skipped records are written.JobClient.getStagingAreaDir()Fetch the staging area directory for the applicationJobClient.getSystemDir()Grab the jobtracker system directory path where job-specific files are to be placed.FileOutputCommitter.getTaskAttemptPath(TaskAttemptContext context) static PathFileOutputFormat.getTaskOutputPath(JobConf conf, String name) Helper function to create the task's temporary output directory and return the path to the task's output file.JobConf.getWorkingDirectory()Get the current working directory for the default file system.static PathFileOutputFormat.getWorkOutputPath(JobConf conf) Get thePathto the task's temporary output directory for the map-reduce job Tasks' Side-Effect FilesFileOutputCommitter.getWorkPath(TaskAttemptContext context, Path outputPath) Methods in org.apache.hadoop.mapred with parameters of type PathModifier and TypeMethodDescriptionbooleanstatic voidFileInputFormat.addInputPath(JobConf conf, Path path) Add aPathto the list of inputs for the map-reduce job.protected voidFileInputFormat.addInputPathRecursively(List<FileStatus> result, FileSystem fs, Path path, PathFilter inputFilter) Add files in the input path recursively into the results.static org.apache.hadoop.io.MapFile.Reader[]MapFileOutputFormat.getReaders(FileSystem ignored, Path dir, Configuration conf) Open the output generated by this format.static org.apache.hadoop.io.SequenceFile.Reader[]SequenceFileOutputFormat.getReaders(Configuration conf, Path dir) Open the output generated by this format.FileOutputCommitter.getWorkPath(TaskAttemptContext context, Path outputPath) static booleanJobClient.isJobDirValid(Path jobDirPath, FileSystem fs) Checks if the job directory is clean and has all the required components for (re) starting the jobprotected booleanFileInputFormat.isSplitable(FileSystem fs, Path filename) Is the given filename splittable?protected booleanFixedLengthInputFormat.isSplitable(FileSystem fs, Path file) protected booleanKeyValueTextInputFormat.isSplitable(FileSystem fs, Path file) protected booleanTextInputFormat.isSplitable(FileSystem fs, Path file) protected FileSplitA factory that makes the split for this class.protected FileSplitFileInputFormat.makeSplit(Path file, long start, long length, String[] hosts, String[] inMemoryHosts) A factory that makes the split for this class.static voidFileInputFormat.setInputPaths(JobConf conf, Path... inputPaths) Set the array ofPaths as the list of inputs for the map-reduce job.static voidFileOutputFormat.setOutputPath(JobConf conf, Path outputDir) Set thePathof the output directory for the map-reduce job.static voidSkipBadRecords.setSkipOutputPath(JobConf conf, Path path) Set the directory to which skipped records are written.voidJobConf.setWorkingDirectory(Path dir) Set the current working directory for the default file system.static voidSet thePathof the task's temporary output directory for the map-reduce job.Constructors in org.apache.hadoop.mapred with parameters of type PathModifierConstructorDescriptionConstructs a split with host informationConstructs a split with host informationDeprecated.Construct a map/reduce configuration.MultiFileSplit(JobConf job, Path[] files, long[] lengths) -
Uses of Path in org.apache.hadoop.mapred.join
Methods in org.apache.hadoop.mapred.join with parameters of type Path -
Uses of Path in org.apache.hadoop.mapred.lib
Methods in org.apache.hadoop.mapred.lib with parameters of type PathModifier and TypeMethodDescriptionstatic voidMultipleInputs.addInputPath(JobConf conf, Path path, Class<? extends InputFormat> inputFormatClass) Add aPathwith a customInputFormatto the list of inputs for the map-reduce job.static voidMultipleInputs.addInputPath(JobConf conf, Path path, Class<? extends InputFormat> inputFormatClass, Class<? extends Mapper> mapperClass) protected static FileSplitNLineInputFormat.createFileSplit(Path fileName, long begin, long length) NLineInputFormat uses LineRecordReader, which always reads (and consumes) at least one character out of its upper split boundary.protected booleanCombineFileInputFormat.isSplitable(FileSystem fs, Path file) protected booleanCombineFileInputFormat.isSplitable(JobContext context, Path file) Subclasses should avoid overriding this method and should instead only overrideCombineFileInputFormat.isSplitable(FileSystem, Path).static voidTotalOrderPartitioner.setPartitionFile(JobConf job, Path p) Deprecated.Constructors in org.apache.hadoop.mapred.lib with parameters of type PathModifierConstructorDescriptionCombineFileSplit(JobConf job, Path[] files, long[] lengths) CombineFileSplit(JobConf job, Path[] files, long[] start, long[] lengths, String[] locations) -
Uses of Path in org.apache.hadoop.mapreduce
Methods in org.apache.hadoop.mapreduce that return PathModifier and TypeMethodDescriptionPath[]JobContext.getArchiveClassPaths()Get the archive entries in classpath as an array of PathPath[]JobContext.getFileClassPaths()Get the file entries in classpath as an array of PathPath[]JobContext.getLocalCacheArchives()Deprecated.the array returned only includes the items the were downloaded.Path[]JobContext.getLocalCacheFiles()Deprecated.the array returned only includes the items the were downloaded.Cluster.getStagingAreaDir()Grab the jobtracker's view of the staging directory path where job-specific files will be placed.Cluster.getSystemDir()Grab the jobtracker system directory path where job-specific files will be placed.JobContext.getWorkingDirectory()Get the current working directory for the default file system.Methods in org.apache.hadoop.mapreduce with parameters of type PathModifier and TypeMethodDescriptionvoidJob.addArchiveToClassPath(Path archive) Add an archive path to the current set of classpath entries.static voidJob.addArchiveToClassPath(Path archive, Configuration conf, FileSystem fs) Add an archive path to the current set of classpath entries.voidJob.addFileToClassPath(Path file) Add an file path to the current set of classpath entries It adds the file to cache as well.static voidJob.addFileToClassPath(Path file, Configuration conf, FileSystem fs) Add a file path to the current set of classpath entries.static voidJob.addFileToClassPath(Path file, Configuration conf, FileSystem fs, boolean addToCache) Add a file path to the current set of classpath entries.voidJob.setWorkingDirectory(Path dir) Set the current working directory for the default file system. -
Uses of Path in org.apache.hadoop.mapreduce.lib.input
Methods in org.apache.hadoop.mapreduce.lib.input that return PathModifier and TypeMethodDescriptionstatic Path[]FileInputFormat.getInputPaths(JobContext context) Get the list of inputPaths for the map-reduce job.CombineFileSplit.getPath(int i) Returns the ith PathFileSplit.getPath()The file containing this split's data.Path[]CombineFileSplit.getPaths()Returns all the Paths in the splitMethods in org.apache.hadoop.mapreduce.lib.input with parameters of type PathModifier and TypeMethodDescriptionstatic voidFileInputFormat.addInputPath(Job job, Path path) Add aPathto the list of inputs for the map-reduce job.static voidMultipleInputs.addInputPath(Job job, Path path, Class<? extends InputFormat> inputFormatClass) Add aPathwith a customInputFormatto the list of inputs for the map-reduce job.static voidMultipleInputs.addInputPath(Job job, Path path, Class<? extends InputFormat> inputFormatClass, Class<? extends Mapper> mapperClass) protected voidFileInputFormat.addInputPathRecursively(List<FileStatus> result, FileSystem fs, Path path, PathFilter inputFilter) Add files in the input path recursively into the results.protected static FileSplitNLineInputFormat.createFileSplit(Path fileName, long begin, long length) NLineInputFormat uses LineRecordReader, which always reads (and consumes) at least one character out of its upper split boundary.protected booleanCombineFileInputFormat.isSplitable(JobContext context, Path file) protected booleanFileInputFormat.isSplitable(JobContext context, Path filename) Is the given filename splittable?protected booleanFixedLengthInputFormat.isSplitable(JobContext context, Path file) protected booleanKeyValueTextInputFormat.isSplitable(JobContext context, Path file) protected booleanTextInputFormat.isSplitable(JobContext context, Path file) protected FileSplitA factory that makes the split for this class.protected FileSplitFileInputFormat.makeSplit(Path file, long start, long length, String[] hosts, String[] inMemoryHosts) A factory that makes the split for this class.static voidFileInputFormat.setInputPaths(Job job, Path... inputPaths) Set the array ofPaths as the list of inputs for the map-reduce job.Constructors in org.apache.hadoop.mapreduce.lib.input with parameters of type PathModifierConstructorDescriptionCombineFileSplit(Path[] files, long[] lengths) CombineFileSplit(Path[] files, long[] start, long[] lengths, String[] locations) Constructs a split with host informationConstructs a split with host and cached-blocks information -
Uses of Path in org.apache.hadoop.mapreduce.lib.join
Methods in org.apache.hadoop.mapreduce.lib.join with parameters of type Path -
Uses of Path in org.apache.hadoop.mapreduce.lib.output
Methods in org.apache.hadoop.mapreduce.lib.output that return PathModifier and TypeMethodDescriptionprotected PathFileOutputCommitter.getCommittedTaskPath(int appAttemptId, TaskAttemptContext context) Compute the path where the output of a committed task is stored until the entire job is committed for a specific application attempt.FileOutputCommitter.getCommittedTaskPath(TaskAttemptContext context) Compute the path where the output of a committed task is stored until the entire job is committed.static PathFileOutputCommitter.getCommittedTaskPath(TaskAttemptContext context, Path out) PartialFileOutputCommitter.getCommittedTaskPath(int appAttemptId, TaskAttemptContext context) FileOutputFormat.getDefaultWorkFile(TaskAttemptContext context, String extension) Get the default path and filename for the output format.protected PathFileOutputCommitter.getJobAttemptPath(int appAttemptId) Compute the path where the output of a given job attempt will be placed.FileOutputCommitter.getJobAttemptPath(JobContext context) Compute the path where the output of a given job attempt will be placed.static PathFileOutputCommitter.getJobAttemptPath(JobContext context, Path out) Compute the path where the output of a given job attempt will be placed.BindingPathOutputCommitter.getOutputPath()FileOutputCommitter.getOutputPath()static PathFileOutputFormat.getOutputPath(JobContext job) Get thePathto the output directory for the map-reduce job.abstract PathPathOutputCommitter.getOutputPath()Get the final directory where work will be placed once the job is committed.static PathFileOutputFormat.getPathForWorkFile(TaskInputOutputContext<?, ?, ?, ?> context, String name, String extension) Helper function to generate aPathfor a file that is unique for the task within the job output directory.FileOutputCommitter.getTaskAttemptPath(TaskAttemptContext context) Compute the path where the output of a task attempt is stored until that task is committed.static PathFileOutputCommitter.getTaskAttemptPath(TaskAttemptContext context, Path out) Compute the path where the output of a task attempt is stored until that task is committed.static PathFileOutputFormat.getWorkOutputPath(TaskInputOutputContext<?, ?, ?, ?> context) Get thePathto the task's temporary output directory for the map-reduce job Tasks' Side-Effect FilesBindingPathOutputCommitter.getWorkPath()FileOutputCommitter.getWorkPath()Get the directory that the task should write results into.abstract PathPathOutputCommitter.getWorkPath()Get the directory that the task should write results into.Methods in org.apache.hadoop.mapreduce.lib.output with parameters of type PathModifier and TypeMethodDescriptionvoidFileOutputCommitter.abortTask(TaskAttemptContext context, Path taskAttemptPath) voidFileOutputCommitter.commitTask(TaskAttemptContext context, Path taskAttemptPath) static PathOutputCommitterPathOutputCommitterFactory.createCommitter(Path outputPath, TaskAttemptContext context) Create the committer factory for a task attempt and destination, then create the committer from it.protected final PathOutputCommitterPathOutputCommitterFactory.createFileOutputCommitter(Path outputPath, TaskAttemptContext context) Create an instance of the default committer, aFileOutputCommitterfor a task.PathOutputCommitterFactory.createOutputCommitter(Path outputPath, TaskAttemptContext context) Create an output committer for a task attempt.static PathFileOutputCommitter.getCommittedTaskPath(TaskAttemptContext context, Path out) static PathOutputCommitterFactoryPathOutputCommitterFactory.getCommitterFactory(Path outputPath, Configuration conf) Get the committer factory for a configuration.static PathFileOutputCommitter.getJobAttemptPath(JobContext context, Path out) Compute the path where the output of a given job attempt will be placed.static org.apache.hadoop.io.MapFile.Reader[]MapFileOutputFormat.getReaders(Path dir, Configuration conf) Open the output generated by this format.static PathFileOutputCommitter.getTaskAttemptPath(TaskAttemptContext context, Path out) Compute the path where the output of a task attempt is stored until that task is committed.booleanFileOutputCommitter.needsTaskCommit(TaskAttemptContext context, Path taskAttemptPath) static voidFileOutputFormat.setOutputPath(Job job, Path outputDir) Set thePathof the output directory for the map-reduce job.Constructors in org.apache.hadoop.mapreduce.lib.output with parameters of type PathModifierConstructorDescriptionBindingPathOutputCommitter(Path outputPath, TaskAttemptContext context) Instantiate.FileOutputCommitter(Path outputPath, JobContext context) Create a file output committerFileOutputCommitter(Path outputPath, TaskAttemptContext context) Create a file output committerPartialFileOutputCommitter(Path outputPath, JobContext context) PartialFileOutputCommitter(Path outputPath, TaskAttemptContext context) protectedPathOutputCommitter(Path outputPath, JobContext context) Constructor for a job attempt.protectedPathOutputCommitter(Path outputPath, TaskAttemptContext context) Constructor for a task attempt. -
Uses of Path in org.apache.hadoop.mapreduce.lib.output.committer.manifest
Methods in org.apache.hadoop.mapreduce.lib.output.committer.manifest that return PathModifier and TypeMethodDescriptionManifestCommitter.getJobAttemptPath(JobContext context) Compute the path where the output of a task attempt is stored until that task is committed.ManifestCommitter.getOutputPath()Output path: destination directory of the job.ManifestCommitter.getTaskAttemptPath(TaskAttemptContext context) Compute the path where the output of a task attempt is stored until that task is committed.ManifestCommitter.getTaskManifestPath(TaskAttemptContext context) The path to where the manifest file of a task attempt will be saved when the task is committed.ManifestCommitter.getWorkPath()Work path of the current task attempt.Methods in org.apache.hadoop.mapreduce.lib.output.committer.manifest with parameters of type PathModifier and TypeMethodDescriptionManifestCommitterFactory.createOutputCommitter(Path outputPath, TaskAttemptContext context) Constructors in org.apache.hadoop.mapreduce.lib.output.committer.manifest with parameters of type PathModifierConstructorDescriptionManifestCommitter(Path outputPath, TaskAttemptContext context) Create a committer. -
Uses of Path in org.apache.hadoop.mapreduce.lib.output.committer.manifest.files
Methods in org.apache.hadoop.mapreduce.lib.output.committer.manifest.files that return PathMethods in org.apache.hadoop.mapreduce.lib.output.committer.manifest.files that return types with arguments of type PathModifier and TypeMethodDescriptionManifestSuccessData.getFilenamePaths()Get the list of filenames as paths.Methods in org.apache.hadoop.mapreduce.lib.output.committer.manifest.files with parameters of type PathModifier and TypeMethodDescriptionstatic DirEntryA directory entry.static DirEntryDirEntry.dirEntry(Path dest, org.apache.hadoop.mapreduce.lib.output.committer.manifest.files.EntryStatus type, int level) A directory entry.static ManifestSuccessDataManifestSuccessData.load(FileSystem fs, Path path) Load an instance from a file, then validate it.voidManifestSuccessData.save(FileSystem fs, Path path, boolean overwrite) Method parameters in org.apache.hadoop.mapreduce.lib.output.committer.manifest.files with type arguments of type PathModifier and TypeMethodDescriptionvoidManifestSuccessData.setFilenamePaths(List<Path> paths) Set the list of filename paths.Constructors in org.apache.hadoop.mapreduce.lib.output.committer.manifest.files with parameters of type Path -
Uses of Path in org.apache.hadoop.mapreduce.lib.partition
Methods in org.apache.hadoop.mapreduce.lib.partition with parameters of type PathModifier and TypeMethodDescriptionstatic voidTotalOrderPartitioner.setPartitionFile(Configuration conf, Path p) Set the path to the SequenceFile storing the sorted partition keyset. -
Uses of Path in org.apache.hadoop.mapreduce.security
Methods in org.apache.hadoop.mapreduce.security with parameters of type PathModifier and TypeMethodDescriptionstatic voidTokenCache.obtainTokensForNamenodes(Credentials credentials, Path[] ps, Configuration conf) Convenience method to obtain delegation tokens from namenodes corresponding to the paths passed. -
Uses of Path in org.apache.hadoop.mapreduce.v2.hs
Methods in org.apache.hadoop.mapreduce.v2.hs with parameters of type PathModifier and TypeMethodDescriptionprotected org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.HistoryFileInfoHistoryFileManager.createHistoryFileInfo(Path historyFile, Path confFile, Path summaryFile, org.apache.hadoop.mapreduce.v2.jobhistory.JobIndexInfo jobIndexInfo, boolean isInDone) protected static List<FileStatus>HistoryFileManager.scanDirectory(Path path, FileContext fc, PathFilter pathFilter) protected List<FileStatus>HistoryFileManager.scanDirectoryForHistoryFiles(Path path, FileContext fc) -
Uses of Path in org.apache.hadoop.metrics2.sink
Fields in org.apache.hadoop.metrics2.sink declared as Path -
Uses of Path in org.apache.hadoop.security
Methods in org.apache.hadoop.security with parameters of type PathModifier and TypeMethodDescriptionstatic CredentialsCredentials.readTokenStorageFile(Path filename, Configuration conf) Convenience method for reading a token storage file and loading its Tokens.voidCredentials.writeTokenStorageFile(Path filename, Configuration conf) voidCredentials.writeTokenStorageFile(Path filename, Configuration conf, Credentials.SerializedFormat format) -
Uses of Path in org.apache.hadoop.tools
Methods in org.apache.hadoop.tools that return PathModifier and TypeMethodDescriptionprotected PathDistCp.createInputFileListing(Job job) Create input listing by invoking an appropriate copy listing implementation.DistCpOptions.getAtomicWorkPath()protected PathDistCp.getFileListingPath()Get default name of the copy listing file.DistCpOptions.getLogPath()DistCpOptions.getSourceFileListing()DistCpOptions.getTargetPath()DistCpOptions.getTrackPath()Methods in org.apache.hadoop.tools that return types with arguments of type Path -
Uses of Path in org.apache.hadoop.yarn.api.records
Methods in org.apache.hadoop.yarn.api.records that return PathMethods in org.apache.hadoop.yarn.api.records with parameters of type Path -
Uses of Path in org.apache.hadoop.yarn.client.api
Methods in org.apache.hadoop.yarn.client.api with parameters of type PathModifier and TypeMethodDescriptionabstract StringSharedCacheClient.getFileChecksum(Path sourceFile) A convenience method to calculate the checksum of a specified file. -
Uses of Path in org.apache.hadoop.yarn.logaggregation
Constructors in org.apache.hadoop.yarn.logaggregation with parameters of type Path -
Uses of Path in org.apache.hadoop.yarn.logaggregation.filecontroller
Fields in org.apache.hadoop.yarn.logaggregation.filecontroller declared as PathMethods in org.apache.hadoop.yarn.logaggregation.filecontroller that return PathModifier and TypeMethodDescriptionLogAggregationFileController.getOlderRemoteAppLogDir(ApplicationId appId, String appOwner) Get the older remote application directory for log aggregation.LogAggregationFileController.getRemoteAppLogDir(ApplicationId appId, String appOwner) Get the remote application directory for log aggregation.LogAggregationFileController.getRemoteNodeLogFileForApp(ApplicationId appId, String user, NodeId nodeId) Get the remote aggregated log path.LogAggregationFileController.getRemoteRootLogDir()Get the remote root log directory.Methods in org.apache.hadoop.yarn.logaggregation.filecontroller with parameters of type PathModifier and TypeMethodDescriptionprotected booleanLogAggregationFileController.checkExists(FileSystem fs, Path path, FsPermission fsPerm) protected voidLogAggregationFileController.cleanOldLogs(Path remoteNodeLogFileForApp, NodeId nodeId, UserGroupInformation userUgi) protected voidLogAggregationFileController.createDir(FileSystem fs, Path path, FsPermission fsPerm) abstract Map<ApplicationAccessType,String> LogAggregationFileController.getApplicationAcls(Path aggregatedLogPath, ApplicationId appId) Returns ACLs for the application.abstract StringLogAggregationFileController.getApplicationOwner(Path aggregatedLogPath, ApplicationId appId) Returns the owner of the application. -
Uses of Path in org.apache.hadoop.yarn.service.client
Methods in org.apache.hadoop.yarn.service.client that return PathModifier and TypeMethodDescriptionprotected PathServiceClient.addJarResource(String serviceName, Map<String, LocalResource> localResources) -
Uses of Path in org.apache.hadoop.yarn.util
Methods in org.apache.hadoop.yarn.util that return PathModifier and TypeMethodDescriptionstatic PathConverterUtils.getPathFromYarnURL(URL url) Deprecated.Methods in org.apache.hadoop.yarn.util with parameters of type PathModifier and TypeMethodDescriptionstatic URLConverterUtils.getYarnUrlFromPath(Path path) Deprecated.
makeQualified(URI, Path)