<?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>topic EMR issues, MapReduce job killed in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/EMR-issues-MapReduce-job-killed/m-p/143595#M185047</link>
    <description>&lt;P&gt;I'm running into an issue with Hunk searches that spawn a MapReduce job in my EMR cluster. The MR job seems to be killed after some time, even though no user issued a kill command to the job - so somehow it seems like Hunk is killing the job. Digging through the task logs I noticed the following &lt;STRONG&gt;interesting&lt;/STRONG&gt; line&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INFO com.splunk.mr.SplunkMR$SplunkBaseMapper (main): No heart beat received from Splunk, killing the MR job id=job_201310150205_0001
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Nov 2013 03:20:06 GMT</pubDate>
    <dc:creator>Ledion_Bitincka</dc:creator>
    <dc:date>2013-11-15T03:20:06Z</dc:date>
    <item>
      <title>EMR issues, MapReduce job killed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/EMR-issues-MapReduce-job-killed/m-p/143595#M185047</link>
      <description>&lt;P&gt;I'm running into an issue with Hunk searches that spawn a MapReduce job in my EMR cluster. The MR job seems to be killed after some time, even though no user issued a kill command to the job - so somehow it seems like Hunk is killing the job. Digging through the task logs I noticed the following &lt;STRONG&gt;interesting&lt;/STRONG&gt; line&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INFO com.splunk.mr.SplunkMR$SplunkBaseMapper (main): No heart beat received from Splunk, killing the MR job id=job_201310150205_0001
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2013 03:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/EMR-issues-MapReduce-job-killed/m-p/143595#M185047</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2013-11-15T03:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: EMR issues, MapReduce job killed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/EMR-issues-MapReduce-job-killed/m-p/143596#M185048</link>
      <description>&lt;P&gt;This issue is caused by a mechanism that Hunk has in place to reduce the runaway jobs - ie MapReduce jobs which keep running even though the client is not interested in the results. Hunk solves this problem by having the Hunk server heartbeat in a specific location in the file system (hdfs/maprf/s3n ...) and the map tasks check the heartbeat to ensure that the Hunk search is still running. However, this relies on the filesystem rename operations to happen relatively quickly (&amp;lt;1s)- in some filesystems, like s3n, the renames operations take a much longer time, when this time exceeds the missed heartbeat threshold the MapReduce job commits suicide and you see the above log message. The runway job logic can be completely disabled by setting the following variable in the provider&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;vix.splunk.heartbeat = 0 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or you can tinker with the default heartbeat interval (in ms) and threshold (in missed heartbeats) by setting/updating&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;vix.splunk.heartbeat.threshold     = 60
vix.splunk.heartbeat.interval      = 1000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Finally, it might be a good idea to switch to using s3 rather than s3n, according to &lt;A href="http://wiki.apache.org/hadoop/AmazonS3"&gt;this article&lt;/A&gt; s3 offers efficient implementation of renames&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 05:21:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/EMR-issues-MapReduce-job-killed/m-p/143596#M185048</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2013-11-15T05:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: EMR issues, MapReduce job killed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/EMR-issues-MapReduce-job-killed/m-p/143597#M185049</link>
      <description>&lt;P&gt;Are there any guidance for tuning the following values?&lt;/P&gt;

&lt;P&gt;vix.splunk.heartbeat.threshold = 60&lt;BR /&gt;
vix.splunk.heartbeat.interval = 1000&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 22:22:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/EMR-issues-MapReduce-job-killed/m-p/143597#M185049</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2015-04-08T22:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: EMR issues, MapReduce job killed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/EMR-issues-MapReduce-job-killed/m-p/143598#M185050</link>
      <description>&lt;P&gt;vix.splunk.heartbeat.threshold - number of heartbeat delayed by search head before MR job commits suicide&lt;BR /&gt;
vix.splunk.heartbeat.interval - how often does search head heartbeat&lt;/P&gt;

&lt;P&gt;heartbeat is achieved by renaming a heartbeat file from search head. The default 1 second interval assumes your file system rename operation can be done in a second. If that’s not the case, e.g. s3n system, or the network connection between search head to Hadoop NameNode is slow, or simply because your Hadoop cluster is too busy to react, you should increase the interval. On the other hand, you could decrease heartbeat threshold to make Hunk kill run away MR job more promptly.  &lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2015 02:33:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/EMR-issues-MapReduce-job-killed/m-p/143598#M185050</guid>
      <dc:creator>hyan_splunk</dc:creator>
      <dc:date>2015-04-09T02:33:42Z</dc:date>
    </item>
  </channel>
</rss>

