<?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: Question - Is there any way to skip checking for jobHistory server to avoid Oozie job failures in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164964#M53705</link>
    <description>&lt;P&gt;I did the bit of research and looked into the code and found that currently there is no TIMEOUT parameter on Oozie level. I have raised an internal enhancement request for this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;##Snipped from JavaActionExecutor.java## &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;try { 
Element actionXml = XmlUtils.parseXml(action.getConf()); 
FileSystem actionFs = context.getAppFileSystem(); 
JobConf jobConf = createBaseHadoopConf(context, actionXml); 
jobClient = createJobClient(context, jobConf); 
RunningJob runningJob = getRunningJob(context, action, jobClient); 
if (runningJob == null) { 
context.setExecutionData(FAILED, null); 
throw new ActionExecutorException(ActionExecutorException.ErrorType.FAILED, "JA017", 
"Unknown hadoop job [{0}] associated with action [{1}]. Failing this action!", action 
.getExternalId(), action.getId()); 
} &lt;/PRE&gt;&lt;PRE&gt;protected RunningJob getRunningJob(Context context, WorkflowAction action, JobClient jobClient) throws Exception{ 
RunningJob runningJob = jobClient.getJob(JobID.forName(action.getExternalId())); 
return runningJob; 
} &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;##Snippet from Mapreduce code(JobClient.java)## &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;public RunningJob getJob(JobID jobid) throws IOException { 
JobStatus status = jobSubmitClient.getJobStatus(jobid); 
JobProfile profile = jobSubmitClient.getJobProfile(jobid); 
if (status != null &amp;amp;&amp;amp; profile != null) { 
return new NetworkedJob(status, profile, jobSubmitClient); 
} else { 
return null; 
} 
} &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;##Snippet from JobSubmissionProtocol.java (mapreduce code)## &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;/** 
* Grab a handle to a job that is already known to the JobTracker. 
* @return Status of the job, or null if not found. 
*/ 
public JobStatus getJobStatus(JobID jobid) throws IOException; &lt;/PRE&gt;&lt;P&gt;So I got answer to my question! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 01:49:26 GMT</pubDate>
    <dc:creator>KuldeepK</dc:creator>
    <dc:date>2017-02-10T01:49:26Z</dc:date>
    <item>
      <title>Question - Is there any way to skip checking for jobHistory server to avoid Oozie job failures</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164958#M53699</link>
      <description>&lt;P&gt;Is there any way to skip checking for jobHistory server to avoid Oozie job failures. Sometimes when JobHistory server is down or getting restarted, Oozie job gets failed with an error like "Unknown job id" error ( When it fails to connect to JobHistory server, which is expected )&lt;/P&gt;&lt;P&gt;Any idea how can we workaround on this error? Any timeout parameter? &lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 04:33:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164958#M53699</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2017-02-08T04:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question - Is there any way to skip checking for jobHistory server to avoid Oozie job failures</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164959#M53700</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/195/vranganathan.html" nodeid="195"&gt;@Venkat Ranganathan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/179/pbishnoi.html" nodeid="179"&gt;@peeyush&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2390/abafna.html" nodeid="2390"&gt;@Abhish&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2390/abafna.html" nodeid="2390"&gt;ek Bafna&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 04:35:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164959#M53700</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2017-02-08T04:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Question - Is there any way to skip checking for jobHistory server to avoid Oozie job failures</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164960#M53701</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/282/dgoodhand.html" nodeid="282"&gt;@dgoodhand&lt;/A&gt;</description>
      <pubDate>Wed, 08 Feb 2017 04:36:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164960#M53701</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2017-02-08T04:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Question - Is there any way to skip checking for jobHistory server to avoid Oozie job failures</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164961#M53702</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/282/dgoodhand.html" nodeid="282"&gt;@dgoodhand&lt;/A&gt;&lt;P&gt;     &lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 04:36:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164961#M53702</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2017-02-08T04:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Question - Is there any way to skip checking for jobHistory server to avoid Oozie job failures</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164962#M53703</link>
      <description>&lt;P&gt;Maybe you try troubleshooting your Job History server instead. It's not supposed to be down. A busy Job History server requires a reasonable amount of memory, like 8G or more.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 06:54:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164962#M53703</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-02-08T06:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Question - Is there any way to skip checking for jobHistory server to avoid Oozie job failures</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164963#M53704</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt; - Yes that's correct. but if JHS is being restarted for some reason and Oozie tries to connect to JHS, jobs will get failed. I'm looking for timeout parameter which can hold jobs until JHS is back&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 20:02:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164963#M53704</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2017-02-08T20:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question - Is there any way to skip checking for jobHistory server to avoid Oozie job failures</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164964#M53705</link>
      <description>&lt;P&gt;I did the bit of research and looked into the code and found that currently there is no TIMEOUT parameter on Oozie level. I have raised an internal enhancement request for this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;##Snipped from JavaActionExecutor.java## &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;try { 
Element actionXml = XmlUtils.parseXml(action.getConf()); 
FileSystem actionFs = context.getAppFileSystem(); 
JobConf jobConf = createBaseHadoopConf(context, actionXml); 
jobClient = createJobClient(context, jobConf); 
RunningJob runningJob = getRunningJob(context, action, jobClient); 
if (runningJob == null) { 
context.setExecutionData(FAILED, null); 
throw new ActionExecutorException(ActionExecutorException.ErrorType.FAILED, "JA017", 
"Unknown hadoop job [{0}] associated with action [{1}]. Failing this action!", action 
.getExternalId(), action.getId()); 
} &lt;/PRE&gt;&lt;PRE&gt;protected RunningJob getRunningJob(Context context, WorkflowAction action, JobClient jobClient) throws Exception{ 
RunningJob runningJob = jobClient.getJob(JobID.forName(action.getExternalId())); 
return runningJob; 
} &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;##Snippet from Mapreduce code(JobClient.java)## &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;public RunningJob getJob(JobID jobid) throws IOException { 
JobStatus status = jobSubmitClient.getJobStatus(jobid); 
JobProfile profile = jobSubmitClient.getJobProfile(jobid); 
if (status != null &amp;amp;&amp;amp; profile != null) { 
return new NetworkedJob(status, profile, jobSubmitClient); 
} else { 
return null; 
} 
} &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;##Snippet from JobSubmissionProtocol.java (mapreduce code)## &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;/** 
* Grab a handle to a job that is already known to the JobTracker. 
* @return Status of the job, or null if not found. 
*/ 
public JobStatus getJobStatus(JobID jobid) throws IOException; &lt;/PRE&gt;&lt;P&gt;So I got answer to my question! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 01:49:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-Is-there-any-way-to-skip-checking-for-jobHistory/m-p/164964#M53705</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2017-02-10T01:49:26Z</dc:date>
    </item>
  </channel>
</rss>

