code: @Override
    public void setPermission(Path path, FsPermission permission) throws IOException {
      LOG.debug("setMode({},{})", path, permission.toString());
      AlluxioURI uri = new AlluxioURI(HadoopUtils.getPathWithoutScheme(path));
      SetAttributePOptions options = SetAttributePOptions.newBuilder()
          .setMode(new Mode(permission.toShort()).toProto()).setRecursive(false).build();
      try {
        mFileSystem.setAttribute(uri, options);
      } catch (AlluxioException e) {
        throw new IOException(e);
      }
    }
docs: Changes permission of a path.
  
  @param path path to set permission
  @param permission permission set to path