Configuring the components - 6.5

tAddLocationFromIP

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
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 Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Misc components > tAddLocationFromIP
Data Quality and Preparation > Third-party systems > Misc components > tAddLocationFromIP
Design and Development > Third-party systems > Misc components > tAddLocationFromIP
EnrichPlatform
Talend Studio

Procedure

  1. In the design workspace, select tFixedFlowInput, and click the Component tab to define the basic settings for tFixedFlowInput.
  2. Click the [...] button next to Edit Schema to define the structure of the data you want to use as input. In this scenario, the schema is made of one column that holds an IP address.
  3. Click OK to close the dialog box, and accept propagating the changes when prompted by the system. The defined column is displayed in the Values panel of the Basic settings view.
  4. In the Number of rows field, enter the number of rows to be generated, and click in the Value cell and set the value for the IP address.
  5. In the design workspace, select tAddLocationFromIP and click the Component tab to define the basic settings for tAddLocationFromIP.
  6. Click the Sync columns button to synchronize the schema with the input schema set with tFixedFlowInput.
  7. Browse to the GeoIP.dat file to set its path in the Database filepath field.
    Note:

    Ensure to download the latest version of the IP address lookup database file from the relevant site as indicated in the Basic settings view of tAddLocationFromIp.

  8. In the Input parameters panel, set your input parameters as needed. In this scenario, the input column is the ip column defined earlier that holds an IP address.
  9. In the Location type panel, set location type as needed. In this scenario, we want to display the country name.
  10. In the design workspace, select tLogRow and click the Component tab and define the basic settings for tLogRow as needed. In this scenario, we want to display values in cells of a table.