For running Hadoop daemons, we have to create a super user for running Hadoop daemons rather than using root for the same,this is recommended, as it isolates other software’s, service and other users on the same machine from hadoop installation.
for example, here we are creating a user ‘hduser’ in group ‘hadoop’
sudo addgroup hadoop
sudo adduser –ingroup hadoop hduser