code: public static void setUMask(Configuration conf, FsPermission umask) {
      conf.set(UMASK_LABEL, String.format("%1$03o", umask.toShort()));
      conf.setInt(DEPRECATED_UMASK_LABEL, umask.toShort());
    }
docs: Set the user file creation mask (umask)