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 on 11-28-2017 08:35 AM - edited 08-17-2019 10:14 PM
I am using HDP 2.6.1.0-129, I want to change the namenode and data directories to /home beacuse i have much disk memory in /home but Ambari is not allowing to /home its showing that "can't start with home(s)"
Similar Issue in Jira : https://issues.apache.org/jira/browse/AMBARI-9254
I have attached the screenshots
Could you please someone help in fixing this.
Created 11-28-2017 09:46 AM
This is as per ambari design that you can not use the "/home" directory for NameNode data. This functionality is there in Ambari from Ambari 1.5.0 version till date. The Following is the JIRA where this check was added long back: https://issues.apache.org/jira/browse/AMBARI-4162
.
If you want to know the validation rules then please refer to the following code:
0. https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/utils/validator.js#L94-L107
/**
* validate directory doesn't start "home" or "homes"
* @param value
* @returns {boolean}
*/
isAllowedDir: function(value) {
var dirs = value.replace(/,/g,' ').trim().split(new RegExp("\\s+", "g"));
for(var i = 0; i < dirs.length; i++){
if(dirs[i].startsWith('/home') || dirs[i].startsWith('/homes')) {
return false;
}
}
return true;
},Other reference:
1. https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/utils/config.js#L633-L635
2. https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/messages.js#L3254
.
Created 11-28-2017 09:46 AM
This is as per ambari design that you can not use the "/home" directory for NameNode data. This functionality is there in Ambari from Ambari 1.5.0 version till date. The Following is the JIRA where this check was added long back: https://issues.apache.org/jira/browse/AMBARI-4162
.
If you want to know the validation rules then please refer to the following code:
0. https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/utils/validator.js#L94-L107
/**
* validate directory doesn't start "home" or "homes"
* @param value
* @returns {boolean}
*/
isAllowedDir: function(value) {
var dirs = value.replace(/,/g,' ').trim().split(new RegExp("\\s+", "g"));
for(var i = 0; i < dirs.length; i++){
if(dirs[i].startsWith('/home') || dirs[i].startsWith('/homes')) {
return false;
}
}
return true;
},Other reference:
1. https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/utils/config.js#L633-L635
2. https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/messages.js#L3254
.
Created 11-28-2017 11:16 AM
Thanks Jay.
Can I comment/remove this code in app.js of /usr/lib/ambari-server/web/javascripts location and restart the ambari server if I want to use /home directory for storage..??
Created 11-28-2017 11:18 AM
Created 02-26-2018 10:32 AM
I get the same problem , when I install the cluster , at very firs time . please help me