Inserting data into a file stored in a Samba host - 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

This scenario inserts local data into a csv file that is stored in a Samba host without downloading the file. This scenario assumes that you have set up a Samba version 2 (or version 3) host and created a shared folder in the Samba host. See Samba File Serving at Samba User Documentation for information about setting up a Samba share.

For more technologies supported by Talend, see Talend components.

This scenario comprises three subJobs.

  • The tSambaConnection component in the first subJob creates a connection to the Samba host.
  • The second subJob retrieves data from the file stored in the Samba host and appends the data to the local file.
  • The third subJob writes the data in the local file to the file stored in the Samba host.

The following lists the content of the file in the Samba host (customers.csv in this example).

***Remote customer name;***Remote customer address
Tub's Furniture Store;807 Old Trail Rd.
Toggle & Myerson Ltd;618 Sheriden rd.
Lennox Air Pollution Control;4522 N. Greenview Apt. 1B
Cotton Thumb Ltd.;1882 St. Johns
Acturial Enterprises Ltd.;1486 Oakwood

The following lists the content of the local file (localdata.csv in this example).

***Local customer name;***Local customer address
Nyman Interior Design;2505 Allison ct.
Elm Place Business Supplies;505 N. Frances St.
Parties Galore Golf Course;77 Blackhawk Rd;26
Quad City Cleaning;218 Oakridge Ave.