Created 07-17-2020 05:16 AM
Hi Community,
Suppose that i changed one of the values in the node hdfs-site.xml manually, will cloudera manager override this config?
example : in /etc/hadoop/conf i want to change the dfs.nameservices in hdfs-site.xml manually and i want to how cloudera manager can override this.
*** I don't want to make such a change but i want to know if cloudera manager can override this.
Created 07-17-2020 01:37 PM
AFAIK all changes made manually by editing the files using VI or nano is not persisted in the CM or Ambari database which means CDH or HDP is even not aware of that change so at startup it will get the values of the configuration from the persisted database.
When you use CM/Ambari to change values the save button triggers an update in the underlying CM/Ambari tables that said it's NOT advisable to manually edit config files.
Happy hadooping
Created 07-17-2020 01:37 PM
AFAIK all changes made manually by editing the files using VI or nano is not persisted in the CM or Ambari database which means CDH or HDP is even not aware of that change so at startup it will get the values of the configuration from the persisted database.
When you use CM/Ambari to change values the save button triggers an update in the underlying CM/Ambari tables that said it's NOT advisable to manually edit config files.
Happy hadooping
Created 07-17-2020 02:27 PM
Thanks @Shelton for your response, just to make sure i understand this as it should be.
The change that done manual has no meaning? suppose i change the config using ACL to false in one of the hadoop conf files in one node and in cloudera manager it's true, will the node that i made the change will take the value that i edited or the value in the cloudera? what i got from your answer that restarting the cloudera-scm agent or the the service may override the manual change i did?
how i can trigger the change that i did in the node using vim or nano to take the value from cloudera manager?
Created 07-17-2020 03:24 PM
In a Hadoop distribution ACLs are disabled by default. When ACLs are disabled, the NameNode rejects all attempts to set an ACL you will need to enable that manually in CM/Ambari.
Enabling HDFS ACLs Using Cloudera Manager
The above sequence sets the dfs.namenode.acls.enabled property to true in the NameNode's hdfs-site.xml. This is a cluster-wide operation so only after doing the above you can run the setfacl or getfacl commands against an HDFS file etc
<property>
<name>dfs.namenode.acls.enabled</name>
<value>true</value>
</property>
The hdfs-site.xml is distributed by CM, when you make a change you are usually warned that there is a stale configuration and you are asked to restart the service this triggers the distribution of the new hdfs-site.xml to all nodes in the cluster and that's precisely the reason to use CM rather than manually editing.
Happy hadooping
Created 07-17-2020 03:45 PM
@Shelton Yes, i understand and know how to change this through CM, my question is that i changed it manually in one of the nodes this setting, will the node that this config locally where i changed it or will take what is the value in CM? what i need to do if i want to revert the manual change through CM and not reverting the change manually from the node.
I want to proof that manual changes has no impact and it can be overriden through CM.
i provided ACL only as an example but it can be any other config