Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 10-18-2018 09:08 AM
Hello community,
I am using HDP 3.0 and I have configured HDFS DataNode Directories as follow: /grid0/hadoop/hdfs/data,/grid1/hadoop/hdfs/data,/grid/hadoop/hdfs/data/
One of my hosts (lets call him hostA) has only one mount point (/grid) and the other host (hostB) has 2 mount points (/grid0 & /grid1)
HDFS automatically creates the directories grid0 and grid1 in "hostA" and grid in "hostB".
Is there any way to prevent HDFS from doing that?
Thanks in advance
Created 10-18-2018 09:25 AM
That is the expected behaviour. If you want to achieve this, then you need to create separate configs for each host.
For ex: hostA will have only /grid in datanode dirs and hostB will have /grid0 and /grid1 in their datanode dirs.
You can do that using Ambari config groups
Created 10-18-2018 09:25 AM
That is the expected behaviour. If you want to achieve this, then you need to create separate configs for each host.
For ex: hostA will have only /grid in datanode dirs and hostB will have /grid0 and /grid1 in their datanode dirs.
You can do that using Ambari config groups
Created 10-18-2018 10:29 AM
Thank you so much for your help, this solved my problem.