<?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 ERP.hive-tt -  Exception in thread &amp;quot;main&amp;quot; java.lang.OutOfMemoryError: Java heap space in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268908#M3363</link>
    <description>&lt;P&gt;What setting should I try increasing to avoid getting this Hunk + Hive error?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10-08-2015 00:31:55.626 INFO  ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.readDiskRanges(RecordReaderImpl.java:3085)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.readPartialDataStreams(RecordReaderImpl.java:3194)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.readStripe(RecordReaderImpl.java:2796)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.advanceStripe(RecordReaderImpl.java:3213)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.advanceToNextRow(RecordReaderImpl.java:3255)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.&amp;lt;init&amp;gt;(RecordReaderImpl.java:322)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.ReaderImpl.rowsOptions(ReaderImpl.java:534)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.createReaderFromFile(OrcInputFormat.java:234)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.OrcInputFormat$OrcRecordReader.&amp;lt;init&amp;gt;(OrcInputFormat.java:166)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getRecordReader(OrcInputFormat.java:1133)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.HiveRecordReader.vixInitialize(HiveRecordReader.java:206)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.BaseSplunkRecordReader.initialize(BaseSplunkRecordReader.java:95)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.JobSubmitterInputFormat.createRecordReader(JobSubmitterInputFormat.java:66)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkBaseMapper.stream(SplunkBaseMapper.java:323)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler.streamData(SplunkMR.java:644)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler$1.accept(SplunkMR.java:656)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler$1.accept(SplunkMR.java:653)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.HiveSplitGenerator.sendSplitToAcceptor(HiveSplitGenerator.java:80)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.FileSplitGenerator.generateSplits(FileSplitGenerator.java:68)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex$FileSplitter.accept(VirtualIndex.java:1418)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex$FileSplitter.accept(VirtualIndex.java:1396)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex$VIXPathSpecifier.addStatus(VirtualIndex.java:576)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex$VIXPathSpecifier.listStatus(VirtualIndex.java:609)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex$Splitter.generateSplits(VirtualIndex.java:1566)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex.generateSplits(VirtualIndex.java:1485)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex.generateSplits(VirtualIndex.java:1437)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VixSplitGenerator.generateSplits(VixSplitGenerator.java:55)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler.streamData(SplunkMR.java:674)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler.executeImpl(SplunkMR.java:936)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler.execute(SplunkMR.java:771)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR.runImpl(SplunkMR.java:1518)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR.run(SplunkMR.java:1300)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Oct 2015 20:54:38 GMT</pubDate>
    <dc:creator>tsunamii</dc:creator>
    <dc:date>2015-10-09T20:54:38Z</dc:date>
    <item>
      <title>ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268908#M3363</link>
      <description>&lt;P&gt;What setting should I try increasing to avoid getting this Hunk + Hive error?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10-08-2015 00:31:55.626 INFO  ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.readDiskRanges(RecordReaderImpl.java:3085)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.readPartialDataStreams(RecordReaderImpl.java:3194)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.readStripe(RecordReaderImpl.java:2796)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.advanceStripe(RecordReaderImpl.java:3213)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.advanceToNextRow(RecordReaderImpl.java:3255)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.&amp;lt;init&amp;gt;(RecordReaderImpl.java:322)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.ReaderImpl.rowsOptions(ReaderImpl.java:534)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.createReaderFromFile(OrcInputFormat.java:234)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.OrcInputFormat$OrcRecordReader.&amp;lt;init&amp;gt;(OrcInputFormat.java:166)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getRecordReader(OrcInputFormat.java:1133)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.HiveRecordReader.vixInitialize(HiveRecordReader.java:206)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.BaseSplunkRecordReader.initialize(BaseSplunkRecordReader.java:95)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.JobSubmitterInputFormat.createRecordReader(JobSubmitterInputFormat.java:66)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkBaseMapper.stream(SplunkBaseMapper.java:323)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler.streamData(SplunkMR.java:644)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler$1.accept(SplunkMR.java:656)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler$1.accept(SplunkMR.java:653)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.HiveSplitGenerator.sendSplitToAcceptor(HiveSplitGenerator.java:80)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.FileSplitGenerator.generateSplits(FileSplitGenerator.java:68)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex$FileSplitter.accept(VirtualIndex.java:1418)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex$FileSplitter.accept(VirtualIndex.java:1396)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex$VIXPathSpecifier.addStatus(VirtualIndex.java:576)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex$VIXPathSpecifier.listStatus(VirtualIndex.java:609)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex$Splitter.generateSplits(VirtualIndex.java:1566)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex.generateSplits(VirtualIndex.java:1485)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VirtualIndex.generateSplits(VirtualIndex.java:1437)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.input.VixSplitGenerator.generateSplits(VixSplitGenerator.java:55)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler.streamData(SplunkMR.java:674)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler.executeImpl(SplunkMR.java:936)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR$SearchHandler.execute(SplunkMR.java:771)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR.runImpl(SplunkMR.java:1518)
10-08-2015 00:31:55.626 INFO  ERP.hive-tt -     at com.splunk.mr.SplunkMR.run(SplunkMR.java:1300)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Oct 2015 20:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268908#M3363</guid>
      <dc:creator>tsunamii</dc:creator>
      <dc:date>2015-10-09T20:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268909#M3364</link>
      <description>&lt;P&gt;The failure happened while the ORC Record Reader is trying to read a stripe of data. Increasing the heap size should help.&lt;BR /&gt;
In the Hunk Provider, what is the value of vix.env.HADOOP_HEAPSIZE?&lt;BR /&gt;
By default it is 512 and increasing it should fix the OOM error.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 05:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268909#M3364</guid>
      <dc:creator>rdagan_splunk</dc:creator>
      <dc:date>2015-10-13T05:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268910#M3365</link>
      <description>&lt;P&gt;Thanks @rdagan for the suggestion.&lt;/P&gt;

&lt;P&gt;I have found the problem:&lt;BR /&gt;
We recently upgraded the grid package, which also updated the file hadoop-env.sh and removed the line I had commented out the export HADOOP_CLIENT_OPTS="-Xmx128m ${HADOOP_CLIENT_OPTS}" and thus I was not getting the HADOOP HEAP SIZE I thought. &lt;/P&gt;

&lt;P&gt;I fixed that and now my job runs for a long time. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:37:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268910#M3365</guid>
      <dc:creator>tsunamii</dc:creator>
      <dc:date>2020-09-29T07:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268911#M3366</link>
      <description>&lt;P&gt;Keep in mind that the value for vix.env.HADOOP_HEAPSIZE is per Hunk search, increasing it too much and if&lt;BR /&gt;
you run many concurrent searches can potentially exhaust your available physical memory.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 17:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268911#M3366</guid>
      <dc:creator>splunkIT</dc:creator>
      <dc:date>2015-10-13T17:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268912#M3367</link>
      <description>&lt;P&gt;I am in a situation where I cannot easily comment out the line in hadoop-env.sh (it gets overwritten when I update any packages.)&lt;/P&gt;

&lt;P&gt;Is it possible to set these Hadoop variables with an export of HADOOP_CLIENT_OPTS instead of setting them in indexes.conf? Does that work?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268912#M3367</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2020-09-29T08:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268913#M3368</link>
      <description>&lt;P&gt;Yes, that should work, and I believe it's the preferred way to do this. The line mentioned above puts any user-defined Xmx value after the default 128m value, meaning the user-defined value should win. &lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 20:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268913#M3368</guid>
      <dc:creator>kschon_splunk</dc:creator>
      <dc:date>2015-12-17T20:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268914#M3369</link>
      <description>&lt;P&gt;Thanks Keith. &lt;/P&gt;

&lt;P&gt;So to increase heap size to 2048 would that be export HADOOP_CLIENT_OPTS="-Xmx2048m"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:11:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268914#M3369</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2020-09-29T08:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268915#M3370</link>
      <description>&lt;P&gt;Yes, that should work.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 21:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268915#M3370</guid>
      <dc:creator>kschon_splunk</dc:creator>
      <dc:date>2015-12-17T21:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268916#M3371</link>
      <description>&lt;P&gt;Thanks. Is there a good way to test what the setting is? i.e. to make sure the EXPORT is working?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 21:37:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268916#M3371</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2015-12-17T21:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: ERP.hive-tt -  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268917#M3372</link>
      <description>&lt;P&gt;A few points:&lt;/P&gt;

&lt;P&gt;--I just realized we're ignoring the obvious way to handle this: change the vix.env.HADOOP_CLIENT_OPTS setting in the provider. That will overwrite any value inherited from the user environment.&lt;/P&gt;

&lt;P&gt;--To test what value is being used, you can edit your hadoop script. This will usually be in /bin/hadoop. You can insert a line that looks like:&lt;/P&gt;

&lt;P&gt;echo $HADOOP_CLIENT_OPTS &amp;gt; ~/my_hadoop_client_opts.txt&lt;/P&gt;

&lt;P&gt;Then run a search in Hunk, and see what that file contains.&lt;/P&gt;

&lt;P&gt;--Depending on your Hadoop distribution, you may need to set $HADOOP_OPTS instead.&lt;/P&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:11:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/ERP-hive-tt-Exception-in-thread-quot-main-quot-java-lang/m-p/268917#M3372</guid>
      <dc:creator>kschon_splunk</dc:creator>
      <dc:date>2020-09-29T08:11:20Z</dc:date>
    </item>
  </channel>
</rss>

