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.

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
Don't have an account?
Coming from Hortonworks? Activate your account here