How to share a custom component in Talend Studio

author
Shicong Hong
EnrichVersion
6.4
6.3
6.2
6.1
EnrichProdName
Talend Open Studio for ESB
Talend Data Fabric
Talend ESB
Talend Big Data Platform
Talend Open Studio for MDM
Talend Big Data
Talend Open Studio for Data Integration
Talend Real-Time Big Data Platform
Talend Data Integration
Talend MDM Platform
Talend Open Studio for Big Data
Talend Data Services Platform
Talend Data Management Platform
task
Design and Development > Designing Components
EnrichPlatform
Talend Studio

How to share a custom component in Talend Studio

This article explains how to share the custom component tFileOutputPDF in Talend Studio.

Then, you will create a Job with the custom component, open the Job in another Talend Studio instance and check that the custom component has been installed automatically and the Job opened without warnings or errors.

When working on a remote project, if a Talend Studio has custom components installed and in use in one or more Jobs, other Talend Studio instances connecting to the same remote project must also have the same custom components installed.

This is necessary to ensure that the Jobs can be opened properly. Without the necessary custom components, you will receive a warning message "Some components are not loaded" when you open a Job using a custom component that has not been installed on the system you are using to open the Job.

Talend Studio provides the ability to automatically install custom components. If you install custom components and share them in Talend Studio manually, subsequent connections to the same remote project by other Talend Studio instances will automatically detect and install custom components.

Creating an example job

  • You have downloaded a custom component from TalendForge Exchange and installed it in Talend Studio, in this example tFileOutputPDF.

    For more information about how to install a custom component, see How to install and update a custom component on Talend Help Center.

  1. Launch Talend Studio and connect to a remote project, in this example p3.
  2. Create an example Job called SharingCustomComponent.
  3. Drop the tFixedFlowInput and the custom component tFileOutputPDF from the Palette to the design workspace
  4. Connect the two components together using a Row > Main connection.

Configure the components

  1. Double-click the tFixedFlowInput to display its Basic settings view.
  2. Click the [...] button next to Edit schema to define the input schema.
  3. Click the [+] button and add two input schema columns, in this example id as Integer and name as String.
    The two schema columns display automatically in the Values list.
  4. Click in the Value column and type in a value for each of the input columns.
    • Set id to 1.
    • Set name to "talend".
  5. Double-click the tFileOutputPDF to display its Basic settings view.
  6. Click Sync columns to synchronize the output file schema with the input file schema.
  7. Click the [...] button next to the Destination Name field and browse to the output file you want to print data in, out.pdf in this example.
  8. Press Ctrl+S to save your Job and close it.
    You don't need to run the Job, for this example the objective is just to see the Job that contains a custom component can be opened properly in another Talend Studio instance.

Sharing the custom component

  1. Click Project settings in the toolbar.
  2. Click the Custom component tab under the Designer node.
  3. Select the custom component, tFileOutputPDF, in the Custom Components list and move it to the Shared Components list.
  4. Click OK.

Opening the example Job in another Talend Studio instance

  1. Launch another instance of Talend Studio and connect to the same remote project, in this example p3.

    During the startup progress, Talend Studio will automatically detect the custom component from the remote SVN repository and install it locally.

  2. Open the example Job SharingCustomComponent and see that you don't have the warning message "Some components are not loaded", meaning the custom components are installed well in this Talend Studio.

    The custom component is installed into the local directory, in this example <Talend Studio_installation_path>\plugins\org.talend.designer.components.localprovider_6.4.1.20170623_1246\components.