public void setOwner ( String src , String username , String groupname ) throws IOException { checkOpen ( ) ; clearFileStatusCache ( ) ; try { namenode . setOwner ( src , username , groupname ) ; } catch ( RemoteException re ) { throw re . unwrapRemoteException ( AccessControlException . class , FileNotFoundException . class ) ; } }
Set file or directory owner .