Support Questions
Find answers, ask questions, and share your expertise

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

3568-root.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

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

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

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

Mentor

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

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