Codota Logo
FSPermissionChecker.checkTraverse
Code IndexAdd Codota to your IDE (free)

How to use
checkTraverse
method
in
org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker

Best Java code snippets using org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse (Showing top 5 results out of 315)

  • Common ways to obtain FSPermissionChecker
private void myMethod () {
FSPermissionChecker f =
  • Codota IconFSDirectory fsd;fsd.getPermissionChecker()
  • Codota IconFSNamesystem fSNamesystem;fSNamesystem.getPermissionChecker()
  • Codota IconFSDirectory fSDirectory;String fsOwner;String superGroup;fSDirectory.getPermissionChecker(fsOwner, superGroup, NameNode.getRemoteUser())
  • Smart code suggestions by Codota
}
origin: org.apache.hadoop/hadoop-hdfs

void checkTraverse(FSPermissionChecker pc, INodesInPath iip,
  boolean resolveLink) throws AccessControlException,
   UnresolvedPathException, ParentNotDirectoryException {
 FSPermissionChecker.checkTraverse(
   isPermissionEnabled ? pc : null, iip, resolveLink);
}
origin: org.apache.hadoop/hadoop-hdfs

 checkTraverse(inodeAttrs, inodes, components, ancestorIndex);
} catch (UnresolvedPathException | ParentNotDirectoryException ex) {
origin: com.facebook.hadoop/hadoop-core

for(; ancestorIndex >= 0 && inodes[ancestorIndex] == null;
  ancestorIndex--);
checkTraverse(inodes, ancestorIndex);
origin: ch.cern.hadoop/hadoop-hdfs

  ancestorIndex--);
checkTraverse(inodeAttrs, ancestorIndex);
origin: io.prestosql.hadoop/hadoop-apache

  ancestorIndex--);
checkTraverse(inodeAttrs, ancestorIndex);
org.apache.hadoop.hdfs.server.namenodeFSPermissionCheckercheckTraverse

Javadoc

Verifies that all existing ancestors are directories. If a permission checker is provided then the user must have exec access. Ancestor symlinks will throw an unresolved exception, and resolveLink determines if the last inode will throw an unresolved exception. This method should always be called after a path is resolved into an IIP.

Popular methods of FSPermissionChecker

  • checkPermission
    Check whether current user have permissions to access the path. Traverse is always checked. Parent p
  • <init>
  • check
    Guarded by FSNamesystem#readLock()
  • checkOwner
    Guarded by FSNamesystem#readLock()
  • checkSubAccess
    Guarded by FSNamesystem#readLock()
  • checkStickyBit
    Guarded by FSNamesystem#readLock()
  • checkSuperuserPrivilege
    Verify if the caller has the required permission. This will result into an exception if the caller i
  • getAccessControlEnforcer
  • getAttributesProvider
  • getINodeAttrs
  • getUser
  • hasAclPermission
    Checks requested access against an Access Control List. This method relies on finding the ACL data i
  • getUser,
  • hasAclPermission,
  • hasPermission,
  • isSuperUser,
  • toAccessControlString,
  • constructPath,
  • containsGroup,
  • isMemberOfGroup,
  • checkIsDirectory

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now