|
How to: |
This section describes how to create and configure a new mapping.
The New dialog opens, as shown in the following image.

The New Mapper dialog opens, as shown in the following image.

The Big Data Mapper Editor opens as a tab in the iBDI workspace, as shown in the following image.


The New Source Table dialog opens, as shown in the following image.

The New Source Table dialog enables you to navigate and select the Hive table that you want to transform.
The Big Data Mapper Editor displays a graphical representation of your selected source tables, as shown in the following image.

Note: An asterisk character (*) in front of the Big Data Mapper Editor tab, indicates that a new change has been made to the mapping, which has not been saved. You can click the Save icon on the toolbar or use the Ctrl+S shortcut to save your work at any point.
The Target dialog opens, as shown in the following image.

The following table lists and describes the Table, IDS File, and New Table parameters.
|
Parameter |
Description |
|---|---|
|
Table |
Creates the target entry in the selected schema and database with the selected columns. Selecting this option will open the New Source Table dialog. Selecting a table name in this dialog will write the contents of the mapper to the table. |
|
IDS File |
Import an Omni Input Document Specification (IDS) version 1 document and create columns in a new table based on the information in this document. |
|
New Table |
Create a table in the selected schema with the name provided. Only mapped columns from the Source will be written to the target. |
The Target object is added to the workspace with no columns, as shown in the following image.




For example:
CREATE DATABASE IF NOT EXISTS hkd; CREATE TABLE IF NOT EXISTS hkd.target_table ( id STRING) STORED AS AVRO; set hive.exec.dynamic.partition.mode=nonstrict; set hive.exec.parallel=false; --SET hive.exec.max.dynamic.partitions=100000; --SET hive.exec.max.dynamic.partitions.pernode=100000; create database if not exists hkd; INSERT INTO TABLE hkd.target_table SELECT T1.emp_no C1 FROM hkd3.employees T1 ;
Once you have created a mapping configuration, a mapping file with a .iwmapper extension is added to your Mappings directory in your iWay Big Data Integrator (iBDI) project.
Note: When executing a mapping configuration in the Run Configurations facility, use the iWay Big Data Integrator Build option for immediate execution. Use the iWay Big Data Integrator Publish option for batch usage.
For more information, see Defining Run Configurations.