<?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: Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1] in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-Main-class-org-apache-oozie-action/m-p/51996#M56217</link>
    <description>&lt;P&gt;Hi anirbandd,&lt;BR /&gt;&lt;BR /&gt;It's likely that you ran into &lt;A href="https://issues.apache.org/jira/browse/OOZIE-2739" target="_self"&gt;OOZIE-2739&lt;/A&gt;. There is a workaround that requires to override the value for&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;oozie.action.shell.setup.hadoop.conf.dir.log4j.content&lt;/STRONG&gt;&amp;nbsp;in oozie-site.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;If you are using Cloudera Manager, you can easiliy do it via using a&amp;nbsp;Safety valve for Oozie.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Go to Cloudera Manager -&amp;gt; Oozie -&amp;gt; Configuration page and search for&amp;nbsp;&lt;/SPAN&gt;oozie-site.xml.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add the following to "Oozie Server Advanced Configuration Snippet (Safety Valve) for oozie-site.xml" using the XML editor that is better for a newline value carrying config such as the following.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;&lt;STRONG&gt;oozie.action.shell.setup.hadoop.conf.dir.log4j.content&lt;/STRONG&gt;&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;&lt;BR /&gt;log4j.rootLogger=INFO,console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.target=&lt;SPAN class="code-object"&gt;System&lt;/SPAN&gt;.err
log4j.appender.console.layout=org.apache.log4j.PatternLayout&lt;BR /&gt;&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Then click&amp;nbsp;&lt;STRONG&gt;Save changes&lt;/STRONG&gt; and &lt;STRONG&gt;Re-deploy client configuration&lt;/STRONG&gt; (restart Oozie).&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 17:23:50 GMT</pubDate>
    <dc:creator>asasvari</dc:creator>
    <dc:date>2017-03-09T17:23:50Z</dc:date>
    <item>
      <title>Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-Main-class-org-apache-oozie-action/m-p/51827#M56216</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a Shell action on Oozie to load data to HDFS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data gets loaded properly. However, the job fails with the follwoing stderr:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;log4j:ERROR Could not find value for key log4j.appender.CLA
log4j:ERROR Could not instantiate appender named "CLA".
put: `/user/admin/RnR_Demo/Datasets/shellUpload.TestDir/50MB.zip': File exists
log4j:ERROR Could not find value for key log4j.appender.CLA
log4j:ERROR Could not instantiate appender named "CLA".
put: `/user/admin/RnR_Demo/Datasets/shellUpload.TestDir/5MB.zip': File exists
log4j:ERROR Could not find value for key log4j.appender.CLA
log4j:ERROR Could not instantiate appender named "CLA".
put: `/user/admin/RnR_Demo/Datasets/shellUpload.TestDir/CentOS-6.5-x86_64-bin-DVD1(2).zip': File exists
rm: cannot remove `oozie-hadoop-conf-1488800663720': Is a directory
rm: cannot remove `tmp': Is a directory
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]&lt;/PRE&gt;&lt;P&gt;here you can see that the hdfs -put command runs successfully since there are files with the same name in the location from a previous run.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however, the error:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;log4j:ERROR Could not find value for key log4j.appender.CLA
log4j:ERROR Could not instantiate appender named "CLA".&lt;/PRE&gt;&lt;P&gt;is bugging me since the job fails in spite of data being loaded to HDFS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:11:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-Main-class-org-apache-oozie-action/m-p/51827#M56216</guid>
      <dc:creator>anirbandd</dc:creator>
      <dc:date>2022-09-16T11:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-Main-class-org-apache-oozie-action/m-p/51996#M56217</link>
      <description>&lt;P&gt;Hi anirbandd,&lt;BR /&gt;&lt;BR /&gt;It's likely that you ran into &lt;A href="https://issues.apache.org/jira/browse/OOZIE-2739" target="_self"&gt;OOZIE-2739&lt;/A&gt;. There is a workaround that requires to override the value for&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;oozie.action.shell.setup.hadoop.conf.dir.log4j.content&lt;/STRONG&gt;&amp;nbsp;in oozie-site.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;If you are using Cloudera Manager, you can easiliy do it via using a&amp;nbsp;Safety valve for Oozie.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Go to Cloudera Manager -&amp;gt; Oozie -&amp;gt; Configuration page and search for&amp;nbsp;&lt;/SPAN&gt;oozie-site.xml.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add the following to "Oozie Server Advanced Configuration Snippet (Safety Valve) for oozie-site.xml" using the XML editor that is better for a newline value carrying config such as the following.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;&lt;STRONG&gt;oozie.action.shell.setup.hadoop.conf.dir.log4j.content&lt;/STRONG&gt;&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;&lt;BR /&gt;log4j.rootLogger=INFO,console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.target=&lt;SPAN class="code-object"&gt;System&lt;/SPAN&gt;.err
log4j.appender.console.layout=org.apache.log4j.PatternLayout&lt;BR /&gt;&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Then click&amp;nbsp;&lt;STRONG&gt;Save changes&lt;/STRONG&gt; and &lt;STRONG&gt;Re-deploy client configuration&lt;/STRONG&gt; (restart Oozie).&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 17:23:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-Main-class-org-apache-oozie-action/m-p/51996#M56217</guid>
      <dc:creator>asasvari</dc:creator>
      <dc:date>2017-03-09T17:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-Main-class-org-apache-oozie-action/m-p/52034#M56218</link>
      <description>Thank a lot!!&lt;BR /&gt;&lt;BR /&gt;this removed the error from the logs. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 10 Mar 2017 11:05:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-Main-class-org-apache-oozie-action/m-p/52034#M56218</guid>
      <dc:creator>anirbandd</dc:creator>
      <dc:date>2017-03-10T11:05:35Z</dc:date>
    </item>
  </channel>
</rss>

