<?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: Java action expiring in Oozie in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-action-expiring-in-Oozie/m-p/34941#M10950</link>
    <description>&lt;P&gt;Thanks for your response. The problem is already solved. My Java action uses an instance (say variable fs) of org.apache.hadoop.fs.FileSystem class. At the end of the Java action, I use fs.close(), which will cause the problem on the next period of Oozie job. So when I removed this line, everything went well again.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2015 02:09:20 GMT</pubDate>
    <dc:creator>jdb</dc:creator>
    <dc:date>2015-12-09T02:09:20Z</dc:date>
    <item>
      <title>Java action expiring in Oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-action-expiring-in-Oozie/m-p/34329#M10948</link>
      <description>&lt;P&gt;I have an Oozie coordinator that runs a workflow every hour. The workflow is composed of two sequential actions: a shell action and a Java action. When I run the coordinator, the shell action seems to execute successfully, however, when it's time for the Java action, the Job Browser in Hue always show:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;There was a problem communicating with the server: Job application_&amp;lt;java-action-id&amp;gt; has expired.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I click on the application_id, here's the snapshot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="oozie_java_action_fail.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/1274i18F6202E5F2FF27F/image-size/large?v=v2&amp;amp;px=999" role="button" title="oozie_java_action_fail.PNG" alt="oozie_java_action_fail.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This seems to point on views.py and api.py. When I looked into server logs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[23/Nov/2015 02:25:22 -0800] middleware   INFO     Processing exception: Job application_1448245438537_0010 has expired.: Traceback (most recent call last):
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/transaction.py", line 371, in inner
    return func(*args, **kwargs)
  File "/usr/lib/hue/apps/jobbrowser/src/jobbrowser/views.py", line 67, in decorate
    raise PopupException(_('Job %s has expired.') % jobid, detail=_('Cannot be found on the History Server.'))
PopupException: Job application_1448245438537_0010 has expired.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the workflow as a standalone, I've got a 50-50 chance of success and expiration on the Java action part, but on coordinator, all Java action's are expiring.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Cloudera Quickstart CDH 5.4.0&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:50:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-action-expiring-in-Oozie/m-p/34329#M10948</guid>
      <dc:creator>jdb</dc:creator>
      <dc:date>2022-09-16T09:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Java action expiring in Oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-action-expiring-in-Oozie/m-p/34911#M10949</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any detailed error message in stdout.log/stderr.log under&lt;/P&gt;&lt;P&gt;/var/run/cloudera-scm-agent/process/xx-hue-HUE_SERVER/logs&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;/var/run/cloudera-scm-agent/process/yy-oozie-OOZIE_SERVER/logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you run the Java action through the workflow-only is the error message the same?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 12:33:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-action-expiring-in-Oozie/m-p/34911#M10949</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2015-12-08T12:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Java action expiring in Oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-action-expiring-in-Oozie/m-p/34941#M10950</link>
      <description>&lt;P&gt;Thanks for your response. The problem is already solved. My Java action uses an instance (say variable fs) of org.apache.hadoop.fs.FileSystem class. At the end of the Java action, I use fs.close(), which will cause the problem on the next period of Oozie job. So when I removed this line, everything went well again.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 02:09:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-action-expiring-in-Oozie/m-p/34941#M10950</guid>
      <dc:creator>jdb</dc:creator>
      <dc:date>2015-12-09T02:09:20Z</dc:date>
    </item>
  </channel>
</rss>

