Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to create Home directory for Root in user Hortonwork sandbox 2.4

avatar
Contributor

3568-root.jpg

1 ACCEPTED SOLUTION

avatar
Contributor

Thanks ..

sudo su - hdfs

hdfs dfs -mkdir /user/root

hdfs dfs -chown root:hdfs /user/root

got the answer as well from another thread

View solution in original post

3 REPLIES 3

avatar
Master Mentor
sudo -u hdfs hdfs dfs -mkdir /user/root

sudo -u hdfs hdfs dfs -chown -R root:hdfs /user/root

avatar
Master Mentor

You have to ssh to the machine using terminal. There is no hdfs user in Ambari that can create directory as superuser.

avatar
Contributor

Thanks ..

sudo su - hdfs

hdfs dfs -mkdir /user/root

hdfs dfs -chown root:hdfs /user/root

got the answer as well from another thread