congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FSPermissionChecker.check
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.hadoop/hadoop-hdfs

/** Guarded by {@link FSNamesystem#readLock()}
 * @throws AccessControlException
 * @throws ParentNotDirectoryException
 * @throws UnresolvedPathException
 */
private void checkTraverse(INodeAttributes[] inodeAttrs, INode[] inodes,
  byte[][] components, int last) throws AccessControlException,
    UnresolvedPathException, ParentNotDirectoryException {
 for (int i=0; i <= last; i++) {
  checkIsDirectory(inodes[i], components, i);
  check(inodeAttrs, components, i, FsAction.EXECUTE);
 }
}
origin: org.apache.hadoop/hadoop-hdfs

check(inodeAttrs, components, ancestorIndex, ancestorAccess);
check(inodeAttrs, components, inodeAttrs.length - 2, parentAccess);
check(inodeAttrs, components, inodeAttrs.length - 1, access);
origin: com.facebook.hadoop/hadoop-core

private void check(INode[] inodes, int i, FsAction access
  ) throws AccessControlException {
 check(i >= 0? inodes[i]: null, access);
}
origin: ch.cern.hadoop/hadoop-hdfs

check(inodeAttrs, ancestorIndex, ancestorAccess);
check(inodeAttrs, inodeAttrs.length - 2, parentAccess);
check(inodeAttrs, inodeAttrs.length - 1, access);
origin: com.facebook.hadoop/hadoop-core

private void checkTraverse(INode[] inodes, int last
  ) throws AccessControlException {
 for(int j = 0; j <= last; j++) {
  check(inodes[j], FsAction.EXECUTE);
 }
}
origin: io.prestosql.hadoop/hadoop-apache

check(inodeAttrs, ancestorIndex, ancestorAccess);
check(inodeAttrs, inodeAttrs.length - 2, parentAccess);
check(inodeAttrs, inodeAttrs.length - 1, access);
origin: com.facebook.hadoop/hadoop-core

private void checkSubAccess(INode inode, FsAction access
  ) throws AccessControlException {
 if (inode == null || !inode.isDirectory()) {
  return;
 }
 Stack<INodeDirectory> directories = new Stack<INodeDirectory>();
 for(directories.push((INodeDirectory)inode); !directories.isEmpty(); ) {
  INodeDirectory d = directories.pop();
  check(d, access);
  for(INode child : d.getChildren()) {
   if (child.isDirectory()) {
    directories.push((INodeDirectory)child);
   }
  }
 }
}
origin: com.facebook.hadoop/hadoop-core

check(inodes, ancestorIndex, ancestorAccess);
check(inodes, inodes.length - 2, parentAccess);
check(inodes[inodes.length - 1], access);
org.apache.hadoop.hdfs.server.namenodeFSPermissionCheckercheck

Javadoc

Guarded by FSNamesystem#readLock()

Popular methods of FSPermissionChecker

  • checkPermission
    Check whether current user have permissions to access the path. Traverse is always checked. Parent p
  • <init>
  • checkOwner
    Guarded by FSNamesystem#readLock()
  • checkSubAccess
    Guarded by FSNamesystem#readLock()
  • checkTraverse
    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

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Collectors (java.util.stream)
  • JList (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now