参考:https://blog.csdn.net/houzhizhen/article/details/78363332
#1.测试类
想运行hadoop的测试类,我们必须先编译hadoop
然后查看测试类
org.apache.hadoop.hdfs.server.namenode.TestINodeAttributeProvider
然后直接运行testDelegationToProvider这个测试类方法,就可以运行,并且在
@Override
public void checkPermission(String fsOwner, String supergroup,
UserGroupInformation ugi, INodeAttributes[] inodeAttrs,
INode[] inodes, byte[][] pathByNameArr, int snapshotId, String path,
int ancestorIndex, boolean doCheckOwner, FsAction ancestorAccess,