You are on page 1of 6

talendtutorials | Get to learn Talend ETL Basics

file:///D:/WebPage-Talend/talendtutorials _ Get to learn Talend ETL Ba...

talendtutorials
Get to learn Talend ETL Basics

Hi! Welcome to the Talend Tutorials


Posted by talendtutorials on January 8, 2012 You can visit the Talend ETL website here : hp://www.talend.com/index.php (hp://www.talend.com/index.php) For Downloading Talend Data Integration visit : hp://www.talend.com/download.php (hp://www.talend.com/download.php) To get information of all the components in Talend visit : hp://www.talendforge.org/components/ (hp://www.talendforge.org/components/)

Storing temporary values


Posted by talendtutorials on January 13, 2012 Posted in: ETL, Talend. Tagged: employee table, ETL, oracle, schema, sql, Talend. Leave a Comment Today we are going to learn how to save the previous row data. For this the example is as below :

(hp://talendtutorials.les.wordpress.com/2012/01/emp_sal_eg.png) test data

1 of 6

4/4/2014 10:39 PM

talendtutorials | Get to learn Talend ETL Basics

file:///D:/WebPage-Talend/talendtutorials _ Get to learn Talend ETL Ba...

The output for the above input should look like below : employee_id, salary, cumulative_sum 10, 1000, 1000 20, 2000, 3000 30, 3000, 6000 40, 5000, 11000 Here, the cumulative_sum column is addition of salary+previous rows cumulative_sum So obviously we will have to store the previous rows cumulative_sum in some variable. Below is the logic for that: We are going to need a tFileInputDelimited, a tjavarow , a tLogRow and a temp variable to get the output.

(hp://talendtutorials.les.wordpress.com/2012/01/job_prev_row_vals.png) Your job should look like above

Once you have done the seings for tFileInputDelimited, create a temporary variable under the contexts tab as below : Dont forget to give the variable a default value of 0 in the Values as Table tab.

(hp://talendtutorials.les.wordpress.com/2012/01/temp_var1.png) Create a temp variable as above Now move on to tJavaRow.Double click on tJavaRow.Enter the below code in the Code section of the tJavaRow.Dont forget to sync columns. Now run the job. Your output would be : 10|1000|1000 20|2000|3000
4/4/2014 10:39 PM

2 of 6

talendtutorials | Get to learn Talend ETL Basics

file:///D:/WebPage-Talend/talendtutorials _ Get to learn Talend ETL Ba...

(hp://talendtutorials.les.wordpress.com/2012/01/tjavarow_seings.png) Seings for tJavaRow component 30|3000|6000 40|5000|11000

Installation of Talend Data Integration v5.0 on Windows 7


Posted by talendtutorials on January 11, 2012 Posted in: ETL, Talend. Tagged: install Talend, Java, Talned ETL. Leave a Comment Hi, Here we will learn the installation of Talend Data Integration v5.0 on Windows 7. The latest versions of Talend can be found in the Download link in the Hi,Welcome to the Talend Blog (hp://talendtutorials.wordpress.com/2012/01/08/hwtmb/) So, Now once you have downloaded Talend Data Integration from the above provided link. You need to make sure you have Java on your installation machine.To check that goto cmd and type java -version .If u get a proper o/p then java is installed on your machine. Step 1 : Else, you can get it downloaded from Download JDK (hp://www.oracle.com/technetwork /java/javase/downloads/index.html) (Java Platform (JDK) 7u2) or any other version of jdk (Java Development Kit). Step 2 : After installing java on your machine,you need to set conguration for it as below : Goto : Control Panel > System > Advanced System Seings > Environment Variables Under System Variables (check if JAVA_HOME variable is present if not create it using New Buon) Under System Variables (check if PATH variable is present if not create it using New Buon) Setup JAVA_HOME and PATH in environment variables. e.g JAVA_HOME should be the installation directory of the jdk folder. It could be anything(C:\Program Files\Java inside this folder there is the bin folder so your JAVA_HOME is C:\Program Files\Java)

3 of 6

4/4/2014 10:39 PM

talendtutorials | Get to learn Talend ETL Basics

file:///D:/WebPage-Talend/talendtutorials _ Get to learn Talend ETL Ba...

mention in PATH your location of bin and jre/bin (;%JAVA_HOME%\bin;%JAVA_HOME% \jre6\bin) < copy paste this, the path should be an exact match.Sometimes ppl have jre instead of jre6 so take care in that case and change your path accordingly. Step 3 : Once this is done goto JAVA_HOME directory (i.e path that you have for JAVA_HOME) through cmd and type java -version if u get a proper o/p you can double click the Talend exe in your Talend extracted folder. If you have a 64 bit OS your exe is TOS_DI-win-x86_64.exe else for 32 bit OS it is TOS_DI-win32x86.exe double click on it !

Grouping similar entries


Posted by talendtutorials on January 10, 2012 Posted in: ETL, Talend. Tagged: ETL, Group similar entries, oracle, schema, sql, Talend. Leave a Comment

4 of 6

4/4/2014 10:39 PM

talendtutorials | Get to learn Talend ETL Basics

file:///D:/WebPage-Talend/talendtutorials _ Get to learn Talend ETL Ba...

Hi, Below is an example where we group similar items of a list. To keep it simplei have a le with 2 columns as below I m uploading this le as .doc le.Please change the extension to .csv once downloaded. Get the le from here : group_same_ids (hp://talendtutorials.les.wordpress.com/2012/01 /grp_similar_tothr.doc) Output should be : Col1 a b x Col2 l,m,n p,q y

To achieve the above. we need a Denormalize component. Create a Job for it is as below File contents :

(hp://talendtutorials.les.wordpress.com/2012/01 /grp_similar_ids.gif) File contents

(hp://talendtutorials.les.wordpress.com/2012/01/grp_smlr_entr_job3.gif) You job should look like this ...

For the basic understanding.


Posted by talendtutorials on January 9, 2012 Posted in: ETL. Tagged: employee table, oracle, salaries, schema, sql. Leave a Comment Hi,
5 of 6 4/4/2014 10:39 PM

talendtutorials | Get to learn Talend ETL Basics

file:///D:/WebPage-Talend/talendtutorials _ Get to learn Talend ETL Ba...

Here we are nding out the top 4 salaries of an employee table in oracle HR schema. In SQL we would just simply write a query and fetch those values. Same has been demonstrated in the below link.

hp://talendtutorials.les.wordpress.com/2012/01/grp_smlr_entrs_dnorm_seings2.gif)

(h p://talendtutorials.les.wordpress.com/2012/01/grp_smlr_entrs_sort_se ings2.gif) For this to work on your pc you need to have oracle installed or create your own simple table to test. The seing for tSort component is as above :

talendtutorials Follow

Blog at WordPress.com. The Parament Theme.

Follow talendtutorials
Powered by WordPress.com

6 of 6

4/4/2014 10:39 PM

You might also like