<?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 Unable to fetch twitter data using flume getting java heap outofmemory error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-fetch-twitter-data-using-flume-getting-java-heap/m-p/49844#M52323</link>
    <description>&lt;P&gt;when i execute below command from terminal with sudo user getting below error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;command:sudo flume-ng agent -n TwitterAgent -c /opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/lib/flume-ng/conf -f /opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/lib/flume-ng/conf/flumetwitter.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;at twitter4j.AbstractStreamImplementation$1.run(AbstractStreamImplementation.java:100)&lt;BR /&gt;at twitter4j.internal.async.ExecuteThread.run(DispatcherImpl.java:116)&lt;BR /&gt;Exception in thread "Twitter Stream consumer-1[Receiving stream]" java.lang.OutOfMemoryError: Java heap space&lt;BR /&gt;at java.util.Arrays.copyOf(Arrays.java:2367)&lt;BR /&gt;at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)&lt;/P&gt;&lt;P&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Twitter Stream consumer-1[Receiving stream]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;requesting any one guide me in resolving above issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:56:18 GMT</pubDate>
    <dc:creator>vamsibalineni</dc:creator>
    <dc:date>2022-09-16T10:56:18Z</dc:date>
    <item>
      <title>Unable to fetch twitter data using flume getting java heap outofmemory error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-fetch-twitter-data-using-flume-getting-java-heap/m-p/49844#M52323</link>
      <description>&lt;P&gt;when i execute below command from terminal with sudo user getting below error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;command:sudo flume-ng agent -n TwitterAgent -c /opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/lib/flume-ng/conf -f /opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/lib/flume-ng/conf/flumetwitter.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;at twitter4j.AbstractStreamImplementation$1.run(AbstractStreamImplementation.java:100)&lt;BR /&gt;at twitter4j.internal.async.ExecuteThread.run(DispatcherImpl.java:116)&lt;BR /&gt;Exception in thread "Twitter Stream consumer-1[Receiving stream]" java.lang.OutOfMemoryError: Java heap space&lt;BR /&gt;at java.util.Arrays.copyOf(Arrays.java:2367)&lt;BR /&gt;at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)&lt;/P&gt;&lt;P&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Twitter Stream consumer-1[Receiving stream]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;requesting any one guide me in resolving above issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:56:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-fetch-twitter-data-using-flume-getting-java-heap/m-p/49844#M52323</guid>
      <dc:creator>vamsibalineni</dc:creator>
      <dc:date>2022-09-16T10:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to fetch twitter data using flume getting java heap outofmemory error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-fetch-twitter-data-using-flume-getting-java-heap/m-p/49852#M52324</link>
      <description>&lt;P&gt;yes!&lt;/P&gt;&lt;P&gt;my self i found the answer for this issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;solution:&lt;/P&gt;&lt;P&gt;increse the java heap size using the command&lt;/P&gt;&lt;P&gt;export JAVA_OPTS="-Xms1000m -Xmx3000m -Dcom.sun.management.jmxremote"&lt;/P&gt;&lt;P&gt;or else modify the same in flume-env.sh which you can find in conf directory under flume instalation&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 13:31:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-fetch-twitter-data-using-flume-getting-java-heap/m-p/49852#M52324</guid>
      <dc:creator>vamsibalineni</dc:creator>
      <dc:date>2017-01-24T13:31:00Z</dc:date>
    </item>
  </channel>
</rss>

