There are two ways to configure service accounts:
If you are installing HDP manually, refer to the Create System Users and Groups subsection of "Getting Ready to Install," in Installing HDP Manually.
If you are installing HDP using Ambari 2.0.0, see Automated Install with Ambari.