Actually my datanode having differen user than masternode(eg. Masternode OS user - student and datanode os user - node2user), so both these OS users having different default path i.e /home/student for masternode and /home/node2user for node2.
To given common path for both masternode and datanode, i have created new user for datanode i.e studnet (same as masternode). so both OS users having same path now. i.e /home/student.
I have copied this path in core-site.xml and working fine.
Is it required to be maintain same user name for both masternode and datanode?
In case if user name is different than masternode , how can i choose the path?