[ 
https://issues.apache.org/jira/browse/NIFI-3354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Zhurakousky updated NIFI-3354:
-----------------------------------
    Attachment: csv_content.txt
                NIFI-3354.xml

Attaching template (NIFI-3354.xml) and sample content (csv_content.txt) for 
testing.
Drop the file (csv_content.txt) into GetFile's directory and watch it come out 
the other side in PutFile. The source and output should look identical.
Additionally in the logs you should see the output from the LogAttribute. Keep 
an eye on the shown below (they must be there)
{code}
Standard FlowFile Attributes
. . .
FlowFile Attribute Map Content
Key: 'DRIVER_NAME'
        Value: 'John Doe'
Key: 'EVENT_TYPE'
        Value: 'Normal'
. . .
Key: 'schema.text'
        Value: 
'{"type":"record","name":"truckgeoevent","namespace":"hortonworks.hdp.refapp.trucking","fields":[{"name":"eventTime","type":"string"},{"name":"eventSource","type":"string"},{"name":"truckId","type":"int"},{"name":"driverId","type":"int"},{"name":"driverName","type":"string"},{"name":"routeId","type":"int"},{"name":"route","type":"string"},{"name":"eventType","type":"string"},{"name":"longitude","type":"double"},{"name":"latitude","type":"double"},{"name":"correlationId","type":"long"}]}'
. . .
{code}

> Create CSV To Avro transformer
> ------------------------------
>
>                 Key: NIFI-3354
>                 URL: https://issues.apache.org/jira/browse/NIFI-3354
>             Project: Apache NiFi
>          Issue Type: Sub-task
>            Reporter: Oleg Zhurakousky
>            Assignee: Oleg Zhurakousky
>             Fix For: 1.2.0
>
>         Attachments: csv_content.txt, NIFI-3354.xml
>
>
> While we currently have CSV to AVRO transformer it required HDFS/Kite 
> dependencies which could be easily eliminated.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to