Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!

Spark Job using a tHMapFile component adds an extra newline character in the output file

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Spark Job using a tHMapFile component adds an extra newline character in the output file

Last Update:

Feb 9, 2024 1:22:49 PM

Updated By:

Jamie_Gregory

Created date:

Apr 1, 2021 6:20:49 AM

Problem Description

The output file generated by the tHMapFile component in Spark batch Job has an extra newline character after every record.

 

Root Cause

Creating a Flat representation adds an __osdtTerminator element at the end of the file. Also, in a Big Data environment, each output record is seen as its own file by the Flat representation. As a result, you get an extra newline character.

 

Solution

Remove the __osdtTerminatorelement from the file representation and clear the Output as delimited? check box in Flat representation.

0693p000008uGBGAA2.png

Version history
Last update:
‎2024-02-09 01:22 PM
Updated by: