Created on 04-20-2016 06:17 PM - edited 08-19-2019 04:41 AM
Created 04-20-2016 06:23 PM
Thanks ..
sudo su - hdfs
hdfs dfs -mkdir /user/root
hdfs dfs -chown root:hdfs /user/root
got the answer as well from another thread
Created 04-20-2016 06:22 PM
sudo -u hdfs hdfs dfs -mkdir /user/root sudo -u hdfs hdfs dfs -chown -R root:hdfs /user/root
Created 04-20-2016 06:23 PM
You have to ssh to the machine using terminal. There is no hdfs user in Ambari that can create directory as superuser.
Created 04-20-2016 06:23 PM
Thanks ..
sudo su - hdfs
hdfs dfs -mkdir /user/root
hdfs dfs -chown root:hdfs /user/root
got the answer as well from another thread