I am getting Java heap space issue while using forceAPI.
Stack trace :
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569)
at java.lang.StringBuilder.append(StringBuilder.java:190)
at org.apache.commons.io.output.StringBuilderWriter.write(StringBuilderWriter.java:138)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2002)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1980)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:1957)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:1907)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:778)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:803)
at com.springml.salesforce.wave.util.HTTPHelper.execute(HTTPHelper.java:123)
at com.springml.salesforce.wave.util.HTTPHelper.get(HTTPHelper.java:91)
at com.springml.salesforce.wave.util.HTTPHelper.get(HTTPHelper.java:95)
at com.springml.salesforce.wave.impl.ForceAPIImpl.query(ForceAPIImpl.java:138)
at com.springml.salesforce.wave.impl.ForceAPIImpl.queryMore(ForceAPIImpl.java:46)
at com.springml.spark.salesforce.DatasetRelation.querySF(DatasetRelation.scala:109)
at com.springml.spark.salesforce.DatasetRelation.read(DatasetRelation.scala:47)
at com.springml.spark.salesforce.DatasetRelation.(DatasetRelation.scala:39)
at com.springml.spark.salesforce.DefaultSource.createRelation(DefaultSource.scala:99)
at com.springml.spark.salesforce.DefaultSource.createRelation(DefaultSource.scala:50)
at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:318)
at org.apache.spark.sql.DataFrameReader.loadV1Source(DataFrameReader.scala:223)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:211)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:167)
I am getting Java heap space issue while using forceAPI.
Stack trace :
Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3332) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569) at java.lang.StringBuilder.append(StringBuilder.java:190) at org.apache.commons.io.output.StringBuilderWriter.write(StringBuilderWriter.java:138) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2002) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1980) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1957) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1907) at org.apache.commons.io.IOUtils.toString(IOUtils.java:778) at org.apache.commons.io.IOUtils.toString(IOUtils.java:803) at com.springml.salesforce.wave.util.HTTPHelper.execute(HTTPHelper.java:123) at com.springml.salesforce.wave.util.HTTPHelper.get(HTTPHelper.java:91) at com.springml.salesforce.wave.util.HTTPHelper.get(HTTPHelper.java:95) at com.springml.salesforce.wave.impl.ForceAPIImpl.query(ForceAPIImpl.java:138) at com.springml.salesforce.wave.impl.ForceAPIImpl.queryMore(ForceAPIImpl.java:46) at com.springml.spark.salesforce.DatasetRelation.querySF(DatasetRelation.scala:109) at com.springml.spark.salesforce.DatasetRelation.read(DatasetRelation.scala:47) at com.springml.spark.salesforce.DatasetRelation.(DatasetRelation.scala:39)
at com.springml.spark.salesforce.DefaultSource.createRelation(DefaultSource.scala:99)
at com.springml.spark.salesforce.DefaultSource.createRelation(DefaultSource.scala:50)
at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:318)
at org.apache.spark.sql.DataFrameReader.loadV1Source(DataFrameReader.scala:223)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:211)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:167)