I am running HDP Sandbox in an Azure VM. I can successfully add a disk to the VM and format / mount it. I would like to add it to HDFS to extend my storage. I am performing the following steps to get it recognized:
Interesting. So it seems I actually got it to add another directory. These were the steps I followed:
I ran your commands above
mkdir /data/hdfs/data chmod -R 755 /data/hdfs/data sudo chown -R hdfs /data/hdfs/data
After running those commands I moved to Ambari. Moved to the HDFS service. From there instead of using a comma to separate the two, I just put the new directory on a separate line underneath so it looked like:
After this I Ambari asked me to restart a few of the components. (It was taking a while so I ended up rebooting the Sandbox)
After rebooting the Sandbox I went back to the Ambari config and the new directory I added earlier was still present.
EDIT: Try removing the space after the comma. Ambari gave me an error when there was a space after the comma.