This blog is part of “HANA Cookbook for MySQL Developers”.

This document is for the introduction of the basic function of Pentaho and how to export the data from MySQL and import into HANA Database. Here is Part I.

Before Start

You need to copy the jar files of database connector for both MySQL and HANA DB to the library folder of Pantaho before we start this ETL tool. Here is the list:

1. MySQL: mysql-connector-java-5.1.28-bin.jar

You may download the file from MySQL official website.

http://dev.mysql.com/downloads/connector/j/

2. Hana DB: ngdbc.jar

You could find this file in the directory of you SAP HANA Studio:
\%HANA Studio%\configuration\org.eclipse.osgi\bundles\2000\1\.cp\lib

3. Target folder:  \%pentaho%\design-tools\data-integration\lib

Open Pentaho and create a transformation

1. Open “Data Integration”.

/wp-content/uploads/2014/02/001_388952.png

2. Click “Cancel”.

/wp-content/uploads/2014/02/002_388953.png

3. Now the “Spoon” is open.

/wp-content/uploads/2014/02/003_388954.png

4. Create a new Transformation.

/wp-content/uploads/2014/02/004_388955.png

5. Now you could drag and drop the components from Design panel.

/wp-content/uploads/2014/02/005_388956.png


Create Inputs

1. Drag and Drop “Table input” component to the design panel.

/wp-content/uploads/2014/02/006_388957.png

2. Double click the icon on the design panel and the property window pops up. Click the “New” button to create a new database connection.

/wp-content/uploads/2014/02/007_388958.png

3. We first create a MySQL connection. Click the “Test” button to verify the configuration.

/wp-content/uploads/2014/02/008_388959.png

4. It seems to work.

/wp-content/uploads/2014/02/009_388960.png

5. Go back to the Table Input property window and Click the “Get SQL select statement…” button.

/wp-content/uploads/2014/02/010_388961.png

6. Choose the “customers” table.

/wp-content/uploads/2014/02/011_388962.png

7. Click “OK” and you may choose whether include the field’s name in the SELECT statement.

/wp-content/uploads/2014/02/012_388963.png

8. Click “OK” button and the Table Input for “customers” is ready.

/wp-content/uploads/2014/02/013_388967.png

9. We create another Table Input for “orders” table in MySQL.

/wp-content/uploads/2014/02/014_388968.png

Use “Stream Lookup” for fields-mapping

1. Drag and drop “Stream Lookup” component from the Design Panel.

/wp-content/uploads/2014/02/015_388969.png

2. Hold down the “Shift” key and draw a line between the Table Input and Stream Lookup.

/wp-content/uploads/2014/02/016_388970.png

3. Double click the Steam Lookup and set the configuration. This is for the mapping of Customer Name. Click “OK” button to finish the configuration.

/wp-content/uploads/2014/02/017_388971.png

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply