Hi @ramcharantej ,
Hadoop needs file read permission to verify login information of a user.
Try to change the file permissions to hive user with hadoop group and it should work after.
You can use below command for user credential files.
sudo chgrp hive:hadoop /etc/shadow
In your case, additional files like sshd files should also be owned by root.
Please let me know if you still face any problem with it.
Regards,
Dhirendra