Rules and Guidelines for Mappings in a Hadoop Environment
Rules and Guidelines for Mappings in a Hadoop Environment
You can run mappings in a Hadoop environment. When you run mappings in a Hadoop environment, some differences in processing and configuration apply.
The following processing differences apply to mappings in a Hadoop environment:
A mapping is run in high precision mode in a Hadoop environment for Hive 0.11 and above.
In a Hadoop environment, sources that have data errors in a column result in a null value for the column. In the native environment, the Data Integration Service does not process the rows that have data errors in a column.
When you cancel a mapping that reads from a flat file source, the file copy process that copies flat file data to HDFS may continue to run. The Data Integration Service logs the command to kill this process in the Hive session log, and cleans up any data copied to HDFS. Optionally, you can run the command to kill the file copy process.
When you set a limit on the number of rows read from the source for a Blaze mapping, the Data Integration Service runs the mapping with the Hive engine instead of the Blaze engine.
The following configuration differences apply to mappings in a Hadoop environment:
Set the optimizer level to none or minimal if a mapping validates but fails to run. If you set the optimizer level to use cost-based or semi-join optimization methods, the Data Integration Service ignores this at run-time and uses the default.
The Spark engine does not honor the early projection optimization method in all cases. If the Data Integration Service removes the links between unused ports, the Spark engine might reconnect the ports.
When the Spark engine runs a mapping, it processes jobs on the cluster using HiveServer2 in the following cases:
The mapping writes to a target that is a Hive table bucketed on fields of type char or varchar.
The mapping reads from or writes to Hive transaction-enabled tables.
The mapping reads from or writes to Hive tables where column-level security is enabled.
The mapping writes to a Hive target and is configured to create or replace the table at run time.