<?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: Custom CSD error after upgrade to CM 5.7 -- logging in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/40535#M27450</link>
    <description>&lt;P&gt;would you be able to list your&amp;nbsp;'&lt;SPAN&gt;serviceDependencies', there's a know issue that we've identified with SPARK/CSD - just wanted to confirm if you're running into the same.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2016 15:47:46 GMT</pubDate>
    <dc:creator>michalis</dc:creator>
    <dc:date>2016-05-06T15:47:46Z</dc:date>
    <item>
      <title>Custom CSD error after upgrade to CM 5.7 -- logging</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/40534#M27449</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after upgrading Cloudera Manager from 5.5 to 5.7 our custom role failed to start due to the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Role failed to start due to error java.lang.IllegalStateException: The archive already contains log4j.properties.&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;here is a log message in the cloudera-scm-server log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2016-05-06 10:41:42,024 INFO CommandPusher:com.cloudera.cmf.service.GenericBring
UpRoleCommand: BringUp command (2866) has finished on service test for role
 55/test-MASTER-1d1313da90923719ced954c04b73e153, with status FAI
LURE and message MessageWithArgs{messageId=message.command.role.bringUp.failedTo
Start, args=[java.lang.IllegalStateException: The archive already contains log4j
.properties]}
2016-05-06 10:41&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a second role that starts correctly. The above role uses the following logging instruction:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;      "logging" : {
        "dir" : "/var/log/test",
        "filename" : "all.log",
        "modifiable" : true,
        "configName" : "log.dir",
        "loggingType" : "log4j"
      },&lt;/PRE&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:17:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/40534#M27449</guid>
      <dc:creator>jbowles</dc:creator>
      <dc:date>2022-09-16T10:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom CSD error after upgrade to CM 5.7 -- logging</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/40535#M27450</link>
      <description>&lt;P&gt;would you be able to list your&amp;nbsp;'&lt;SPAN&gt;serviceDependencies', there's a know issue that we've identified with SPARK/CSD - just wanted to confirm if you're running into the same.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 15:47:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/40535#M27450</guid>
      <dc:creator>michalis</dc:creator>
      <dc:date>2016-05-06T15:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom CSD error after upgrade to CM 5.7 -- logging</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/40549#M27451</link>
      <description>&lt;P&gt;How do I list the serviceDependencies ? Regardless, our CSD depends on Spark.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 19:01:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/40549#M27451</guid>
      <dc:creator>jbowles</dc:creator>
      <dc:date>2016-05-06T19:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom CSD error after upgrade to CM 5.7 -- logging</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/40599#M27452</link>
      <description>&lt;P&gt;Hi Michalis,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here are our dependencies:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;  "parcel" : {
    "requiredTags" : ["test", "cdh"],
    "optionalTags" : ["test-plugin"]
  },
  "serviceDependencies" : [
    { "name" : "YARN", "required" : "true" },
    { "name" : "SPARK_ON_YARN", "required" : "true" },
    { "name" : "ZOOKEEPER"}
  ],
  "dependencyExtensions" : [
    {
      "extensionId" : "yarnAuxService",
      "name": "monitor",
      "className" : "com.test.monitoring.YarnMonitoringService",
      "type" : "classAndConfigs"
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 08:04:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/40599#M27452</guid>
      <dc:creator>jbowles</dc:creator>
      <dc:date>2016-05-09T08:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom CSD error after upgrade to CM 5.7 -- logging</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/40608#M27453</link>
      <description>&lt;P&gt;Thanks for confirming, seems like you're hitting the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Workaround options;&lt;/P&gt;&lt;P&gt;- do not use SPARK_ON_YARN dependecy and make sure your role is pointing to an existing up-to-date /etc/spark/conf dir&lt;/P&gt;&lt;P&gt;- in the &lt;FONT face="courier new,courier"&gt;service.sdl&lt;/FONT&gt; rename default &lt;FONT face="courier new,courier"&gt;log4j.properties&lt;/FONT&gt;&amp;nbsp;as set by&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;configFilename&lt;/FONT&gt;&amp;nbsp;[1]&amp;nbsp;&lt;/SPAN&gt;to a different name&amp;nbsp;(ie:&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;real-log4j.properties&lt;/FONT&gt;)&lt;/SPAN&gt;.&amp;nbsp;Then, in the &lt;FONT face="courier new,courier"&gt;control.sh&lt;/FONT&gt; script, move the &lt;FONT face="courier new,courier"&gt;log4j.properties&lt;/FONT&gt; file to the spark-conf dir where it belongs, and move the &lt;FONT face="courier new,courier"&gt;real-log4j.properties&lt;/FONT&gt; to be renamed as &lt;FONT face="courier new,courier"&gt;log4j.properties&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://github.com/cloudera/cm_ext/wiki/Service-Descriptor-Language-Reference#logging" target="_blank"&gt;https://github.com/cloudera/cm_ext/wiki/Service-Descriptor-Language-Reference#logging&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 22:16:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/40608#M27453</guid>
      <dc:creator>michalis</dc:creator>
      <dc:date>2016-05-09T22:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom CSD error after upgrade to CM 5.7 -- logging</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/41564#M27454</link>
      <description>&lt;P&gt;Hi :&lt;/P&gt;&lt;P&gt;I also encountered same issue, also I have to declared spark_on_yarn dependency, how to fix it or workaround it?could you give the solution example,thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 02:36:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-CSD-error-after-upgrade-to-CM-5-7-logging/m-p/41564#M27454</guid>
      <dc:creator>lonelywolf</dc:creator>
      <dc:date>2016-06-02T02:36:19Z</dc:date>
    </item>
  </channel>
</rss>

