<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Changes to /etc/cloudera-scm-agent/config.ini Not Always Respected in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/38273#M50226</link>
    <description>Thanks for reporting this.&lt;BR /&gt;&lt;BR /&gt;Upon investigating, there's a small bug with how we load/respect lib_dir in the agent. There's two ways to supply it, one via the CMF_AGENT_ARGS (--lib_dir=/path) inside /etc/default/cloudera-scm-agent and another via the line inside /etc/cloudera-scm-agent/config.ini.&lt;BR /&gt;&lt;BR /&gt;The small bug is that for the UUID file we seem to look at the default path before we load up the config.&lt;BR /&gt;&lt;BR /&gt;I'd have expected some form of error in your case vs. a blatant ignore, especially if /var/lib/cloudera-scm-agent no longer exists, so I'd first make sure you have lib_dir configured without the prefix # comment-marking keyword in your config.ini, and if that is so, apply the workaround to the bug (specify both in CMF_AGENT_ARGS and in config.ini).&lt;BR /&gt;&lt;BR /&gt;The internal bug report is OPSAPS-32501&lt;BR /&gt;&lt;BR /&gt;P.s. Make sure to copy over the uuid file before you erase /var/lib/cloudera-scm-agent. If you've lost it, no worries, you can create the uuid file under your lib_dir with the content matching the one shown on the CM -&amp;gt; Hosts -&amp;gt; (the specific host's page) -&amp;gt; "Host ID" field on top. Failure in keeping the same UUID will result in duplicated hosts (though that can be fixed trivially by fixing the uuid file and restarting agent yet again, then deleting the role-less duped host).</description>
    <pubDate>Thu, 03 Mar 2016 14:46:15 GMT</pubDate>
    <dc:creator>Harsh J</dc:creator>
    <dc:date>2016-03-03T14:46:15Z</dc:date>
    <item>
      <title>Changes to /etc/cloudera-scm-agent/config.ini Not Always Respected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/37974#M50225</link>
      <description>&lt;P&gt;CM 552&lt;/P&gt;&lt;P&gt;SCM Agent Version: 5.5.3&lt;/P&gt;&lt;P&gt;Centos5.11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We needed to relocate the agent outputs from /var/log and /var/lib because of space restrictions on the root mount. &amp;nbsp;Using config.ini, we were able to sucessfully move log_file to a new location. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, changes to the lib_dir property are wholly ignored and we are fairly sure we are not victims of a phat-phinger attack. &amp;nbsp;Could someone check on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Hugh&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:06:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/37974#M50225</guid>
      <dc:creator>hughatoclc</dc:creator>
      <dc:date>2022-09-16T10:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changes to /etc/cloudera-scm-agent/config.ini Not Always Respected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/38273#M50226</link>
      <description>Thanks for reporting this.&lt;BR /&gt;&lt;BR /&gt;Upon investigating, there's a small bug with how we load/respect lib_dir in the agent. There's two ways to supply it, one via the CMF_AGENT_ARGS (--lib_dir=/path) inside /etc/default/cloudera-scm-agent and another via the line inside /etc/cloudera-scm-agent/config.ini.&lt;BR /&gt;&lt;BR /&gt;The small bug is that for the UUID file we seem to look at the default path before we load up the config.&lt;BR /&gt;&lt;BR /&gt;I'd have expected some form of error in your case vs. a blatant ignore, especially if /var/lib/cloudera-scm-agent no longer exists, so I'd first make sure you have lib_dir configured without the prefix # comment-marking keyword in your config.ini, and if that is so, apply the workaround to the bug (specify both in CMF_AGENT_ARGS and in config.ini).&lt;BR /&gt;&lt;BR /&gt;The internal bug report is OPSAPS-32501&lt;BR /&gt;&lt;BR /&gt;P.s. Make sure to copy over the uuid file before you erase /var/lib/cloudera-scm-agent. If you've lost it, no worries, you can create the uuid file under your lib_dir with the content matching the one shown on the CM -&amp;gt; Hosts -&amp;gt; (the specific host's page) -&amp;gt; "Host ID" field on top. Failure in keeping the same UUID will result in duplicated hosts (though that can be fixed trivially by fixing the uuid file and restarting agent yet again, then deleting the role-less duped host).</description>
      <pubDate>Thu, 03 Mar 2016 14:46:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/38273#M50226</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-03-03T14:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Changes to /etc/cloudera-scm-agent/config.ini Not Always Respected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/38277#M50227</link>
      <description>&lt;P&gt;Hi, Harsh!&lt;/P&gt;&lt;P&gt;At least I am not losing my mind &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &amp;nbsp;Ok. I will set this up in my lab and let you know what the outcome is. &amp;nbsp;Thank you for getting back to me on this!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;-Hugh&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 16:02:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/38277#M50227</guid>
      <dc:creator>hughatoclc</dc:creator>
      <dc:date>2016-03-03T16:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changes to /etc/cloudera-scm-agent/config.ini Not Always Respected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/38413#M50228</link>
      <description>&lt;P&gt;Quick follow-up:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have confirmed that the combination of updating /etc/cloudera-scm-agent/config.ini AND adding --lib_dir= to /etc/defaults/cloudera-scm-agent successfully corrects the startup problem when relocating /var/lib/cloudera-scm-agent. &amp;nbsp;Here is what I did:&lt;/P&gt;&lt;P&gt;1. Stop agent:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;FONT face="andale mono,times" color="#333399"&gt;sudo service cloudera-scm-agent stop&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Update /etc/cloudera-scm-agent/config.ini:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;# Particularly, the agent's UUID is stored here.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;# lib_dir=/var/lib/cloudera-scm-agent&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#333399"&gt;lib_dir=/NEW_DIR_PATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Update /etc/default/cloudera-scm-agent:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;# Specify any command line arguments for the Cloudera SCM Agent here.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;#&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" color="#333399"&gt;CMF_AGENT_ARGS="--lib_dir=/NEW_DIR_PATH "&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Copy&amp;nbsp;old content of /var/lib/coudera-scm-agent to new location /NEW_DIR_PATH:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" color="#333399"&gt;sudo cp /var/lib/cloudera-scm-agent/*&amp;nbsp;/NEW_DIR_PATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. Rename old content (in case we mess up):&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" color="#333399"&gt;sudo mv /var/lib/cloudera-scm-agent /var/lib/cloudera-scm-agent-del&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. Restart agent:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" color="#333399"&gt;sudo /sbin/service cloudera-scm-agent start&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;7. If you are happy and you know it, delete the old lib:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" color="#333399"&gt;&lt;SPAN&gt;sudo rm-rf&amp;nbsp;/var/lib/cloudera-scm-agent-del&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am happy. &amp;nbsp;And I appreciate the really quick turn-around!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Hugh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 15:54:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/38413#M50228</guid>
      <dc:creator>hughatoclc</dc:creator>
      <dc:date>2016-03-07T15:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changes to /etc/cloudera-scm-agent/config.ini Not Always Respected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/64134#M50229</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can’t modify the default log folder for cloudera-scm-agent and supervisord (cmf/), I tried to modify the python file .../cmf/agent.py (for cmf agent manage by supervisord) and the /etc/cloudera-scm-agent/config.init whit my New_Log_Folder_Path but nothing change…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any time that I restart the agents, I have the same issue, the cmf-agent (supervisord) and cloudera-scm-agent write their logs in the default log folder: /var/log/cloudera-scm-agent/… Below the process running when the agents are started:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps -aux | grep cloudera&lt;/P&gt;&lt;P&gt;root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7257&amp;nbsp; 0.7&amp;nbsp; 0.0 1722792 46732 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ssl&amp;nbsp; 11:03&amp;nbsp;&amp;nbsp; 0:18 python2.7 /usr/lib64/cmf/agent/build/env/bin/cmf-agent --package_dir /usr/lib64/cmf/service --agent_dir /var/run/cloudera-scm-agent --lib_dir /var/lib/cloudera-scm-agent --logfile /var/log/cloudera-scm-agent/cloudera-scm-agent.log --daemon --comm_name cmf-agent --pidfile /var/run/cloudera-scm-agent/cloudera-scm-agent.pid --lib_dir=/var/lib/cloudera-scm-agent&lt;/P&gt;&lt;P&gt;root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7281&amp;nbsp; 0.0&amp;nbsp; 0.0 212548 12252 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S&amp;nbsp;&amp;nbsp;&amp;nbsp; 11:03&amp;nbsp;&amp;nbsp; 0:00 python2.7 /usr/lib64/cmf/agent/build/env/bin/cmf-listener -l /var/log/cloudera-scm-agent/cmf_listener.log /run/cloudera-scm-agent/events&lt;/P&gt;&lt;P&gt;root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15086&amp;nbsp; 0.0&amp;nbsp; 0.0 112660&amp;nbsp;&amp;nbsp; 976 pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp; S+&amp;nbsp;&amp;nbsp; 11:43&amp;nbsp;&amp;nbsp; 0:00 grep --color=auto cloudera&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps -aux | grep supervisord&lt;/P&gt;&lt;P&gt;root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7279&amp;nbsp; 0.0&amp;nbsp; 0.0 222276 13388 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ss&amp;nbsp;&amp;nbsp; 11:03&amp;nbsp;&amp;nbsp; 0:01 /usr/lib64/cmf/agent/build/env/bin/python /usr/lib64/cmf/agent/build/env/bin/supervisord&lt;/P&gt;&lt;P&gt;root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15106&amp;nbsp; 0.0&amp;nbsp; 0.0 112660&amp;nbsp;&amp;nbsp; 976 pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp; S+&amp;nbsp;&amp;nbsp; 11:43&amp;nbsp;&amp;nbsp; 0:00 grep --color=auto supervisord&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me please to change this default log folder for supervisord and cloudera-scm-agent? If the services are started like root, could be a problem? I installed cloudera-manager-agent-5.12.2-1.cm5122.p0.12.el7.x86_64.rpm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance for the kind cooperation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 11:00:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/64134#M50229</guid>
      <dc:creator>AlexPQ</dc:creator>
      <dc:date>2018-01-30T11:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Changes to /etc/cloudera-scm-agent/config.ini Not Always Respected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/64139#M50230</link>
      <description>To change the whole log directory you'll currently need to pass --logdir to&lt;BR /&gt;the agent as arguments, instead of via a config flag.&lt;BR /&gt;&lt;BR /&gt;Edit your agent environment config file at /etc/default/cloudera-scm-agent&lt;BR /&gt;and ensure that the CMF_AGENT_ARGS env-var inside it carries the below:&lt;BR /&gt;&lt;BR /&gt;--logdir=/your/custom/cloudera-scm/user/writable/directory/&lt;BR /&gt;&lt;BR /&gt;Save, then restart the agent service.&lt;BR /&gt;&lt;BR /&gt;P.s. Using symlinks will also work.&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jan 2018 12:19:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/64139#M50230</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2018-01-30T12:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changes to /etc/cloudera-scm-agent/config.ini Not Always Respected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/64144#M50231</link>
      <description>&lt;P&gt;Hi Harsh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, thanks a lot for you rapidly feedback, with your suggestions I have solved my problem with the logs files path. However I wish to ask you kindly one more thing, why I still see into the cloudera-scm-agent process parameters, two parameters for the log files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;root&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;52342&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0 14:17 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:01 python2.7 /usr/lib64/cmf/agent/build/env/bin/cmf-agent --package_dir /usr/lib64/cmf/service --agent_dir /var/run/cloudera-scm-agent --lib_dir /var/lib/cloudera-scm-agent &lt;STRONG&gt;--logfile /var/log/cloudera-scm-agent/cloudera-scm-agent.log &lt;EM&gt;(Old parameter)&lt;/EM&gt;&lt;/STRONG&gt; --daemon --comm_name cmf-agent --pidfile /var/run/cloudera-scm-agent/cloudera-scm-agent.pid &lt;STRONG&gt;--logdir=/var/log/cloudera/cloudera-scm-agent/cloudera-scm-agent.log&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;(New parameter: Now, the agent write the logs in this new path as desired)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead for the cmf-listener process, all works fine:&lt;/P&gt;&lt;P&gt;root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50427&amp;nbsp; 50421&amp;nbsp; 0 14:08 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 python2.7 /usr/lib64/cmf/agent/build/env/bin/cmf-listener -l &lt;STRONG&gt;/var/log/cloudera/cloudera-scm-agent/cmf_listener.log&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;(New parameter&lt;/EM&gt;) &lt;/STRONG&gt;/run/cloudera-scm-agent/events&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to delete the "old parameter" from the cloudera-scm-agent process at start up?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I stopped/started all cloudera-scm-agent process after modify the file /etc/default/cloudera-scm-agent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.s: I don’t like so much use the symbolic links in these cases…&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 13:59:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/64144#M50231</guid>
      <dc:creator>AlexPQ</dc:creator>
      <dc:date>2018-01-30T13:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changes to /etc/cloudera-scm-agent/config.ini Not Always Respected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/64267#M50232</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;in order to illustrate to you a full overview about how change the all logs files related to Cloudera Manager Agents (v 5.12), I want to share with you guys my particular situation and how I solved it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted modify the default path logs for the following log files links with Cloudera Manager Agent:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- supervisord.out&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- supervisord.log&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(these are the supervisor's logs, this service start up with the Cloudera Manager Agent service the first time when the server start up or when we start up manually the cloudera-scm-agent service. If you stop the Cloudera Manager Agent service but the server remain up, this service remain up also).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- cmf_listener.log&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(this is a cmf_listener service's logs, this service start up with the Cloudera Manager Agent service the first time when the server start up or when we start up manually the cloudera-scm-agent service. If you stop the Cloudera Manager Agent service but the server remain up, this service remain up also (managed by supervisord).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;cloudera-scm-agent.log&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- cloudera-scm-agent.out&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(These are the cloudera-scm-agent logs…)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Below the files that I've modified in order to set a new path for these logs with a dedicated file-system:&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.12.2-py2.7.egg/lib/cmf/agent.py&lt;/STRONG&gt;&amp;nbsp;&lt;EM&gt;(set a new path for the logs: supervisord.out; cmf_listener.log and supervisord.log. Furthermore, check if the parameter for cloudera libraries agent is present in order to avoid unexpected errors with the start up of supervisord (default_lib_dir = '/var/lib/cloudera-scm-agent'))&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.12.2-py2.7.egg/cmf/agent.py&lt;/STRONG&gt;&amp;nbsp;&lt;EM&gt;(set a new path for the logs: supervisord.out; cmf_listener.log and supervisord.log. Furthermore, check if the parameter for cloudera libraries agent is present in order to avoid unexpected errors with the start up of supervisord (default_lib_dir = '/var/lib/cloudera-scm-agent'))&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;/etc/default/cloudera-scm-agent&lt;/STRONG&gt;&lt;EM&gt;(set a new path for the cloudera agent logs as arguments:&lt;/EM&gt; CMF_AGENT_ARGS="--logdir=/your/custom/cloudera-scm/user/writable/directory/"&lt;EM&gt; and set also &lt;/EM&gt;CMF_AGENT_ARGS="--lib_dir=/var/lib/cloudera-scm-agent", &lt;EM&gt;in order to avoid unexpected errors with the start up of cloudera-scm-agent (&lt;STRONG&gt;As suggested by Harsh &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/STRONG&gt;).&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;/etc/cloudera-scm-agent/config.ini&lt;/STRONG&gt;&amp;nbsp;(&lt;EM&gt;set a new path for the cloudera agent logs: &lt;/EM&gt;log_file=/your/custom/cloudera-scm/user/writable/directory/ and set also lib_dir=/var/lib/cloudera-scm-agent, &lt;EM&gt;in order to avoid unexpected errors with the start up of cloudera-scm-agent&lt;/EM&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;/etc/init.d/cloudera-scm-agent&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;STRONG&gt;(&lt;/STRONG&gt;set a new path for cloudera-scm-agent.out modifying the following parameter: &lt;/EM&gt;AGENT_OUT=${CMF_VAR:-&lt;STRONG&gt;/var}/log/&lt;U&gt;cloudera&lt;/U&gt;/&lt;/STRONG&gt;$prog/$prog.out). &lt;EM&gt;In my case I left the logs into &lt;STRONG&gt;/var/log&lt;/STRONG&gt; but I mounted a dedicated file-system on the folder /var/log/&lt;U&gt;&lt;STRONG&gt;cloudera&lt;/STRONG&gt;&lt;/U&gt;/ for all these logs.&lt;BR /&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you want to stop all the processes related to Cloudera Manager Agent, you should perform the following steps:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;service cloudera-scm-agent stop (Stop Cloudera Manager Agent process)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;ps -eaf | grep cmf (Show the supervisord parent process)&lt;BR /&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;77977&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0 13:09 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 /usr/lib64/cmf/agent/build/env/bin/python /usr/lib64/cmf/agent/build/env/bin/&lt;U&gt;&lt;STRONG&gt;supervisord&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 77983&amp;nbsp; 77977&amp;nbsp; 0 13:09 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 python2.7 /usr/lib64/cmf/agent/build/env/bin/cmf-listener -l /var/log/cloudera/cloudera-scm-agent/cmf_listener.log /run/cloudera-scm-agent/events&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;kill -15 77977&lt;/STRONG&gt;&lt;/U&gt; (Stop supervisord and &lt;EM&gt;cmf_listener processes&lt;/EM&gt;). I used kill -15 because I didn't found another way to stop these processes…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like so much if anyone from Cloudera's Engineers can confirm/amend the procedure that I just described above...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:45:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changes-to-etc-cloudera-scm-agent-config-ini-Not-Always/m-p/64267#M50232</guid>
      <dc:creator>AlexPQ</dc:creator>
      <dc:date>2018-02-02T12:45:34Z</dc:date>
    </item>
  </channel>
</rss>

