as defined in the schema to the next component.
tFileInputARFF Standard properties
These properties are used to configure tFileInputARFF running in the Standard Job
tFileInputARFF component belongs to the File family.
The component in this framework is available in all Talend
Either Built-in or Repository.
Built-in: No property
Repository: Select the
Click this icon to open a connection wizard and
For more information about setting up and
Name and path of the ARFF file and/or variable
For further information about how to define and
Warning: Use absolute path (instead of relative path) for
this field to avoid possible errors.
Schema and Edit Schema
A schema is a row description, it defines the
Built-in: The schema
Repository: The schema
Select the encoding type from the list or
Select this check box to gather the processing
NB_LINE: the number of rows processed. This is an After
ERROR_MESSAGE: the error message generated by the
A Flow variable functions during the execution of a component while an After variable
To fill up a field or expression with a variable, press Ctrl +
For further information about variables, see
Use this component to read a file and separate
Due to license incompatibility, one or more JARs required to use
Displaying the content of a ARFF file
This scenario describes a two-component Job in which the rows of an ARFF file
are read, the delimited data is selected and the output is displayed in the Run view.
An ARFF file looks like the following:
It is generally made of two parts. The first part describes the data
structure, that is to say the rows which begin by
@attribute and the second part comprises the raw data, which follows the
Dropping and linking components
Drop the tFileInputARFF component from
the Palette onto the workspace.
In the same way, drop the tLogRow
Right-click the tFileInputARFF and select
Row > Main in the menu. Then, drag
the link to the tLogRow, and click it. The
link is created and appears.
Configuring the components
- Double-click the tFileInputARFF.
In the Component view, in the File Name field, browse your directory in order
to select your .arff file.
- In the Schema field, select Built-In.
Click the […] button next to Edit schema to add column descriptions
corresponding to the file to be read.
Click on the
button as many times as required to create the number
of columns required, according to the source file. Name the columns as
For every column, the Nullable check box
is selected by default. Leave the check boxes selected, for all of the
- Click OK.
In the workspace, double-click the tLogRow
to display its Component view.
Click the […] button next to Edit schema to check that the schema has been
propagated. If not, click the Sync columns
Saving and executing the Job
- Press Ctrl+S to save your Job.
Press F6 to execute your Job.
The console displays the data contained in the ARFF file, delimited using
a vertical line (the default separator).