Reputation: 11
I am exporting data by suing "table input" step to "text_file_output" step into csv file, but failing to export even 10 records in the csv file because of "java.lang.OutOfMemoryError: Requested array size exceeds VM limit"
My spoon.bat file has below parameters already set but no luck yet.
PENTAHO_DI_JAVA_OPTIONS="-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m" "-XX:+UseCompressedOops" "-XX:+HeapDumpOnOutOfMemoryError"
Upvotes: 1
Views: 611
Reputation: 41
I've been struggling for an hour on this problem and it finally was only about a stupid default length Pentaho set on some String fields in the "fields" tab of the Text File Ouput step.
Just set the string's lenght to your needs, which should be way below the default one, or set it empty, and everything shall work like a charm, including formatting.
NB In my case Pentaho set this huge default length to variable lenght postgresql fields (varchar)
Upvotes: 0
Reputation: 546
Try ticking the "Fast data dump (no formatting)" box in the Content section of Text file output step.
Upvotes: 2