Step 1. Create a Transformation that Transforms Avro
Step 1. Create a Transformation that Transforms Avro
Create a Data Processor transformation with Avro input, Avro output, or both.
In the Developer tool, click
File
New
Transformation
.
Select the Data Processor transformation and click
Next
.
Enter a name for the transformation and browse for a Model Repository location to put the transformation.
Select
Create a data processor using a wizard
and click
Next
.
Select Avro or another input format and click
Next
.
If you selected Avro as the input format, browse to select an .xsd schema file or sample Avro file. Click
Next
.
Developer adds an .xsd schema file representing the Avro hierarchy to the Model Repository. If you select a sample file, Developer creates a test file from the first record in the sample file. You can use this file to test the transformation. To find the file, in the
Ports
panel of the
Overview
view, check the path file listed in the
Input Location
field.
Select Avro or another output format and click
Next
.
If you select Avro as an output format, browse to select a related schema or sample Avro file. Click
Next
.
Click
Finish
.
The Developer tool creates the transformation in the repository with the relevant components, such as an XMap to transform the Avro hierarchy into another hierarchy format. The
Overview
view appears in the Developer tool.
To edit the components in the transformation, in the
Objects
view, double click the transformation component to open it in the relevant editor.