Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Preserve the log4j.properties config irrespective of hdfs name node restart.

Preserve the log4j.properties config irrespective of hdfs name node restart.

New Contributor

Dear Users,

I am a newbie to hadoop ecosystem.

I am restarting a active name node via ambari UI and due it, the name node's config found under /etc/hadoop/conf/log4j.properties is getting over-written with the configs from Ambari UI-> HDFS-> Configs -> Advanced-> Advanced hdfs-log4j-> hdfs-log4j.properties.

Is there a way to preserve the config under /etc/hadoop/conf/log4j.properties irrespective of the restart of the active name node from the ambari UI ?

Please advice ?

1 REPLY 1

Re: Preserve the log4j.properties config irrespective of hdfs name node restart.

Cloudera Employee

@Abdul M

If the cluster is managed by Ambari, it should be managed via ambari only else it will override out manual changes made to the log4j.propeties file which is done on the backend during component restart "etc/hadoop/conf/log4j.properties". Hence if you want to made any changes in the log4j.properties, You can change the logging config from ambari UI.

  1. Login to Ambari
  2. Goto the config tab of HDFS component.
  3. Filter for Advanced hdfs-log4j.

LINK : https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-operations/content/customizing_lo...

Hope this answer will be helpful to you.