Академический Документы
Профессиональный Документы
Культура Документы
User Guide
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
Informatica Resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
Informatica My Support Portal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
Informatica Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
Informatica Web Site. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
Informatica How-To Library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
Informatica Knowledge Base. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Informatica Support YouTube Channel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Informatica Marketplace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Informatica Velocity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Informatica Global Customer Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Table of Contents
Chapter 3: Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Connections Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
HDFS Connection Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Hive Connection Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Creating a Connection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
ii
Table of Contents
Chapter 6: Profiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Profiles Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Native and Hadoop Environments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Supported Data Source and Run-time Environments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Run-time Environment Setup and Validation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Run-time Environment and Profile Performance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Profile Types on Hadoop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Column Profiles on Hadoop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Rule Profiles on Hadoop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Data Domain Discovery on Hadoop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Running a Single Data Object Profile on Hadoop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Running Multiple Data Object Profiles on Hadoop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Monitoring a Profile. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Viewing Profile Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Appendix B: Glossary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Table of Contents
iii
Preface
The PowerCenter Big Data Edition User Guide provides information about how to configure Informatica products for
Hadoop.
Informatica Resources
Informatica My Support Portal
As an Informatica customer, you can access the Informatica My Support Portal at http://mysupport.informatica.com.
The site contains product information, user group information, newsletters, access to the Informatica customer
support case management system (ATLAS), the Informatica How-To Library, the Informatica Knowledge Base,
Informatica Product Documentation, and access to the Informatica user community.
Informatica Documentation
The Informatica Documentation team takes every effort to create accurate, usable documentation. If you have
questions, comments, or ideas about this documentation, contact the Informatica Documentation team through email
at infa_documentation@informatica.com. We will use your feedback to improve our documentation. Let us know if we
can contact you regarding your comments.
The Documentation team updates documentation as needed. To get the latest documentation for your product,
navigate to Product Documentation from http://mysupport.informatica.com.
iv
Informatica Marketplace
The Informatica Marketplace is a forum where developers and partners can share solutions that augment, extend, or
enhance data integration implementations. By leveraging any of the hundreds of solutions available on the
Marketplace, you can improve your productivity and speed up time to implementation on your projects. You can
access Informatica Marketplace at http://www.informaticamarketplace.com.
Informatica Velocity
You can access Informatica Velocity at http://mysupport.informatica.com. Developed from the real-world experience
of hundreds of data management projects, Informatica Velocity represents the collective knowledge of our
consultants who have worked with organizations from around the world to plan, develop, deploy, and maintain
successful data management solutions. If you have questions, comments, or ideas about Informatica Velocity,
contact Informatica Professional Services at ips@informatica.com.
Preface
vi
CHAPTER 1
Data Replication
You can replicate large amounts of transactional data between heterogeneous databases and platforms with Data
Replication. You might replicate data to distribute or migrate the data across your environment.
With Data Replication, you can perform the following types of data replication:
Low-latency data replication
You can perform low-latency batched replication to replicate data on an interval. You can also perform
continuous replication to replicate data in near real time.
For example, you can use continuous replication to send transactional changes to a staging database or
operational data store. You can then use PowerCenter to extract data from Data Replication target tables and
then transform the data before loading it to an active enterprise data warehouse.
Data replication for Hadoop processing
You can extract transactional changes into text files. You can then use PowerCenter to move the text files to
Hadoop to be processed.
When you run the workflow on a grid, the PowerCenter Integration Service process distributes the tasks in the
following way:
On Node 1, the master service process starts the workflow and runs workflow tasks other than the Session,
Command, and predefined Event-Wait tasks. The Load Balancer dispatches the Session, Command, and
predefined Event-Wait tasks to other nodes.
On Node 2, the worker service process starts a process to run a Command task and starts a DTM process to run
Session task 1.
On Node 3, the worker service process runs a predefined Event-Wait task and starts a DTM process to run Session
task 2.
If the master service process becomes unavailable while running a workflow, the PowerCenter Integration Service
can recover the workflow based on the workflow state and recovery strategy. If the workflow was enabled for high
availability recovery, the PowerCenter Integration Service restores the state of operation for the workflow and
recovers the workflow from the point of interruption.
If a worker service process becomes unavailable while running tasks of a workflow, the master service process can
recover tasks based on task state and recovery strategy.
The following events occur when the Hive driver sends MapReduce jobs to the Hadoop cluster:
1.
The Hive driver sends the MapReduce jobs to the Job Tracker in the Hive environment.
2.
The JobTracker retrieves a list of TaskTracker nodes that can process the MapReduce jobs from the
NameNode.
3.
4.
The Hive driver also connects to the Hive metadata database through the Hive metastore to determine where to
create temporary tables. The Hive driver uses temporary tables to process the data. The Hive driver removes
temporary tables after completing the task.
1. Extract and count the number of inquiries about stocks from weblogs.
Extracts the inquiries about each stock from the weblogs, and then counts the number of inquiries about each
stock. The weblogs are from the company stock trade web site.
2. Extract and count the number of tweets for each stock from Twitter.
Extracts tweets from Twitter, and then counts the number of tweets about each stock.
3. Extract market data and calculate the risk of each stock based on market data.
Extracts the daily high stock value, daily low stock value, and volatility of each stock from a flat file provided by a
third-party vendor. The workflow calculates the risk of each stock based on the extracted market data.
4. Combine the inquiry count, tweet count, and risk for each stock.
Combines the inquiry count, tweet count, and risk for each stock from the weblogs, Twitter, and market data,
respectively.
5. Extract historical stock transactions for each customer.
Extracts historical stock purchases of each customer from a database.
6. Calculate the average risk and average popularity of the stocks purchased by each customer.
Calculates the average risk and average popularity of all stocks purchased by each customer.
7. Match stocks to each customer based on their preferences.
Matches stocks that have the same popularity and risk as the average popularity and average risk of the stocks
that the customer previously purchased.
8. Load stock recommendations into the data warehouse.
Loads the stock recommendations into data warehouse to retain a history of the recommendations.
9. Send an email with stock recommendations.
Consolidates the stock recommendations for all customers, and sends an email with the list of
recommendations.
After you create the workflow, you configure it to run in a Hive environment because the workflow must process 15
terabytes of data each time it creates recommendations for customers.
CHAPTER 2
Extract the PowerCenter Big Data Edition tar.gz file to the machine.
2.
Install PowerCenter Big Data Edition by running the installation shell script in a Linux environment.
2.
Distribute the RPM package to all of the nodes within the Hadoop cluster. You can distribute the RPM package
using any of the following protocols: File Transfer Protocol (FTP), Hypertext Transfer Protocol (HTTP), Network
File System (NFS), or Secure Copy (SCP) protocol.
3.
Install PowerCenter Big Data Edition by running the installation shell script in a Linux environment. You can install
PowerCenter Big Data Edition from the primary NameNode or from any machine using the HadoopDataNodes
file.
Install from the primary NameNode. You can install PowerCenter Big Data Edition using FTP, HTTP, NFS or
SCP protocol. During the installation, the installer shell script picks up all of the DataNodes from the
$HADOOP_HOME/conf/slaves file and copies the PowerCenter Big Data Edition binary files to the /
<PowerCenterBigDataEditionInstallationDirectory>/Informatica directory on each of the DataNodes.
You can perform this step only if you are deploying Hadoop from the primary NameNode.
Install from any machine. Add the IP addresses or machine host names, one for each line, for each of the
nodes in the Hadoop cluster in the HadoopDataNodes file. During the PowerCenter Big Data Edition installation,
the installation shell script picks up all of the nodes from the HadoopDataNodes file and copies the PowerCenter
Big Data Edition binary files to the /<PowerCenterBigDataEditionInstallationDirectory>/Informatica
directory on each of the nodes.
Informatica Services
Run the Informatica services installation to configure the PowerCenter domain and create the Informatica services.
Informatica Clients
Run the Informatica client installation to create the PowerCenter Client.
For information, see the Informatica PowerCenter Installation and Configuration Guide.
PowerCenter Adapters
Use PowerCenter adapters, such as PowerExchange for Hadoop, to define sources and targets in PowerCenter
mappings.
For more information about installing and configuring PowerCenter adapters, see the PowerExchange adapter
documentation.
Informatica Adapters
You can use the following Informatica adapters as part of PowerCenter Big Data Edition:
PowerExchange for DataSift
PowerExchange for Facebook
PowerExchange for HDFS
PowerExchange for Hive
PowerExchange for LinkedIn
PowerExchange for Teradata Parallel Transporter API
PowerExchange for Twitter
PowerExchange for Web Content-Kapow Katalyst
(CDH Version 3 Update 4, CDH Version 4 Update 1), Apache (Hadoop 1.0.3), MapR ( Version 2.1.2), and
Hortonworks ( Version 1.1) Hadoop distributions. Refer to Apache website http://hadoop.apache.org for more
information. The Hadoop installation should include a Hive data warehouse that is configured to use a MySQL
database as the MetaStore. You can configure Hive to use a local or remote MetaStore server.
Note: Informatica does not support embedded MetaStore server setups.
Install the required third party client software to perform both read and write operations in native mode. For
privileges.
Verify that the temporary folder on the local node has at least 700 MB of disk space.
Download the following file to the temporary folder: InformaticaHadoop-
<InformaticaForHadoopVersion>.tar.gz
Extract the following file to the local node where you want to run the PowerCenter Big Data Edition installation:
InformaticaHadoop-<InformaticaForHadoopVersion>.tar.gz
Distributed File System (HDFS) and MapReduce. Informatica supports the Cloudera (CDH Version 3 Update 4,
CDH Version 4, Update 1), Apache (Hadoop 1.0.3), MapR (Version 2.1.2), and Hortonworks( Version 1.1) Hadoop
distributions. Refer to Apache website http://hadoop.apache.org/ for more information. The Hadoop installation
should include a Hive data warehouse that is configured to use a MySQL database as the MetaStore. You can
configure Hive to use a local or remote MetaStore server.
Note: Informatica does not support embedded MetaStore server setups.
Install the required third party client software to perform both read and write operations in native mode. For
example, install the Oracle client to connect to the Oracle database. Install the third party client software on all of
the nodes within the Hadoop cluster. For Informatica, this is required to run MapReduce jobs.
Verify that the PowerCenter Big Data Edition administrator has user can run sudo commands or have user root
privileges.
Verify that the RPM package can be distributed by File Transfer Protocol (FTP), Hypertext Transfer Protocol
(HTTP), Network File System (NFS), or Secure Copy (SCP) protocol to all of the nodes that are to be included in
the cluster.
If you are installing PowerCenter Big Data Edition in a cluster environment that uses the FTP protocol, verify that
(SSH) connection between the machine where you want to run the PowerCenter Big Data Edition installation and
all of the nodes on which PowerCenter Big Data Edition will be installed.
Verify that the temporary folder in each of the nodes on which PowerCenter Big Data Edition will be installed has at
For example,
- For HTTP protocol: /var/www/html
- For FTP protocol: /var/ftp/pub
- For NFS: <Shared location on the node. The file location must be accessible by all the nodes in the cluster.>
Note: The RPM package must be stored on local disk and not on HDFS.
Extract the following file to the machine from where you want to distribute the RPM package and run the
10
NFS protocol.
Install PowerCenter Big Data Edition in a cluster environment from any machine.
2.
Run the following command from the PowerCenter Big Data Edition root directory to start the installation in
console mode:
bash InformaticaHadoopInstall.sh
3.
4.
Press Enter.
5.
6.
Press Enter.
7.
Type the absolute path for the PowerCenter Big Data Edition installation directory and press Enter.
Start the path with a slash. The directory names in the path must not contain spaces or the following special
characters: { } ! @ # $ % ^ & * ( ) : ; | ' ` < > , ? + [ ] \
If you type a directory path that does not exist, the installer creates the entire directory path on each of the nodes
during the installation. Default is /opt.
8.
Press Enter.
The installer creates the /<PowerCenterBigDataEditionInstallationDirectory>/Informatica directory and
populates all of the file systems with the contents of the RPM package.
You can view the informatica-hadoop-install.<DateTimeStamp>.log installation log file to get more information
about the tasks performed by the installer.
2.
Run the following command to start the PowerCenter Big Data Edition installation in console mode:
bash InformaticaHadoopInstall.sh
3.
11
4.
Press Enter.
5.
6.
Press Enter.
7.
Type the absolute path for the PowerCenter Big Data Edition installation directory.
Start the path with a slash. The directory names in the path must not contain spaces or the following special
characters: { } ! @ # $ % ^ & * ( ) : ; | ' ` < > , ? + [ ] \
If you type a directory path that does not exist, the installer creates the entire directory path on each of the nodes
during the installation. Default is /opt.
8.
Press Enter.
9.
Press 1 to install PowerCenter Big Data Edition from the primary NameNode.
10.
Press Enter.
11.
Type the absolute path for the Hadoop installation directory. Start the path with a slash.
12.
Press Enter.
13.
Type y.
14.
Press Enter.
The installer retrieves a list of DataNodes from the $HADOOP_HOME/conf/slaves file. On each of the DataNodes,
the installer creates the /<PowerCenterBigDataEditionInstallationDirectory>/Informatica directory and
populates all of the file systems with the contents of the RPM package.
You can view the informatica-hadoop-install.<DateTimeStamp>.log installation log file to get more information
about the tasks performed by the installer.
2.
Run the following command to start the PowerCenter Big Data Edition installation in console mode:
bash InformaticaHadoopInstall.sh
3.
4.
Press Enter.
5.
6.
Press Enter.
7.
Type the absolute path for the PowerCenter Big Data Edition installation directory.
Start the path with a slash. The directory names in the path must not contain spaces or the following special
characters: { } ! @ # $ % ^ & * ( ) : ; | ' ` < > , ? + [ ] \
If you type a directory path that does not exist, the installer creates the entire directory path on each of the nodes
during the installation. Default is /opt.
12
8.
Press Enter.
9.
Press 1 to install PowerCenter Big Data Edition from the primary NameNode.
10.
Press Enter.
11.
Type the absolute path for the Hadoop installation directory. Start the path with a slash.
12.
Press Enter.
13.
Type n.
14.
Press Enter.
15.
Type y.
16.
Press Enter.
The installer retrieves a list of DataNodes from the $HADOOP_HOME/conf/slaves file. On each of the DataNodes,
the installer creates the /<PowerCenterBigDataEditionInstallationDirectory>/Informatica directory and
populates all of the file systems with the contents of the RPM package.
You can view the informatica-hadoop-install.<DateTimeStamp>.log installation log file to get more information
about the tasks performed by the installer.
Verify that the PowerCenter Big Data Edition administrator has user root privileges on the node that will be
running the PowerCenter Big Data Edition installation.
2.
3.
In the HadoopDataNodes file on the node from where you want to launch the PowerCenter Big Data Edition
installation, add the IP addresses or machine host names, one for each line, of the nodes in the Hadoop cluster on
which you want to install PowerCenter Big Data Edition.
4.
Run the following command to start the PowerCenter Big Data Edition installation in console mode:
bash InformaticaHadoopInstall.sh
5.
6.
Press Enter.
7.
8.
Press Enter.
9.
Type the absolute path for the PowerCenter Big Data Edition installation directory and press Enter. Start the path
with a slash. Default is /opt.
10.
Press Enter.
11.
Press 2 to install PowerCenter Big Data Edition using the HadoopDataNodes file.
12.
Press Enter.
The installer creates the /<PowerCenterBigDataEditionInstallationDirectory>/Informatica directory and
populates all of the file systems with the contents of the RPM package on the first node that appears in the
HadoopDataNodes file. The installer repeats the process for each node in the HadoopDataNodes file.
13
14
The following table describes the Hadoop pushdown properties for the Data Integration Service:
Property
Description
<PowerCenterBigDataEditionInstallationDir
ectory>/Informatica/services/shared/
hadoop/[Hadoop_distribution_name] or another
location.
3. Copy the required Hive JARS from the Hive install location
at /usr/lib/hive/lib to the following directory: /
<PowerCenterBigDataEditionInstallationDir
ectory>/Informatica/services/shared/
hadoop/[Hadoop_distribution_name].
4. Copy the required Hadoop JARS from the Hadoop install
location at /usr/lib/hadoop/lib to the following
directory: /
<PowerCenterBigDataEditionInstallationDir
ectory>/Informatica/services/shared/
hadoop/[Hadoop_distribution_name].
5. If you are using Cloudera distribution, copy the required
Snappy libraries from /usr/lib/hadoop/lib/native
to the following directory: /
<PowerCenterBigDataEditionInstallationDir
ectory>/Informatica/services/shared/
hadoop/[Hadoop_distribution_name]/lib/
native.
Data Integration Service Hadoop Distribution Directory
15
The Hadoop RPM installs the Hadoop distribution directories in the following path:
<PowerCenterBigDataEditionInstallationDirectory>/Informatica/services/shared/hadoop.
The following table describes the directories installed with Cloudera CDH3 Update 4 Hadoop distribution:
Directory
Contents
cloudera_cdh3u4/conf
cloudera_cdh3u4/lib
cloudera_cdh3u4/lib/native
The following table describes the directories installed with Cloudera CDH4 Update 1 Hadoop distribution:
Directory
Contents
cloudera_cdh4u1/conf
cloudera_cdh4u1/lib
cloudera_cdh4u1/lib/native
The following table describes the directories installed with MapR 2.1.2 Hadoop distribution:
Directory
mapr_2.1.2/conf
Contents
The directory contains the following files:
- hive-site.xml
- hadoopEnv.properties
- mapr-clusters.conf
mapr_2.1.2/lib
mapr_2.1.2/lib/native
The following table describes the directories installed with Hortonworks 1.1 Hadoop distribution:
16
Directory
Contents
hortonworks_1.1/conf
hortonworks_1.1/lib
hortonworks_1.1/lib/native
The following table describes the directories installed with Apache 1.0.3 distribution in the directory /opt/
Informatica/services/shared/hadoop/:
Directory
Contents
apache_hadoop_1_0_3/conf
apache_hadoop_1_0_3/lib
Browse to the address reference data files that you downloaded from Informatica.
2.
3.
Stage the files to the NameNode machine or to another machine that can write to the DataNodes.
4.
DataNodes.
If you staged the files on another machine, use the Hadoop_Nodes.txt file to identify the DataNodes. You find
The script copies the address reference data files to the DataNodes.
17
<PowerCenterBigDataEditionInstallationDirectory>/services/shared/hadoop/mapr_2.1.2.
Set the MapR Container Location Database name variable CLDB in the following file:
<PowerCenterBigDataEditionInstallationDirectory>/services/shared/hadoop/mapr_2.1.2/conf/maprclusters.conf.
Add -Dmapr.library.flatclass to the Data Integration Service advanced property JVM Command Line Options.
18
1.
2.
3.
Use a text editor to open the file and modify the properties.
4.
Verify that the PowerCenter Big Data Edition administrator can run sudo commands.
2.
If you are uninstalling PowerCenter Big Data Edition in a cluster environment, set up password-less Secure Shell
(SSH) connection between the machine where you want to run the PowerCenter Big Data Edition installation and
all of the nodes on which PowerCenter Big Data Edition will be uninstalled.
3.
If you are uninstalling PowerCenter Big Data Edition in a cluster environment using the HadoopDataNodes file,
verify that the HadoopDataNodes file contains the IP addresses or machine host names, one for each line, of each
of the nodes in the Hadoop cluster from which you want to uninstall PowerCenter Big Data Edition.
4.
Log in to the machine. The machine you log into depends on the PowerCenter Big Data Edition environment and
uninstallation method:
If you are uninstalling PowerCenter Big Data Edition in a single node environment, log in to the machine on
Run the following command to start the PowerCenter Big Data Edition uninstallation in console mode:
bash InformaticaHadoopInstall.sh
6.
7.
Press Enter.
8.
9.
Press Enter.
10.
Select the uninstallation option, depending on the PowerCenter Big Data Edition environment:
Select 1 to uninstall PowerCenter Big Data Edition in a single node environment.
Select 2 to uninstall PowerCenter Big Data Edition in a cluster environment.
11.
Press Enter.
12.
If you are uninstalling PowerCenter Big Data Edition in a cluster environment, select the uninstallation option,
depending on the uninstallation method:
Select 1 to uninstall PowerCenter Big Data Edition from the primary NameNode.
Select 2 to uninstall PowerCenter Big Data Edition using the HadoopDataNodes file.
13.
Press Enter.
14.
If you are uninstalling PowerCenter Big Data Edition in a cluster environment from the primary NameNode, type
the absolute path for the Hadoop installation directory. Start the path with a slash.
The uninstaller deletes all of the PowerCenter Big Data Edition binary files from the /
<PowerCenterBigDataEditionInstallationDirectory>/Informatica directory. In a cluster environment, the
uninstaller delete the binary files from all of the nodes within the Hadoop cluster.
19
CHAPTER 3
Connections
This chapter includes the following topics:
Connections Overview, 20
HDFS Connection Properties, 20
Hive Connection Properties, 21
Creating a Connection, 24
Connections Overview
Define the connections you want to use to access data in Hive or HDFS.
You can create the following types of connections:
HDFS connection. Create an HDFS connection to read data from or write data to the Hadoop cluster.
Hive connection. Create a Hive connection to access Hive data or run Informatica mappings in the Hadoop cluster.
have the same connection or another Hive connection that is enabled to run mappings in the Hadoop cluster. You
can access Hive as a source if the mapping is enabled for the native or Hive environment. You can access Hive as
a target only if the mapping is run in the Hadoop cluster.
- Use the Hive connection to validate or run an Informatica mapping in the Hadoop cluster. Before you run
mappings in the Hadoop cluster, review the information in this guide about rules and guidelines for mappings that
you can run in the Hadoop cluster.
You can create the connections using the Developer tool, Administrator tool, and infacmd.
Note: For information about creating connections to other sources or targets such as social media web sites or
Teradata, see the respective PowerExchange adapter user guide for information.
20
Description
Name
ID
Description
Location
Type
User Name
NameNode URI
21
General Properties
The following table describes the general properties that you configure for a Hive connection:
Property
Description
Name
The name of the connection. The name is not case sensitive and must be unique within
the domain. You can change this property after you create the connection. The name
cannot exceed 128 characters, contain spaces, or contain the following special
characters:
~ ` ! $ % ^ & * ( ) - + = { [ } ] | \ : ; " ' < , > . ? /
ID
String that the Data Integration Service uses to identify the connection. The ID is not
case sensitive. It must be 255 characters or less and must be unique in the domain.
You cannot change this property after you create the connection. Default value is the
connection name.
Description
The description of the connection. The description cannot exceed 4000 characters.
Location
Type
Connection Modes
You can select both the options. Default is Access Hive as a source or target.
Environment SQL
SQL commands to set the Hadoop environment. In a native environment, the Data
Integration Service executes the environment SQL each time it creates a connection to
Hive metastore. If you use a Hive connection to run mappings in a Hadoop cluster, the
Data Integration Service executes the environment SQL at the start of each Hive
session.
The following rules and guidelines apply to the usage of environment SQL in both the
connection modes:
- Use the environment SQL to specify Hive queries.
- Use the environment SQL to set the classpath for Hive user-defined functions and then
use either environment SQL or PreSQL to specify the Hive user-defined functions. You
cannot use PreSQL in the data object properties to specify the classpath. The path must
be the fully qualified path to the JAR files used for user-defined functions. Set the
parameter hive.aux.jars.path with all the entries in infapdo.aux.jars.path and the path to
the JAR files for user-defined functions.
- You can also use environment SQL to define Hadoop or Hive parameters that you intend
to use in the PreSQL commands or in custom queries.
If the Hive connection is used to run mappings in the Hadoop cluster, only the
environment SQL of the Hive connection is executed. The different environment SQL
commands for the connections of the Hive source or target are not executed, even if
the Hive sources and targets are on different clusters.
22
Chapter 3: Connections
Description
The JDBC connection URI used to access the metadata from the Hadoop server.
The connection string must be in the following format:
jdbc:hive://<hostname>:<port>/<db>
Where
- hostname is name or IP address of the machine on which the Hive server is running.
- port is the port on which the Hive server is listening.
- db is the database name to which you want to connect. If you do not provide the database
name, the Data Integration Service uses the default database details.
JDBC driver mode. Select the check box to use JDBC embedded mode.
To use JDBC embedded mode, you must verify that the Hive client and Informatica
Services are installed on the same machine.
Use JDBC embedded mode to increase performance when you run a mapping in the
native environment.
Clear this option if you want to run a mapping in the Hive environment.
If you clear this option, you must configure the Data Access Connection String. The
connection string to access data must be identical to the Hive connection for the
mapping.
Default is JDBC embedded mode.
The connection string used to access data from the Hadoop data store. The nonembedded JDBC mode connection string must be in the following format:
jdbc:hive://<hostname>:<port>/<db>
Where
- hostname is name or IP address of the machine on which the Hive server is running.
- port is the port on which the Hive server is listening. Default is 10000.
- db is the database to which you want to connect. If you do not provide the database name,
the Data Integration Service uses the default database details.
Description
Database Name
Namespace for tables. Use the name default for tables that do not have a specified
database name.
Default FS URI
The URI to access the default Hadoop Distributed File System (HDFS).
Use the following format:
hdfs://<node name>:<port>
Where
- node name is the host name or IP address of the NameNode.
- port is the port on which the NameNode listens for remote procedure calls (RPC).
MapR distribution supports a highly available NameNode. If you are using MapR
distribution, define FS URI in the following format: maprfs:///
23
Property
Description
JobTracker URI
The service within Hadoop that submits the MapReduce tasks to specific nodes in the
cluster.
Use the following format:
<jobtrackername>:<port>
Where
- jobtrackername is the host name or IP address of the JobTracker.
- port is the port on which the JobTracker listens for remote procedure calls (RPC).
MapR distribution supports a highly available JobTracker. If you are using MapR
distribution, define the JobTracker URI in the following format: maprfs:///
Hive Warehouse Directory on
HDFS
The absolute HDFS file path of the default database for the warehouse, which is local to
the cluster. For example, the following file path specifies a local warehouse:
/user/hive/warehouse
The JDBC connection URI used to access the data store in a local metastore setup.
The URI must be in the following format:
jdbc:<datastore type>://<node name>:<port>/<database name>
where
node name is the host name or IP address of the data store.
data store type is the type of the data store.
port is the port on which the data store listens for remote procedure calls (RPC).
database name is the name of the database.
For example, the following URI specifies a local metastore that uses MySQL as a data
store:
jdbc:mysql://hostname23:3306/metastore
Metastore Database Driver
Driver class name for the JDBC data store. For example, the following class name
specifies a MySQL driver:
com.mysql.jdbc.Driver
The metastore URI used to access metadata in a remote metastore setup. For a remote
metastore, you must specify the Thrift server details.
The URI must be in the following format:
thrift://<hostname>:<port>
Where
- hostname is name or IP address of the Thrift metastore server.
- port is the port on which the Thrift server is listening.
Creating a Connection
Create a connection before you import data objects, preview data, profile data, and run mappings.
24
Chapter 3: Connections
1.
2.
3.
4.
5.
Click Add.
6.
7.
Click Next.
8.
Configure the connection properties. For a Hive connection, you must choose the Hive connection mode and
specify the commands for environment SQL. The SQL commands appy to both the connection modes. Select at
least one of the following connection modes:
9.
Option
Description
Use the connection to access Hive data. If you select this option and click Next,
the Properties to Access Hive as a source or target page appears. Configure
the connection strings.
Use the Hive connection to validate and run Informatica mappings in the Hadoop
cluster. If you select this option and click Next, the Properties used to Run
Mappings in the Hadoop Cluster page appears. Configure the properties.
10.
Click Finish.
Creating a Connection
25
CHAPTER 4
You can also import PowerCenter mappings in the Developer tool and run them in the native environment.
26
HDFS Mappings
Create an HDFS mapping to read or write to HDFS.
You can read and write fixed-width and delimited file formats. You can read or write compressed files. You can read
text files and binary file formats such as sequence file from HDFS. You can specify the compression format of the files.
You can use the binary stream output of the complex file data object as input to a Data Processor transformation to
parse the file.
You can define the following objects in an HDFS mapping:
Flat file data object or complex file data object operation as the source to read data from HDFS.
Transformations.
Flat file data object as the target to write data to HDFS or any target.
Validate and run the mapping. You can deploy the mapping and run it or add the mapping to a Mapping task in a
workflow.
HDFS Mappings
27
2.
Create a complex file data object operation. Specify the following parameters:
The file as the resource in the data object.
The file compression format.
The HDFS file location.
3.
Optionally, you can specify the input format that the Mapper uses to read the file.
4.
5.
Create a Data Processor transformation. Configure the following properties in the Data Processor
transformation:
An input port set to buffer input and binary datatype.
Relational output ports depending on the number of columns you want in the relational output. Specify the port
size for the ports. Use an XML schema reference that describes XML hierarchy. Specify the normalized output
you want. For example, you can specify PurchaseOrderNumber_Key as a generated key that relates the
Purchase Orders output group to a Customer Details group.
Create a Streamer object and specify Streamer as a startup component.
6.
7.
8.
Create a write transformation for the relational data object and add it to the mapping.
Hive Mappings
Based on the mapping environment, you can read data from or write data to Hive.
In a native environment, you can read data from Hive. To read data from Hive, complete the following steps:
1.
2.
3.
Use the Hive connection to create a data object to read from Hive.
4.
Add the data object to a mapping and configure the mapping to run in the native environment.
You can write to Hive in a Hive environment. To read data from Hive, complete the following steps:
1.
2.
3.
4.
Add the data object to a mapping and configure the mapping to run in the Hive environment.
Validate and run the mapping. You can deploy the mapping and run it or add the mapping to a Mapping task in a
workflow.
28
29
Sorter transformation
Optionally, sort the data based on the timestamp.
Add a Sorter transformation to the mapping. Specify the timestamp as the sort key with direction as ascending.
Mapping output
Add a relational data object to the mapping as a target.
After you run the mapping, Data Integration Service writes the extracted tweets to the target table. You can use text
analytics and sentiment analysis tools to analyze the tweets.
30
CHAPTER 5
2.
3.
4.
5.
31
6.
When you run the mapping, the Data Integration Service converts the mapping to a Hive execution plan that runs on a
Hadoop cluster. You can view the Hive execution plan using the Developer tool or the Administrator tool.
The Data Integration Service has a Hive executor that can process the mapping. The Hive executor simplifies the
mapping to an equivalent mapping with a reduced set of instructions and generates a Hive execution plan. The Hive
execution plan is a series of Hive queries.The Hive execution plan contains tasks to start the mapping, run the
mapping, and clean up the temporary tables and files. You can view the Hive execution plan that the Data Integration
Service generates before you run the mapping.
You can monitor Hive queries and the Hadoop jobs associated with a query in the Administrator tool. The Data
Integration Service logs messages from the DTM, Hive session, and Hive tasks in the runtime log files.
datatype that is not used in the mapping, you can validate and run the mapping in a Hive environment.
A high precision Decimal datatype is not valid. A mapping is run in low precision mode in a Hive environment.
The results of arithmetic operations on floating point types, such as a Double or a Decimal, can vary up to 0.1
and writes to a flat file target, the results can differ between the native environment and a Hive environment. For
example, in a Hive environment, HDFS writes the output string for the decimal 19711025 with a precision of 10 and
a scale of 3 as 1971. In the native environment, the flat file writer sends the output string for the decimal 19711025
with a precision of 10 and a scale of 3 as 1971.000.
32
runtime.
You cannot use an indirect source type.
The row size in a flat file source cannot exceed 190 MB.
Hive Sources
Hive sources are valid in mappings in a Hive environment with some restrictions.
Hive sources are valid in mappings in a Hive environment with the following restrictions:
The Data Integration Service can run pre-mapping SQL commands against the source database before it reads
from a Hive source. When you run a mapping with a Hive source in a Hive environment, references to local path in
pre-mapping SQL commands are relative to the Data Integration Service node. When you run a mapping with a
Hive source in the native environment, references to local path in pre-mapping SQL commands are relative to the
Hive server node.
A mapping fails to validate when you configure post-mapping SQL commands.The Data Integration Service does
Relational Sources
The Data Integration Service does not run pre-mapping SQL commands or post-mapping SQL commands against
relational sources. You cannot validate and run a mapping with PreSQL or PostSQL properties for a relational source
in a Hive environment.
33
file target, you cannot append output data to target files and reject files.
The Data Integration Service can write to a file output for a flat file target. When you have a flat file target in a
Hive Targets
Hive targets are valid in mappings in a Hive environment with some restrictions.
Hive targets are valid in mappings in a Hive environment with the following restrictions:
The Data Integration Service does not run pre-mapping or post-mapping SQL commands against the target
database for a Hive target. You cannot validate and run a mapping with PreSQL or PostSQL properties for a Hive
target,
A mapping fails to run if the Hive target definition differs in the number and order of the columns from the relational
Service ignores write properties, update override, delete, insert, and update strategy when it writes data to a Hive
target.
A mapping fails to run when you use Unicode characters in a Hive target definition.
Relational Targets
The Data Integration Service does not run pre-mapping SQL commands or post-mapping SQL commands against
relational targets in a Hive environment. You cannot validate and run a mapping with PreSQL or PostSQL properties
for a relational target in a Hive environment.
34
Address Validator
Aggregator
Case Converter
Comparison
Consolidation
Data Processor
Decision
35
Transformation
Expression
Java
Key Generator
Labeler
36
Transformation
Lookup
Match
Merge
Parser
Rank
Router
Sorter
SQL
Standardizer
37
Transformation
Union
Weighted Average
38
Name
Limitation
ABORT
AES_DECRYPT
Not valid
AES_ENCRYPT
Not valid
COMPRESS
Not valid
CRC32
Not valid
CUME
Not valid
DEC_BASE64
Not valid
DECOMPRESS
Not valid
ENC_BASE64
Not valid
ERROR
FIRST
Not valid
LAST
Not valid
MAX (Dates)
Not valid
MD5
Not valid
MIN (Dates)
Not valid
Name
Limitation
MOVINGAVG
Not valid
MOVINGSUM
Not valid
environment. Mappings that require high precision mode may fail to run in a Hive environment.
In a Hive 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.
The following configuration differences apply to mappings in a Hive 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.
Mappings that contain a Hive source or a Hive target must use the same Hive connection to push the mapping to
Hadoop.
The Data Integration Service ignores the data file block size configured for HDFS files in the hdfs-site.xml file. The
Data Integration Service uses a default data file block size of 64 MB for HDFS files. To change the data file block
size, copy /usr/lib/hadoop/conf/hdfs-site.xml to the following location in the Hadoop distribution directory for
the Data Integration Service node: /opt/Informatica/services/shared/hadoop/[Hadoop_distribution_name]/
conf. You can also update the data file block size in the following file: /opt/Informatica/services/shared/
hadoop/[Hadoop_distribution_name]/conf/hive-default.xml.
39
\cdh4u1.
When you use MapR 2.1.2 distribution, you must modify the variable INFA_HADOOP_DIST_DIR to hadoop
\mapr_2.1.2 .
When you use MapR 2.1.2 distribution, add the following path at the beginning of the variable PATH: <Informatica
\hortonworks_1.1.
Configure the following pre-requisites in the file <Informatica Client Installation Directory>\clients
\DeveloperClient\run.bat:
When you use MapR 2.1.2 distribution, set MAPR_HOME to the following path: <Client Installation
Directory>\clients\DeveloperClient\hadoop\mapr_2.1.2
40
1.
2.
3.
4.
Description
Script Name
Script
Depends On
Tasks that the script depends on. Tasks include other scripts
and Data Integration Service tasks, like the Start task.
2.
3.
Monitoring a Mapping
You can monitor a mapping that is running on a Hadoop cluster.
1.
2.
3.
4.
Click the View Logs for Selected Object button to view the run-time logs for the mapping.
The log shows the results of the Hive queries run by the Data Integration Service. This includes the location of
Hive session logs and Hive session history file.
5.
To view the Hive execution plan for the mapping, select the Hive Query Plan view.
6.
To view each script and query included in the Hive execution plan, expand the mapping job node, and select the
Hive script or query.
41
7.
To view the MapReduce jobs in Jobtracker for a Hive query, select the query, and then click the job ID link in the
Properties view.
Jobtracker opens and shows details about MapReduce jobs that ran or are running on Hadoop.
Logs
The Data Integration Service generates log events when you run a mapping in a Hive environment.
You can view log events relating to different types of errors such as Hive connection failures, Hive query failures, Hive
command failures, or other Hadoop job failures. You can find the information about these log events in the following
log files:
LDTM log
The Logical DTM logs the results of the Hive queries run for the mapping. You can view the Logical DTM log from
the Developer tool or the Administrator tool for a mapping job.
Hive session log
For every Hive script in the Hive execution plan for a mapping, the Data Integration Service opens a Hive session
to run the Hive queries. A Hive session updates a log file in the following directory on the Data Integration Service
node: <InformaticaInstallationDir>/tomcat/bin/disTemp/. The full path to the Hive session log appears in
the LDTM log.
Hadoop Log
To view the details about the MapReduce jobs for a Hive query, you can use the Hadoop JobTracker in the
Administrator tool to navigate to the Hadoop job page. You can also find the Hadoop JobTracker URL in the
LDTM log.
42
CHAPTER 6
Profiles
This chapter includes the following topics:
Profiles Overview, 43
Native and Hadoop Environments, 44
Profile Types on Hadoop, 46
Running a Single Data Object Profile on Hadoop, 47
Running Multiple Data Object Profiles on Hadoop, 48
Monitoring a Profile, 48
Viewing Profile Results, 49
Troubleshooting, 49
Profiles Overview
You can run a profile on HDFS and Hive data sources in the Hadoop environment. The Hadoop environment helps
improve the performance. The run-time environment, native Data Integration Service or Hadoop, does not affect the
profile results.
You can run a column profile, rule profile, and data domain discovery on a single data object profile in the Hadoop
environment. You can perform these profiling capabilities on both native and Hadoop data sources. A native data
source is a non-Hadoop source, such as a flat file, relational source, or mainframe source. A Hadoop data source can
be either a Hive or HDFS source.
If you use Informatica Developer, you can choose either native or Hadoop run-time environment to run a profile. If you
choose the Hadoop environment, the Developer tool sets the run-time environment in the profile definition.
Informatica Analyst supports native environment that uses the Data Integration Service.
You run a profile in the Hadoop run-time environment from the Developer tool. You validate a data source to run the
profile in both native and Hadoop environments. To validate the profile run in the Hadoop environment, you must
select a Hive connection. You can then choose to run the profile in either native or Hadoop run-time environment.
You can view the Hive query plan in the Administrator tool. The Hive query plan consists of one or more scripts that the
Data Integration Service generates based on the logic defined in the profile. Each script contains Hive queries that run
against the Hive database. One query contains details about the MapReduce job. The remaining queries perform
other actions such as creating and dropping tables in the Hive database.
You can use the Monitoring tab of the Administrator tool to monitor a profile and Hive statements running on Hadoop.
You can expand a profile job to view the Hive queries generated for the profile. You can also view the run-time log for
each profile. The log shows run-time details, such as the time each task runs, the Hive queries that run on Hadoop,
and errors that occur.
43
Run-time Environment
Native, Hadoop
Hive
Hadoop
HDFS
Hadoop
You cannot run some of the profile definitions in either the native or Hadoop environment.
44
Chapter 6: Profiles
The following table describes some of the run-time scenarios and whether you can run the profile in different run-time
environments:
Scenario
No
No
Yes
Yes
Yes
Yes
No
Yes
No
Yes
Choose the validation environments. Validation environments are the environments that you want to set up for
the profile run. The Developer tool validates the data sources and transformations for these environments. You
must choose at least one of the environments. If you choose both environments, you must choose the run-time
environment for the profile.
2.
Choose the run-time environment. When you choose the run-time environment, the Developer tool saves one of
the associated validation environments for profile run. If you choose Hadoop, you must select a Hive connection.
The Hive connection helps the Data Integration Service communicate with the Hadoop cluster to push down the
mapping execution from the Data Integration Service to the Hadoop cluster.
The validation environments determine whether the sources and transformations that any of the source rules and data
domains may contain are valid for the environments. The Developer tool validates a profile definition before you run
it.
45
The following table describes the validation environment settings that you can configure for a profile:
Option
Description
Hadoop
Hive connection
You can specify both native and Hadoop options when you set up the validation environments for a profile. You
choose either Native or Hadoop as the run-time environment.
46
1.
Open a connection in the Developer tool to import the native or Hadoop source.
2.
Import the data source as a data object. The Developer tool saves the data object in the Model repository.
3.
4.
Set up the configuration options. These options include validation environment settings, run-time settings, and
the Hive connection.
5.
Chapter 6: Profiles
In the Object Explorer view, select the data object you want to run a profile on.
2.
3.
4.
Enter a name and description for the profile and verify the project location. If required, browse to a new
location.
Verify that Run Profile on finish is selected.
5.
Click Next.
6.
7.
8.
9.
10.
11.
Click Finish.
47
In the Object Explorer view, select the data objects you want to run a profile on.
2.
Click File > New > Profile to open the New Profile wizard.
3.
4.
Select the location where you want to create the profiles. You can create each profile at the same location of the
data object, or you can specify a common location for the profiles.
5.
Verify that the names of the data objects you selected appear within the Data Objects section.
Optionally, click Add to add another data object.
6.
Optionally, specify the number of rows to profile, and choose whether to run the profile when the wizard
completes.
7.
Click Next.
The Run Settings pane appears. You can specify the Hive settings.
8.
9.
10.
Click Finish.
11.
Optionally, enter prefix and suffix strings to add to the profile names.
12.
Click OK.
Monitoring a Profile
You can monitor a profile that is running on Hadoop.
1.
2.
3.
4.
Click the View Logs for Selected Object button to view the run-time logs for the profile.
The log shows all the hive queries that the Data Integration Service ran on the Hadoop cluster.
5.
To view the Hive query plan for the profile, select the Hive Query Plan view.
You can also view the Hive query plan in the Developer tool.
6.
To view each script and query included in the Hive query plan, expand the profiling job node, and select the Hive
script or query.
7.
To view the MapReduce jobs in Jobtracker for a Hive query, select the query, and then click the job ID link in the
Properties view.
Jobtracker opens and shows details about MapReduce jobs that ran or are running on Hadoop.
48
Chapter 6: Profiles
In the Object Explorer view, select the profile you want to view the results for.
2.
3.
Click the Results tab, if not selected already, in the right pane.
You can view the column profile and data domain discovery results in separate panes.
Troubleshooting
Can I drill down on profile results if I run a profile in the Hadoop environment?
Yes, except for profiles in which you have set the option to drill down on staged data.
I get the following error message when I run a profile in the Hadoop environment: [LDTM_1055] The Integration Service failed to
generate a Hive workflow for mapping [Profile_CUSTOMER_INFO12_14258652520457390]." How do I resolve this?
This error can result from a data source, rule transformation, or run-time environment that is not supported in the
Hadoop environment. For more information about objects that are not valid in the Hadoop environment, see the
Mappings in a Hive Environment chapter.
You can change the data source, rule, or run-time environment and run the profile again. View the profile log file
for more information on the error.
I see "N/A" in the profile results for all columns after I run a profile. How do I resolve this?
Verify that the profiling results are in the profiling warehouse. If you do not see the profile results, verify that the
database path is accurate in the HadoopEnv.properties file. You can also verify the database path from the
Hadoop job tracker on the Monitoring tab of the Administrator tool.
After I run a profile on a Hive source, I do not see the results. When I verify the Hadoop job tracker in the Administrator tool, I see the
following error when I open the profile job: "XML Parsing Error: no element found." What does this mean?
The Hive data source does not have any record and is empty. The data source must have a minimum of one row
of data for successful profile run.
After I run a profile on a Hive source, I cannot view some of the column patterns. Why?
When you import a Hive source, the Developer tool sets the precision for string columns to 4000. The Developer
tool cannot derive the pattern for a string column with a precision greater than 255. To resolve this issue, set the
precision of these string columns in the data source to 255 and run the profile again.
When I run a profile on large Hadoop sources, the profile job fails and I get an "execution failed" error. What can be the possible
cause?
One of the causes can be a connection issue. Perform the following steps to identify and resolve the connection
issue:
1.
2.
3.
Identify the profile job and open it to view the MapReduce jobs.
49
4.
50
Chapter 6: Profiles
Click the hyperlink for the failed job to view the error message. If the error message contains the text
"java.net.ConnectException: Connection refused", the problem occured because of an issue with the
Hadoop cluster. Contact your network administrator to resolve the issue.
CHAPTER 7
51
Grid Optimization
You can optimize the grid to increase performance and scalability of the Data Integration Service or PowerCenter
Integration Service.
To optimize the grid, complete the following tasks:
Add nodes to the grid.
Add nodes to the grid to increase processing bandwidth of the Integration Service.
Use a high-throughput network.
Use a high-throughput network when you access sources and targets over the network or when you run
PowerCenter sessions on a grid.
Store files in an optimal storage location for the PowerCenter Integration Service processes.
Store files on a shared file system when all of the PowerCenter Integration Service processes need to access the
files. You can store files on low-bandwidth and high-bandwidth shared file systems. Place files that are accessed
often on a high-bandwidth shared file system. Place files that are not accessed that often on a low-bandwidth
shared file system.
When only one PowerCenter Integration Service process has to access a file, store the file on the local machine
running the Integration Service process instead of a shared file system.
For more information, see the PowerCenter Performance Tuning Guide.
52
Partition Optimization
You can optimize the partitioning of PowerCenter sessions to improve session performance. You can add more
partitions, select the best performing partition types, use more CPUs, and optimize the source or target database for
partitioning.
To optimize partitioning, perform the following tasks:
Increase the number of partitions.
Increase the number of partitions to enable the PowerCenter Integration Service to create multiple connections to
sources and process partitions of source data concurrently. Increasing the number of partitions or partition points
increases the number of threads, which also increases the load on the nodes in the Integration Service. If the
Integration Service node or nodes contain ample CPU bandwidth, processing rows of data in a session
concurrently can increase session performance.
Note: If you use a single-node Integration Service and you create a large number of partitions or partition points
in a session that processes large amounts of data, you can overload the system.
Select the best performing partition types at particular points in a pipeline.
Select the best performing partition type to optimize session performance. For example, use the database
partitioning partition type for source and target databases.
Use multiple CPUs.
If you have a symmetric multi-processing (SMP) platform, you can use multiple CPUs to concurrently process
session data or partitions of data.
Optimize the source database for partitioning.
You can optimize the source database for partitioning. For example, you can tune the database, enable parallel
queries, separate data into different table spaces, and group sorted data.
Optimize the target database for partitioning.
You can optimize the target database for partitioning. For example, you can enable parallel inserts into the
database and use a Router transformation to enable each partition to write to a single database partition.
For more information, see the PowerCenter Performance Tuning Guide.
High Availability
High availability eliminates a single point of failure in an Informatica domain and provides minimal service interruption
in the event of failure. When you configure high availability for a domain, the domain can continue running despite
temporary network, hardware, or service failures. You can configure high availability among the Service Manager,
PowerCenter and PowerExchange application services, PowerCenter Client, and command line programs.
The following high availability components make services highly available in an Informatica domain:
Resilience. The ability of an Informatica domain to tolerate temporary connection failures until either the resilience
High Availability
53
When you plan a highly available Informatica environment, consider the differences between internal Informatica
components and systems that are external to Informatica. Internal components include the Service Manager,
application services, the PowerCenter Client, and command line programs. External systems include the network,
hardware, database management systems, FTP servers, message queues, and shared storage.
If you have the high availability option, you can achieve full high availability of internal Informatica components. You
can achieve high availability with external components based on the availability of those components. If you do not
have the high availability option, you can achieve some high availability of internal components.
Example
While you are fetching a mapping into the PowerCenter Designer workspace, the PowerCenter Repository Service
becomes unavailable, and the request fails. The PowerCenter Repository Service fails over to another node because
it cannot restart on the same node.
The PowerCenter Designer is resilient to temporary failures and tries to establish a connection to the PowerCenter
Repository Service. The PowerCenter Repository Service starts within the resilience timeout period, and the
PowerCenter Designer reestablishes the connection.
After the PowerCenter Designer reestablishes the connection, the PowerCenter Repository Service recovers from the
failed operation and fetches the mapping into the PowerCenter Designer workspace.
54
APPENDIX A
Datatype Reference
This appendix includes the following topics:
Datatype Reference Overview, 55
Hive Complex Datatypes, 55
Hive Datatypes and Transformation Datatypes, 56
on ANSI SQL-92 generic datatypes, which the Data Integration Service uses to move data across platforms.
Transformation datatypes appear in all transformations in a mapping.
When the Data Integration Service reads source data, it converts the native datatypes to the comparable
transformation datatypes before transforming the data. When the Data Integration Service writes to a target, it
converts the transformation datatypes to to the comparable native datatypes.
55
The following table describes the transformation types and delimiters that are used to represent the complex
datatypes:
Complex Datatype
Description
Array
The elements in the array are of string datatype. Each element of the array is delimited
by commas. For example, an array of fruits is represented as
[apple,banana,orange].
Map
Maps contain key-value pairs and are represented as pairs of strings and integers
delimited by the = character. Each pair of string and integer pair is delimited by commas.
For example, a map of fruits is represented as [1=apple,2=banana,
3=orange].
Struct
Struct are represented as pairs of strings and integers delimited by the : character.
Each pair of string and integer pair is delimited by commas. For example, a map of
fruits is represented as [1,apple].
Transformation Datatype
Tiny Int
Integer
-32,768 to 32,767
Integer
Integer
Bigint
Bigint
-9,223,372,036,854,775,808 to
9,223,372,036,854,775,807 Precision 19, scale 0
Double
Double
Precision 15
Float
Double
Precision 15
String
String
1 to 104,857,600 characters
Boolean*
Integer
1 or 0
Arrays
String
1 to 104,857,600 characters
Struct
String
1 to 104,857,600 characters
Maps
String
1 to 104,857,600 characters
* The default transformation type for boolean is integer. You can also set this to string datatype with values of True and
False.
56
APPENDIX B
Glossary
A
Apache Hadoop
An open-source software framework that supports data-intensive distributed applications.
B
big data
A set of data that is so large and complex that it cannot be processed through standard database management
tools.
C
Cloudera's Distribution Including Apache Hadoop (CDH)
Cloudera's version of the open-source Hadoop software framework.
CompressionCodec
Hadoop compression interface. A codec is the implementation of a compression-decompression algorithm. In
Hadoop, a codec is represented by an implementation of the CompressionCodec interface.
D
DataNode
An HDFS node that stores data in the Hadoop File System. An HDFS cluster can have more than one DataNode, with
data replicated across them.
H
Hadoop cluster
A cluster of machines that is configured to run Hadoop applications and services. A typical Hadoop cluster includes a
master node and several worker nodes. The master node runs the master daemons JobTracker and NameNode. A
slave or worker node runs the DataNode and TaskTracker daemons. In small clusters, the master node may also run
the slave daemons.
Hive environment
An environment that you can configure to run a mapping or a profile on a Hadoop Cluster. You must configure Hive as
the validation and run-time environment.
Hive
A data warehouse infrastructure built on top of Hadoop. Hive supports an SQL-like language called HiveQL for data
summarization, query, and analysis.
Hive executor
A component of the DTM that can simplify and convert a mapping or a profile to a Hive execution plan that runs on a
Hadoop cluster.
Hive scripts
Script in Hive query language that contain Hive queries and Hive commands to run the mapping.
Hive task
A task in the Hive execution plan. A Hive execution plan contains many Hive tasks. A Hive task contains a Hive
script.
J
JobTracker
A Hadoop service that coordinates map and reduce tasks and schedules them to run on TaskTrackers.
M
MapReduce
A programming model for processing large volumes of data in parallel.
MapReduce job
A unit of work that consists of the input data, the MapReduce program, and configuration information. Hadoop runs the
MapReduce job by dividing it into map tasks and reduce tasks.
metastore
A database that Hive uses to store metadata of the Hive tables stored in HDFS. Metastores can be local, embedded,
or remote.
N
NameNode
A node in the Hadoop cluster that manages the file system namespace, maintains the file system tree, and the
metadata for all the files and directories in the tree.
58
Glossary
native environment
The default environment in the Informatica domain that runs a mapping, a workflow, or a profile. The Integration
Service performs data extraction, transformation, and loading.
R
run-time environment
The environment you configure to run a mapping or a profile. The run-time environment can be native or Hive.
S
stateful variable port
A variable port that refers to values from previous rows.
T
TaskTracker
A node in the Hadoop cluster that runs tasks such as map or reduce tasks. TaskTrackers send progress reports to the
JobTracker.
V
validation environment
The environment you configure to validate a mapping or a profile. You validate a mapping or a profile to ensure that it
can run in a run-time environment. The validation environment can be Hive, native, or both.
Appendix B: Glossary
59
INDEX
A
architecture
grid 3
Hive environment processing 4
native environment processing 3
B
big data
access 2
big data processing
example 5
C
column profiling on Hadoop
overview 46
connections
HDFS 20
Hive 20
D
data domain discovery on Hadoop
overview 47
Data Integration Service grid 52
Data Replication
description 2
installation and configuration 9
datatypes
Hive 56
Hive complex datatypes 55
G
grid
architecture 3
Data Integration Service 52
description 3, 51
optimization 52
PowerCenter Integration Service 52
H
HDFS connections
creating 25
properties 20
HDFS mappings
description 27
60
high availability
description 3, 53
Hive connections
creating 25
properties 21
Hive environment processing
architecture 4
Hive execution plan
description, for mapping 31
Hive mappings
description 28
workflows 40
Hive query
description, for mapping 31
Hive query plan
viewing, for mapping 41
viewing, for profile 48
Hive script
description, for mapping 31
I
Informatica adapters
installation and configuration 8
Informatica clients
installation and configuration 8
Informatica services
installation and configuration 8
M
mapping example
HDFS 27
Hive 29
Twitter 29
mapping run on Hadoop
monitoring 41
overview 31
N
native environment
high availability 53
mappings 26
optimization 51
Native environment processing
architecture 3
P
partitioning
description 3, 52
optimization 53
PowerCenter
installation and configuration 8
PowerCenter adapters
installation and configuration 8
PowerCenter Big Data Edition
overview 1
PowerCenter Integration Service grid 52
PowerCenter repository tasks
description 52
PowerCenter sessions
partitioning 52
PowerExchange adapters
installation and configuration 8
profile results
viewing 49
profile run on Hadoop
monitoring 48
Overview 43
profile types 46
running a single data object 47
R
rule profiling on Hadoop
overview 47
S
social media mappings
description 29
W
workflows
Hive mappings 40
Index
61