The information in this section is for subscription-based Talend Studio users only and is not applicable to Talend Open Studio for Big Data users.
In designing or executing a Job, you often need to view the source data to be processed or the output data after the execution. The Data viewer allows you to access the data directly from the Studio, without using any specific extra tools.
For most cases, the only prerequisite is that you must have properly configured the connection from this Job to the Hadoop distribution where the data of interest is stored.
To view the source data, right-click the input component, for example, tHDFSInput, you are using in the workspace and from the contextual menu, select Data viewer.
To view the output data after an execution, right-click the output component, for example, tHDFSOutput, you are using in the workspace and from the contextual menu, select Data viewer.
The following image is the example of the Data viewer with data read from a remote Hadoop server. The schema of the data is defined in the component from which the Data Viewer is called.
Note that if you are using a MapR Hadoop distribution, that is to say, you have to install
its MapR client in the machine where the Studio is, you need to set the
-Djava.library.path argument for the Studio to access the native library of
that MapR client.
From the menu bar of the Studio, click Window > Preferences to open the [Preferences] dialog box.
Expand Talend and select Run/Debug.
In the Job Run VM arguments area, click New to display the [Set the VM Argument] dialog box.
-Djava.library.pathargument, for example, enter -Djava.library.path=C:\opt\mapr\lib\native\Windows_7, if you are using Windows 7, or enter -Djava.library.path=/opt/mapr/lib if you are using Linux.
Click OK to close this dialog box and this argument is added to the Argument table.
Click Apply to validate these changes and click OK to close the [Preferences] dialog box.