Support Questions
Find answers, ask questions, and share your expertise

Only one record transformed while using JOLTTransformJSON

Only one record transformed while using JOLTTransformJSON

Hi,

I have a use case to rename 3 of the columns in an incoming JSON file and store it into HDFS. I was using the JOLTTransformJSON processor to achieve this. The processor is working fine renaming the columns as expected. However the issue is it transforms only the first record and resulting one only record written to HDFS instead of few thousands present in the input.

The spec i used is,

[ { "operation": "shift", "spec": { "accountId": "vendorAccountId", "masterTransactionId": "errorMasterTransactionId", "requestUrl": "errorRequestUrl", "*": { "@": "&" } } } ] .

Please help.


jolt-attributes.png