Hadoop rpm package creates hdfs, mapped users, and hadoop group for automatically setting up pid directory and log directory with proper permission. The default headless users should have a fixed uid, and gid numbers defined.
Searched through the standard uid and gid on both Redhat and Debian distro. It looks like:
would be free for use.