Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

NiFi evaluateJsonPath processor emits only one record per flow file

Highlighted

NiFi evaluateJsonPath processor emits only one record per flow file

New Contributor

When NiFi flow files has batch of json records separated by newline the EvaluateJsonPath emits out only the first record in flow files dropping all other following records. Splitting the files into records is very inefficient. Is there any way to parse json records in batch?

1 REPLY 1

Re: NiFi evaluateJsonPath processor emits only one record per flow file

Super Guru
@Puneet Singh

Read Json records with new line delimiter using Record based processor is not possible until NiFi-1.7.0 version, This NIFI-4456 bug and has been fixed starting from NiFi-1.7 version.
-
Starting from NiFi-1.7+ we are able to read the newline delimiter json records using Record based processors.

-
If you want to read the new line delimiter json records then possible workaround is either using MergeContent (or) MergeRecord processors.

-

Refer to this question in SO for the same usecase, I have explained in detail how to configure MergeContent processors to read the newline delimiter json messages in NiFi.

-

If the Answer helped to resolve your issue, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues.