Setting up the Job - Cloud - 8.0

Samba

Version
Cloud
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Internet components (Integration) > File Transfer Protocols > Samba components
Data Quality and Preparation > Third-party systems > Internet components (Integration) > File Transfer Protocols > Samba components
Design and Development > Third-party systems > Internet components (Integration) > File Transfer Protocols > Samba components
Last publication date
2024-02-20

Procedure

  1. Open the Basic settings view of the tSambaConnection component by double-clicking the component and do the following.
    1. Enter the IP address of the Samba host in the host field.
    2. If user authentication is enabled in the Samba host, enter user name and password in the username and password fields.
    3. Enter the domain name in the Domain field.
      If the Samba host is not configured with a domain, leave this field empty.
  2. Open the Basic settings view of the tSambaInput component by double-clicking the component and do the following.
    1. Select Use an existing connection and select the tSambaConnection component from the Component List drop-down list.
    2. Enter the name of the shared folder set in the Samba host in the Share directory field (SmbShare in this example).
    3. Enter the path to the file which you want to insert data into in the Remote path field (/abc/customers.csv in this example).
    4. Click the Guess schema button and then click OK if the schema displayed is correct.
      You can also create the schema manually by clicking the [...] button next to Edit schema. In this case, make sure the schema conforms to the structure of the file.
    5. Select CSV from the File Type drop-down list.
      Note: Currently, the tSambaInput component supports csv files and JSON files only.
    6. Select the field separator from the Field separator type drop-down list (; in this example).
    7. Set the other options according to the configuration of your machine.
  3. Open the Basic settings view of the tFileOutputDelimited component by double-clicking the component and do the following.
    1. Enter the path to the file where the local data is stored in the File Name field (localdata.csv in this example).
      Note: Make sure the local data has the same columns as that of the file stored in the Samba host (customers.csv in this example).
    2. Make sure the field separator in the Field Separator field is the same as that set in the previous step.
    3. Select the Append option.
    4. Click Sync columns to make sure the schema is the same as that of the tSambaInput component.
    5. Leave the other options as they are.
  4. Open the Basic settings view of the tFileInputDelimited component by double-clicking the component and do the following.
    1. Click the [...] button next to Edit schema and add the same columns as those of the tFileOutputDelimited component.
    2. Enter the path to the file where the local data is stored in the File name/Stream field (localdata.csv in this example).
      Note: You can also enter the file name by placing the cursor in the File name/Stream field, pressing Ctrl + Space, and then selecting tFileOutputDelimited_1.FILE_NAME from the list that appears.
    3. Leave the other options as they are.
  5. Open the Basic settings view of the tSambaOutput component by double-clicking the component and make sure the component has the same settings as those of the tSambaInput component.
  6. Save the Job.