Uses of Class
org.apache.hadoop.fs.permission.FsPermission
Packages that use FsPermission
Package
Description
An abstract file system API.
This package contains implementation classes for use inside
filesystems.
This package provides support for HDFS permission and ACL.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
SFTP FileSystem package.
ViewFileSystem and ViewFileSystemOverloadScheme classes.
Common utilities.
-
Uses of FsPermission in org.apache.hadoop.fs
Fields in org.apache.hadoop.fs declared as FsPermissionModifier and TypeFieldDescriptionstatic final FsPermissionFileContext.DEFAULT_PERMDefault permission for directory and symlink In previous versions, this default permission was also used to create files, so files created end up with ugo+x permission.static final FsPermissionFileContext.DIR_DEFAULT_PERMDefault permission for directorystatic final FsPermissionFileContext.FILE_DEFAULT_PERMDefault permission for fileMethods in org.apache.hadoop.fs that return FsPermissionModifier and TypeMethodDescriptionFileStatus.getPermission()Get FsPermission associated with the file.protected FsPermissionFSDataOutputStreamBuilder.getPermission()FileContext.getUMask()Options.CreateOpts.Perms.getValue()Methods in org.apache.hadoop.fs with parameters of type FsPermissionModifier and TypeMethodDescriptionChecksumFileSystem.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, Options.ChecksumOpt checksumOpt) static FSDataOutputStreamFileSystem.create(FileSystem fs, Path file, FsPermission permission) Create a file with the provided permission.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, Options.ChecksumOpt checksumOpt) Create an FSDataOutputStream at the indicated Path with a custom checksum option.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, Options.ChecksumOpt checksumOpt) HarFileSystem.create(Path f, FsPermission permission, 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) abstract FSDataOutputStreamAbstractFileSystem.createInternal(Path f, EnumSet<CreateFlag> flag, FsPermission absolutePermission, int bufferSize, short replication, long blockSize, Progressable progress, 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.ChecksumFs.createInternal(Path f, EnumSet<CreateFlag> createFlag, FsPermission absolutePermission, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt, boolean createParent) DelegateToFileSystem.createInternal(Path f, EnumSet<CreateFlag> flag, FsPermission absolutePermission, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt, boolean createParent) FilterFs.createInternal(Path f, EnumSet<CreateFlag> flag, FsPermission absolutePermission, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt, boolean createParent) 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, 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.createOutputStreamWithMode(Path f, boolean append, FsPermission permission) 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.voidDelegateToFileSystem.mkdir(Path dir, FsPermission permission, boolean createParent) voidFileContext.mkdir(Path dir, FsPermission permission, boolean createParent) Make(create) a directory and all the non-existent parents.voidFilterFs.mkdir(Path dir, FsPermission permission, boolean createParent) static booleanFileSystem.mkdirs(FileSystem fs, Path dir, FsPermission permission) Create a directory with the provided permission.abstract booleanFileSystem.mkdirs(Path f, FsPermission permission) Make the given file and all non-existent parents into directories.booleanFilterFileSystem.mkdirs(Path f, FsPermission permission) booleanHarFileSystem.mkdirs(Path f, FsPermission permission) not implemented.booleanRawLocalFileSystem.mkdirs(Path f, FsPermission permission) protected booleanRawLocalFileSystem.mkOneDirWithMode(Path p, File p2f, FsPermission permission) FSDataOutputStreamBuilder.permission(FsPermission perm) Set permission for the file.MultipartUploaderBuilder.permission(FsPermission perm) Set permission for the file.static Options.CreateOpts.PermsOptions.CreateOpts.perms(FsPermission perm) protected FSDataOutputStreamFileSystem.primitiveCreate(Path f, FsPermission absolutePermission, EnumSet<CreateFlag> flag, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt) Deprecated.protected FSDataOutputStreamFilterFileSystem.primitiveCreate(Path f, FsPermission absolutePermission, EnumSet<CreateFlag> flag, int bufferSize, short replication, long blockSize, Progressable progress, 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) abstract 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) voidDelegateToFileSystem.setPermission(Path f, FsPermission permission) voidFileContext.setPermission(Path f, FsPermission permission) Set permission of a path.protected voidFileStatus.setPermission(FsPermission permission) Sets permission.voidFileSystem.setPermission(Path p, FsPermission permission) Set permission of a path.static voidFileUtil.setPermission(File f, FsPermission permission) Set permissions to the required value.voidFilterFileSystem.setPermission(Path p, FsPermission permission) voidFilterFs.setPermission(Path f, FsPermission permission) voidHarFileSystem.setPermission(Path p, FsPermission permission) Not implemented.voidRawLocalFileSystem.setPermission(Path p, FsPermission permission) Use the command chmod to set permission.voidFileContext.setUMask(FsPermission newUmask) Set umask to the supplied parameter.Constructors in org.apache.hadoop.fs with parameters of type FsPermissionModifierConstructorDescriptionFileStatus(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) 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.protectedPerms(FsPermission perm) -
Uses of FsPermission in org.apache.hadoop.fs.ftp
Methods in org.apache.hadoop.fs.ftp with parameters of type FsPermissionModifier and TypeMethodDescriptionFTPFileSystem.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.mkdirs(Path file, FsPermission permission) -
Uses of FsPermission in org.apache.hadoop.fs.impl
Methods in org.apache.hadoop.fs.impl that return FsPermissionModifier and TypeMethodDescriptionFileSystemMultipartUploaderBuilder.getPermission()protected FsPermissionMultipartUploaderBuilderImpl.getPermission()Methods in org.apache.hadoop.fs.impl with parameters of type FsPermissionModifier and TypeMethodDescriptionMultipartUploaderBuilderImpl.permission(FsPermission perm) Set permission for the file. -
Uses of FsPermission in org.apache.hadoop.fs.permission
Subclasses of FsPermission in org.apache.hadoop.fs.permissionModifier and TypeClassDescriptionfinal classA class that stores both masked and unmasked create modes and is a drop-in replacement for masked permission.Methods in org.apache.hadoop.fs.permission that return FsPermissionModifier and TypeMethodDescriptionstatic FsPermissionFsCreateModes.applyUMask(FsPermission mode, FsPermission umask) Create from unmasked mode and umask.FsPermission.applyUMask(FsPermission umask) Apply a umask to this permission and return a new one.static FsPermissionFsPermission.createImmutable(short permission) Create an immutableFsPermissionobject.static FsPermissionFsPermission.getCachePoolDefault()Get the default permission for cache pools.static FsPermissionFsPermission.getDefault()Get the default permission for directory and symlink.static FsPermissionFsPermission.getDirDefault()Get the default permission for directory.static FsPermissionFsPermission.getFileDefault()Get the default permission for file.FsCreateModes.getMasked()FsPermission.getMasked()Get masked permission if exists.AclStatus.getPermission()Returns the permission set for the pathPermissionStatus.getPermission()Return permission.static FsPermissionFsPermission.getUMask(Configuration conf) Get the user file creation mask (umask)UMASK_LABELconfig param has umask value that is either symbolic or octal.FsCreateModes.getUnmasked()FsPermission.getUnmasked()Get unmasked permission if exists.static FsPermissionCreate and initialize aFsPermissionfromDataInput.static FsPermissionCreate a FsPermission from a Unix symbolic permission stringMethods in org.apache.hadoop.fs.permission with parameters of type FsPermissionModifier and TypeMethodDescriptionstatic FsPermissionFsCreateModes.applyUMask(FsPermission mode, FsPermission umask) Create from unmasked mode and umask.FsPermission.applyUMask(FsPermission umask) Apply a umask to this permission and return a new one.static FsCreateModesFsCreateModes.create(FsPermission masked, FsPermission unmasked) Create from masked and unmasked modes.static PermissionStatusPermissionStatus.createImmutable(String user, String group, FsPermission permission) Create an immutablePermissionStatusobject.AclUtil.getAclFromPermAndEntries(FsPermission perm, List<AclEntry> entries) Given permissions and extended ACL entries, returns the full logical ACL.AclStatus.getEffectivePermission(AclEntry entry, FsPermission permArg) Get the effective permission for the AclEntry.AclUtil.getMinimalAcl(FsPermission perm) Translates the given permission bits to the equivalent minimal ACL.AclStatus.Builder.setPermission(FsPermission permission) Sets the permission for the file.static voidFsPermission.setUMask(Configuration conf, FsPermission umask) Set the user file creation mask (umask)static voidPermissionStatus.write(DataOutput out, String username, String groupname, FsPermission permission) Serialize aPermissionStatusfrom its base components.Constructors in org.apache.hadoop.fs.permission with parameters of type FsPermissionModifierConstructorDescriptionFsPermission(FsPermission other) Copy constructorPermissionStatus(String user, String group, FsPermission permission) Constructor. -
Uses of FsPermission in org.apache.hadoop.fs.protocolPB
Methods in org.apache.hadoop.fs.protocolPB that return FsPermissionModifier and TypeMethodDescriptionstatic FsPermissionPBHelper.convert(org.apache.hadoop.fs.FSProtos.FsPermissionProto proto) Methods in org.apache.hadoop.fs.protocolPB with parameters of type FsPermissionModifier and TypeMethodDescriptionstatic org.apache.hadoop.fs.FSProtos.FsPermissionProtoPBHelper.convert(FsPermission p) -
Uses of FsPermission in org.apache.hadoop.fs.sftp
Methods in org.apache.hadoop.fs.sftp with parameters of type FsPermissionModifier and TypeMethodDescriptionSFTPFileSystem.create(Path f, 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.booleanSFTPFileSystem.mkdirs(Path f, FsPermission permission) -
Uses of FsPermission in org.apache.hadoop.fs.viewfs
Fields in org.apache.hadoop.fs.viewfs declared as FsPermissionMethods in org.apache.hadoop.fs.viewfs with parameters of type FsPermissionModifier and TypeMethodDescriptionViewFileSystem.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, Options.ChecksumOpt checksumOpt, boolean createParent) ViewFileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) voidViewFs.mkdir(Path dir, FsPermission permission, boolean createParent) booleanViewFileSystem.mkdirs(Path dir, FsPermission permission) voidViewFileSystem.setPermission(Path f, FsPermission permission) voidViewFs.setPermission(Path f, FsPermission permission) -
Uses of FsPermission in org.apache.hadoop.util
Methods in org.apache.hadoop.util with parameters of type FsPermissionModifier and TypeMethodDescriptionstatic voidDiskChecker.checkDir(LocalFileSystem localFS, Path dir, FsPermission expected) Create the local directory if necessary, check permissions and also ensure it can be read from and written into.static voidDiskChecker.checkDirWithDiskIo(LocalFileSystem localFS, Path dir, FsPermission expected) Create the local directory if necessary, also ensure permissions allow it to be read from and written into.