plug-in for big data user's guide tibco activematrix ... · this tutorial is designed for the...

75
TIBCO ActiveMatrix BusinessWorks Plug-in for Big Data User's Guide Software Release 6.6 December 2019

Upload: others

Post on 09-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

TIBCO ActiveMatrix BusinessWorks™

Plug-in for Big DataUser's GuideSoftware Release 6.6December 2019

Page 2: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Important Information

SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCHEMBEDDED OR BUNDLED TIBCO SOFTWARE IS SOLELY TO ENABLE THE FUNCTIONALITY (ORPROVIDE LIMITED ADD-ON FUNCTIONALITY) OF THE LICENSED TIBCO SOFTWARE. THEEMBEDDED OR BUNDLED SOFTWARE IS NOT LICENSED TO BE USED OR ACCESSED BY ANYOTHER TIBCO SOFTWARE OR FOR ANY OTHER PURPOSE.

USE OF TIBCO SOFTWARE AND THIS DOCUMENT IS SUBJECT TO THE TERMS ANDCONDITIONS OF A LICENSE AGREEMENT FOUND IN EITHER A SEPARATELY EXECUTEDSOFTWARE LICENSE AGREEMENT, OR, IF THERE IS NO SUCH SEPARATE AGREEMENT, THECLICKWRAP END USER LICENSE AGREEMENT WHICH IS DISPLAYED DURING DOWNLOADOR INSTALLATION OF THE SOFTWARE (AND WHICH IS DUPLICATED IN THE LICENSE FILE)OR IF THERE IS NO SUCH SOFTWARE LICENSE AGREEMENT OR CLICKWRAP END USERLICENSE AGREEMENT, THE LICENSE(S) LOCATED IN THE “LICENSE” FILE(S) OF THESOFTWARE. USE OF THIS DOCUMENT IS SUBJECT TO THOSE TERMS AND CONDITIONS, ANDYOUR USE HEREOF SHALL CONSTITUTE ACCEPTANCE OF AND AN AGREEMENT TO BEBOUND BY THE SAME.

ANY SOFTWARE ITEM IDENTIFIED AS THIRD PARTY LIBRARY IS AVAILABLE UNDERSEPARATE SOFTWARE LICENSE TERMS AND IS NOT PART OF A TIBCO PRODUCT. AS SUCH,THESE SOFTWARE ITEMS ARE NOT COVERED BY THE TERMS OF YOUR AGREEMENT WITHTIBCO, INCLUDING ANY TERMS CONCERNING SUPPORT, MAINTENANCE, WARRANTIES,AND INDEMNITIES. DOWNLOAD AND USE OF THESE ITEMS IS SOLELY AT YOUR OWNDISCRETION AND SUBJECT TO THE LICENSE TERMS APPLICABLE TO THEM. BY PROCEEDINGTO DOWNLOAD, INSTALL OR USE ANY OF THESE ITEMS, YOU ACKNOWLEDGE THEFOREGOING DISTINCTIONS BETWEEN THESE ITEMS AND TIBCO PRODUCTS.

This document is subject to U.S. and international copyright laws and treaties. No part of thisdocument may be reproduced in any form without the written authorization of TIBCO Software Inc.

TIBCO, the TIBCO logo, the TIBCO O logo, ActiveMatrix BusinessWorks, Business Studio, TIBCOBusiness Studio, and TIBCO Enterprise Administrator are either registered trademarks or trademarksof TIBCO Software Inc. in the United States and/or other countries.

Java and all Java based trademarks and logos are trademarks or registered trademarks of Oracle and/orits affiliates.

All other product and company names and marks mentioned in this document are the property of theirrespective owners and are mentioned for identification purposes only.

This software may be available on multiple operating systems. However, not all operating systemplatforms for a specific software version are released at the same time. Please see the readme.txt file forthe availability of this software version on a specific operating system platform.

THIS DOCUMENT IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.

THIS DOCUMENT COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICALERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN; THESECHANGES WILL BE INCORPORATED IN NEW EDITIONS OF THIS DOCUMENT. TIBCOSOFTWARE INC. MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S)AND/OR THE PROGRAM(S) DESCRIBED IN THIS DOCUMENT AT ANY TIME.

THE CONTENTS OF THIS DOCUMENT MAY BE MODIFIED AND/OR QUALIFIED, DIRECTLY ORINDIRECTLY, BY OTHER DOCUMENTATION WHICH ACCOMPANIES THIS SOFTWARE,INCLUDING BUT NOT LIMITED TO ANY RELEASE NOTES AND "READ ME" FILES.

This and other products of TIBCO Software Inc. may be covered by registered patents. Please refer toTIBCO's Virtual Patent Marking document (https://www.tibco.com/patents) for details.

2

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 3: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Copyright © 2013-2019. TIBCO Software Inc. All Rights Reserved.

3

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 4: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Contents

TIBCO Documentation and Support Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6

Product Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8

Creating a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Creating an HDFS Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Creating an HCatalog Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Creating an Oozie Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Connecting to a Kerberos-Enabled Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Configuring a Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Testing a Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Deploying an Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Shared Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

HDFS Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

HCatalog Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21

Database and Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24

Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25

Oozie Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Palettes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

HDFS Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

HDFSOperation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29

ListFileStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

Read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

Hadoop Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39

Hive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

MapReduce . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

Pig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

WaitForJobCompletion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

Child Elements of Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

Child Elements of Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

Child Elements of Userargs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52

Oozie Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52

SubmitJob . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

GetJobInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55

Working with the Sample Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

4

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 5: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Importing the Sample Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

Running the Sample Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

Data Collection and Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62

Oozie Sample Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62

Managing Logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

Log Levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

Setting Up Log Levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

Enabling Kerberos-Related Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

Exporting Logs to a File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

Installing JCE Policy Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

5

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 6: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

TIBCO Documentation and Support Services

How to Access TIBCO Documentation

Documentation for TIBCO products is available on the TIBCO Product Documentation website, mainlyin HTML and PDF formats.

The TIBCO Product Documentation website is updated frequently and is more current than any otherdocumentation included with the product. To access the latest documentation, visit https://docs.tibco.com.

Product-Specific Documentation

Documentation for TIBCO products is not bundled with the software. Instead, it is available on theTIBCO Documentation site. To directly access documentation for this product, double-click thefollowing file:

TIBCO_HOME/release_notes/TIB_bwpluginbigdata_version_docinfo.html

where TIBCO_HOME is the top-level directory in which TIBCO products are installed. On Windows,the default TIBCO_HOME is C:\tibco. On UNIX systems, the default TIBCO_HOME is /opt/tibco.

The following documents for this product can be found on the TIBCO Documentation site:

● TIBCO ActiveMatrix BusinessWorks Plug-in for Big Data Installation

● TIBCO ActiveMatrix BusinessWorks Plug-in for Big Data User's Guide

● TIBCO ActiveMatrix BusinessWorks Plug-in for Big Data Release Notes

The following documents provide additional information and can be found on the TIBCODocumentation site:

● TIBCO ActiveMatrix BusinessWorks documentation

● TIBCO Enterprise Administrator User's Guide

How to Contact TIBCO Support

You can contact TIBCO Support in the following ways:

● For an overview of TIBCO Support, visit http://www.tibco.com/services/support.

● For accessing the Support Knowledge Base and getting personalized content about products you areinterested in, visit the TIBCO Support portal at https://support.tibco.com.

● For creating a Support case, you must have a valid maintenance or support contract with TIBCO.You also need a user name and password to log in to https://support.tibco.com. If you do not have auser name, you can request one by clicking Register on the website.

How to Join TIBCO Community

TIBCO Community is an online destination for TIBCO customers, partners, and resident experts. It is aplace to share and access the collective experience of the TIBCO community. TIBCO Community offersforums, blogs, and access to a variety of resources. To register, go to the following web address:

https://community.tibco.com

6

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 7: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Product Overview

With TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data, you can manage big data withoutcoding.

TIBCO ActiveMatrix BusinessWorks™ is a leading integration platform that can integrate a widevariety of technologies and systems within enterprise and on cloud. ActiveMatrix BusinessWorks™includes an Eclipse-based graphical user interface (GUI) provided by TIBCO Business Studio™ fordesign, testing, and deployment. If you are not familiar with ActiveMatrix BusinessWorks, see theActiveMatrix BusinessWorks documentation for more details.

ActiveMatrix BusinessWorks™ Plug-in for Big Data plugs into ActiveMatrix BusinessWorks, bridgingActiveMatrix BusinessWorks with Hadoop. Using this plug-in, you can establish a non-code approachto integrate ActiveMatrix BusinessWorks with Hadoop family projects, such as Hadoop Distributed FileSystem (HDFS).

The plug-in provides the following common functions:

● Copies files between HDFS and a local file system

● Renames files in HDFS

● Deletes files from HDFS

● Lists the status of a file or directory in HDFS

● Reads data in a file in HDFS

● Writes data to a file in HDFS

● Creates and queues a Hive, MapReduce, or Pig job

● Submit Oozie workflow, bundle, coordinator, and proxy (mapreduce, hive, pig, sqoop) jobs

Before using this plug-in to run operations, ensure that you have appropriate permissions to accessHDFS.

7

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 8: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Getting Started

This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for BigData in TIBCO Business Studio.

All the operations are performed in TIBCO Business Studio.

A basic procedure of using ActiveMatrix BusinessWorks Plug-in for Big Data includes:

1. Creating a Project

2. Creating an HDFS Connection, Creating an HCatalog Connection, or Creating an Oozie Connection

3. Configuring a Process

4. Testing a Process

5. Deploying an Application

Creating a ProjectThe first task using the plug-in is creating a project. After creating a project, you can add resources andprocesses.

An Eclipse project is an application module configured for ActiveMatrix BusinessWorks. Anapplication module is the smallest unit of resources that is named, versioned, and packaged as part ofan application.

Procedure

1. Start TIBCO Business Studio using one of the following ways:

● Microsoft Windows: click Start > All Programs > TIBCO > TIBCO_HOME > TIBCO BusinessStudio version_number > Studio for Designers.

● Mac OS and Linux: run the TIBCO Business Studio executable file that is located in theTIBCO_HOME/studio/version_number/eclipse directory.

2. From the menu, click File > New > BusinessWorks Resources to open the BusinessWorks Resourcewizard.

3. In the "Select a wizard" dialog, click BusinessWorks Application Module and click Next to openthe New BusinessWorks Application Module wizard.

4. In the Project dialog, configure the project that you want to create:a) In the Project name field, enter a project name.b) By default, the created project is located in the workspace current in use. If you do not want to

use the default location for the project, clear the Use default location check box and click Browseto select a new location.

c) Use the default version of the application module, or enter a new version in the Version field.d) Keep the Create empty process and Create Application check boxes selected to automatically

create an empty process and an application when creating the project.e) Select the Use Java configuration check box if you want to create a Java module.

A Java module provides the Java tooling capabilities.f) Click Finish to create the project.

Result

The project with the specified settings is displayed in the Project Explorer view.

8

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 9: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Creating an HDFS ConnectionYou can create an HDFS Connection shared resource if you want to build a connection between theplug-in and HDFS.

Prerequisites

The HDFS Connection shared resource is available at the Resources level. Ensure that you have createda project, as described in Creating a Project.

Procedure

1. Expand the created project in the Project Explorer view.

2. Right-click the Resources folder and click New > HDFS Connection.

3. The resource folder, package name, and resource name of the shared resource are provided bydefault. You can change these default configurations accordingly. Click Finish to open the HDFSConnection shared resource editor.

4. In the Connection Type field, select the type of URL, either Namenode or Gateway that is used toconnect to HDFS.

5. In the HDFS Url field, specify the WebHDFS URL or the HttpFS URL that is used to connect toHDFS.

6. In the User Name field, specify the unique user name that is used to connect to HDFS.

7. Click Test Connection to validate the connection.

8. Optional: If you want to connect to a Kerberized HDFS server, select the Enable Kerberos checkbox, and then set up a connection to the Kerberized HDFS server.

If your server uses the AES-256 encryption, you must install Java Cryptography Extension(JCE) Unlimited Strength Jurisdiction Policy Files on your machine. For more details, see Installing JCE Policy Files.

a) From the Kerberos Method list, select a Kerberos authentication method:

9

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 10: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

● Keytab: specify a keytab file to authorize access to HDFS.

● Cached: use the cached credentials to authorize access to HDFS.

● Password: specify a password for the Kerberos principal.b) In the Kerberos Principal field, specify the Kerberos principal name that is used to connect to

HDFS.c) If you select Keytab as the authentication method, specify the keytab that is used to connect to

HDFS in the Kerberos Keytab field.d) Click Test Connection to validate the connection.

Creating an HCatalog ConnectionYou can create an HCatalog Connection shared resource if you want to build a connection between theplug-in and HCatalog.

Prerequisites

The HCatalog Connection shared resource is available at the Resources level. Ensure that you havecreated a project, as described in Creating a Project.

Procedure

1. Expand the created project in the Project Explorer view.

2. Right-click the Resources folder and click New > HCatalog Connection.

3. The resource folder, package name, and resource name of the shared resource are provided bydefault. You can change these default configurations accordingly. Click Finish to open the HCatalogConnection shared resource editor.

4. In the Select Url Type field, select the type of URL, either WebHCat or Gateway that is used toconnect to HCatalog.

5. In the HCatalog Url field, specify the WebHCat URL used to connect to HCatalog.

6. In the User Name field, specify the unique user name used to connect to HCatalog.

7. Next to the HDFS Connection field, click to select an HDFS connection.

8. Click Test Connection to validate the connection.

9. Optional: If you want to connect to a Kerberized WebHCat server, select the Enable Kerberos checkbox, and then set up a connection to the Kerberized WebHCat server.

If your server uses the AES-256 encryption, you must install Java Cryptography Extension(JCE) Unlimited Strength Jurisdiction Policy Files on your machine. For more details, see Installing JCE Policy Files.

a) From the Kerberos Method list, select a Kerberos authentication method:

● Keytab: specify a keytab file to authorize access to WebHCat.

● Cached: use the cached credentials to authorize access to WebHCat.

● Password: specify a password for the Kerberos principal.b) In the Kerberos Principal field, specify the Kerberos principal name used to connect to

WebHCat.c) If you select Keytab as the authentication method, specify the keytab used to connect to

WebHCat in the Kerberos Keytab field.d) Click Test Connection to validate the connection.

10

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 11: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

What to do next

After an HCatalog connection is established, you can click the Database and Table tab to introspectdatabases and tables existing in HCatalog. See Database and Table for more information.

Creating an Oozie ConnectionYou can create an Oozie Connection shared resource if you want to build a connection between theplug-in and Oozie.

Prerequisites

The Oozie Connection shared resource is available at the Resources level. Ensure that you have createda project, as described in Creating a Project section.

Procedure

1. Expand the created project in the Project Explorer view.

2. Right-click the Resources folder and click New > Oozie Connection.

3. The resource folder, package name, and resource name of the shared resource are provided bydefault. You can change these default configurations accordingly. Click Finish to open the OozieClient shared resource editor.

4. In the Oozie Server URL field, provide the server URL and the port.

5. Optional: Select the SSL check box if you want to connect to a secure Oozie server.

6. To create an SSL Client Configuration, click the Browse button on the extreme right.

7. Select a shared resource connection if it is displayed and click OK. If not, then click the CreateShared Resource button.

8. In the Create SslClientResource Resource Template dialog box, you might keep the default valuesfor the Resource Folder, Package, and the Resource Name fields and click Finish.The SSL Client is configured.

9. Click Test Connection to validate the connection.

10. Optional: If you want to connect to a Kerberized HDFS server, select the Enable Kerberos checkbox, and then set up a connection to the Kerberized HDFS server.

If your server uses the AES-256 encryption, you must install Java Cryptography Extension(JCE) Unlimited Strength Jurisdiction Policy Files on your machine. For more details, see Installing JCE Policy Files.

11. From the Kerberos Method list, select a Kerberos authentication method:

● Keytab: specify a keytab file to authorize access to Oozie.

● Cached: use the cached credentials to authorize access to Oozie.

● Password: specify a password for the Kerberos principal.

12. In the Kerberos Principal field, specify the Kerberos principal name that is used to connect toOozie.

13. If you select Keytab as the authentication method, specify the keytab that is used to connect toOozie in the Kerberos Keytab field.

14. Click Test Connection to validate the connection.

11

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 12: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Connecting to a Kerberos-Enabled ClusterYou can configure the ActiveMatrix BusinessWorks Plug-in for Big Data to connect to Kerberos-enabledHadoop, HDFS, or Oozie servers by using any of the three Kerberos methods: Keytab, Cached, orPassword.

Prerequisites

You must have the following files available when configuring your plug-in:

● A keytab file that is used to identify the principal● On Macintosh and Linux: krb5.conf file. This file contains the information about your KDC serverconfiguration such as realm, and the connection properties.

● On Windows: krb5.ini file

Generate the above files on your KDC server and keep them handy. Refer to the documentation fromyour vendor for details on how to generate the files.

Copying the keytab and krb5 Files to Your System

You must copy the krb5 files obtained from the KDC server to the following folder on the machinewhere the Big Data plug-in is installed:

● On Macintosh and Linux: /etc● On Windows: C:\Windows

Select one of the following Kerberos methods in TIBCO Business Studio to connect to a Kerberos-enabled Hadoop server:

Using the Keytab Method

Follow these steps to use the Keytab method:

1. In Project Explorer, fully expand the application module, and double-click the HCatalogConnection shared resource under the Resources folder to open the HcatalogConnection Editor inthe right pane.

2. Select the Enable Kerberos check box.

3. Select Keytab from the Kerberos Method drop-down menu.

4. Enter the Kerberos Principal in its text box.

5. Enter the path to the Keytab file on your system or navigate to it by using the button.

6. Test the connection using the Test Connection button.

Repeat the same steps for the HDFS Connection or Oozie Connection shared resource.

Using the Cached Method

Make sure that you have the keytab file handy before following this procedure. You must cache thekeytab file in your environment on the machine where the Big Data plug-in is installed.

Follow these steps to use the Cached method:

1. Open a command prompt and run the following command:kinit -kt <keytab-filename><principal-name>

This utility caches the keytab file in your environment.

12

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 13: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

2. After the command completes, run klist to make sure that the keytab file has been properlycached. When successful, the klist command outputs the details of the principal associated withthe keytab file.

3. In Project Explorer, fully expand the application module, and double-click the HCatalogConnection shared resource under the Resources folder to open the HcatalogConnection Editor inthe right pane.

4. Select the Enable Kerberos check box.

5. Select Cached from the Kerberos Method drop-down menu.

6. Enter the Kerberos Principal in its text box.

7. Test the connection using the Test Connection button.

Repeat the same steps for the HDFS Connection or Oozie Connection shared resource.

Using the Password Method

The Password method does not require the keytab file. Follow these steps to use the Password method:

1. In Project Explorer, fully expand the application module, and double-click the HCatalogConnection shared resource under the Resources folder to open the HcatalogConnection Editor inthe right pane.

2. Select the Enable Kerberos check box.

3. Select Password from the Kerberos Method drop-down menu.

4. Enter the Kerberos Principal in its text box.

5. Enter the password for the Kerberos principal in the Kerberos Password text box.

6. Test the connection using the Test Connection button.

Repeat the same steps for the HDFS Connection or Oozie Connection shared resource.

Configuring a ProcessAfter creating a project, an empty process is created. You can add activities to the empty process tocomplete a task, for example, writing data to a specified file in HDFS.

Prerequisites

Ensure that you have created an empty process after Creating a Project.

Procedure

1. In the Project Explorer view, click the created project and open the empty process from theProcesses folder.

2. Select an activity from the Palette view and drop it in the Process editor.For example, select and drop the Timer activity from the General Activities palette and the Writeand HDFSOperation activities from the HDFS palette.

13

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 14: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

3. Drag the icon to create a transition between the added activities.

4. Configure the added activities, as described in HDFS Palette or Hadoop Palette or Oozie Palette.

● An HDFS connection is required when configuring the HDFS activities. For moreinformation about how to create an HDFS connection, see Creating an HDFSConnection.

● An HCatalog connection is required when configuring the HCatalog activities. Formore information about how to create ab HCatalog connection, see Creating anHCatalog Connection.

● An Oozie connection is required when configuring any Oozie palette activity. For moreinformation about how to create an Oozie connection, see Creating an OozieConnection.

5. Click File > Save to save the project.

Testing a ProcessAfter configuring a process, you can test the process to check if the process completes your task.

Prerequisites

Ensure that you have configured a process, as described in Configuring a Process.

Procedure

1. On the toolbar, click Debug > Debug Configurations.

2. Click BusinessWorks Application > BWApplication in the left panel.By default, all the applications in the current workspace are selected in the Applications tab. Ensurethat only the application you want to debug is selected in the Applications tab in the right panel.

3. Click Debug to test the process in the selected application.TIBCO Business Studio changes to the Debug perspective. The debug information is displayed inthe Console view.

14

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 15: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

4. In the Debug tab, expand the running process and click an activity.

5. In the upper-right corner, click the Job Data tab, and then click the Output tab to check the activityoutput.

Deploying an ApplicationAfter testing, if the configured process works as expected, you can deploy the application that containsthe configured process into a runtime environment, and then use the bwadmin utility to manage thedeployed application.

Before deploying an application, you must generate an application archive, which is an enterprisearchive (EAR) file that is created in TIBCO Business Studio.

Deploying an application involves the following tasks:

1. Uploading an application archive.

2. Deploying an application archive.

3. Starting an application.

See TIBCO ActiveMatrix BusinessWorks Administration for more details about how to deploy anapplication.

15

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 16: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Shared Resources

You can use the HDFS Connection shared resource to connect the plug-in with HDFS, HCatalogConnection shared resource to connect the plug-in with HCatalog, and the Oozie shared recourse toconnect with Oozie.

HDFS ConnectionThe HDFS Connection shared resource contains all necessary parameters to connect to HDFS. It can beused by the HDFS Operation, ListFileStatus, Read, Write activities, and the HCatalog Connectionshared resource.

General

In the General panel, you can specify the package that stores the HDFS Connection shared resource andthe shared resource name.

The following table lists the fields in the General panel of the HDFS Connection shared resource:

FieldModuleProperty? Description

Package No The name of the package where the shared resource islocated.

Name No The name as the label for the shared resource in theprocess.

Description No A short description for the shared resource.

HDFSConnection

In the HDFSConnection Configuration panel, provide the necessary information to connect the plug-inwith HDFS. You can also connect to a Kerberized HDFS server. The HDFS Connection shared resourcealso supports the Knox Gateway security system provided by HortonWorks and connectivity withAzure Data Lake Storage Gen1.

You must configure Azure Data Lake Storage Gen1 with Service-to-service OAuth2.0 authenticationmechanism.

The following table lists the fields in the HDFSConnection panel of the HDFS Connection sharedresource:

16

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 17: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

ConditionApplicable Field

ModuleProperty? Description

N/A ConnectionType

No The connection type used to connect to HDFS.The following types of connections areavailable:

● Namenode● Gateway● Azure Data Lake Storage Gen1

The default URL type is Namenode when anew connection is created.

Available onlywhen you selectNamenode as theconnection type

HDFS Url Yes The WebHDFS URL is used to connect toHDFS. The default value is http://localhost:50070.

The plug-in supports HttpFS and HttpFS withSSL. You can enter an HttpFS URL with HTTPor HTTPS in this field. For example:

http://httpfshostname:14000

https://httpfshostname:14000

To set up high availability for yourcluster, enter two comma-separatedURLs in this field. Make sure thatthere are no spaces between thecomma and the second URL. Theplug-in designates the first entry tobe the primary node and the secondentry to be a secondary node.

Available onlywhen you selectGateway as theconnection type

Gateway Url Yes The Knox Gateway URL is used to connect toHDFS. For example, enter Knox Gateway URLas https://localhost:8443/gateway/default, where default is the topology name.

In the Gateway URL, based ondifferent topologies, the topologyname is appended at the end of theURL.

Password Yes The password that is used to connect to HDFS.

Available onlywhen you selectNamenode orGateway as theconnection type

User Name Yes Create a unique user name to connect toHDFS.

SSL No Select the check box to enable the SSLconfiguration. By default, the SSL check box isnot selected.

17

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 18: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

ConditionApplicable Field

ModuleProperty? Description

Available onlywhen you enableSSL configuration

Key File Yes Select the server certificate for HDFS.

Key Password Yes The password for the server certificate.

Trust File Yes Select the client certificate for HDFS.

TrustPassword

Yes The password for the client certificate.

Available onlywhen you selectNamenode orGateway as theconnection type

EnableKerberos

No To connect to a Kerberized WebHCat server,you can select this check box.

By default, the Enable Kerberos check box isnot selected.

If your server uses the AES-256encryption, you must install JavaCryptography Extension (JCE)Unlimited Strength JurisdictionPolicy Files on your machine. Formore details, see Installing JCEPolicy Files.

Available onlywhen you enableKerberos and selecteither Keytab,Cached, orPassword as theKerberos method

KerberosMethod

No The Kerberos authentication method that isused to authorize access to HDFS. Select anauthentication method from the list:

● Keytab: specify a keytab file to authorizeaccess to HDFS.

● Cached: use the cached credentials toauthorize access to HDFS.

● Password: enter the name of the Kerberosprincipal and a password for the Kerberosprincipal.

KerberosPrincipal

Yes The Kerberos principal name that is used toconnect to HDFS.

Available onlywhen you enableKerberos and selectKeytab as theKerberos method

KerberosKeytab

Yes The keytab that is used to connect to HDFS.

18

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 19: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

ConditionApplicable Field

ModuleProperty? Description

Login ModuleFile

Yes The login module file is used to authorizeaccess to WebHDFS. Each LoginModule-specific item specifies a LoginModule, a flagvalue, and options to be passed to theLoginModule.

You can leave the KerberosPrincipal and Keytab File fieldsempty if login module is provided.The login module file takespreference over the principal andkeytab file fields if populated.

The login module file for HDFS client is of thefollowing format:HDFSClient{ com.sun.security.auth.module.Krb5LoginModule required useKeyTab=true storeKey=false debug=true keyTab="<keytab file path>" principal="<Principal>";};

For AIX platform, the login module file forHDFS client is of the following format:HDFSClient { com.ibm.security.auth.module.Krb5LoginModule required principal="<Principal>" useKeytab="<keytab file path>" credsType="both";};

Available onlywhen you enableKerberos and selectPassword as theKerberos method

KerberosPassword

Yes Password for the Kerberos principal

Available onlywhen you selectAzure Data LakeStorage Gen1 asthe connection type

Data LakeName

Yes Name of the Azure Data Lake Storage Gen1resource you created on Azure portal

19

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 20: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

ConditionApplicable Field

ModuleProperty? Description

Authentication Type

Yes The authentication type you want to use.

For the Azure Data Lake Storage Gen1connection type, the default OAuth2.0resource values are as follows:

● For OAuth2.0 (v1)

— https://management.core.windows.net/

● For OAuth2.0 (v2)

— https://management.core.windows.net//.default

To override the default values, set the -Dcom.tibco.bw.webhdfs.oauthtoken.resou

rce system property.

Directory(Tenant) ID

Yes Tenant ID of the Azure Active DirectoryApplication

Application(Client) ID

Yes Client ID of the Azure Active DirectoryApplication

Client Secret Yes Client secret registered under Certificates andSecrets section in the Azure Active Directoryapplication configuration

Token RefreshTime (min)

Yes The time in minutes after which theauthentication access token is refreshed by theplug-in.

The default token refresh time is 60 minutes.

By default, the Azure Active Directoryapplication OAuth2.0 access is valid for 60minutes.

To set a buffer time

You can set a buffer time to refresh the tokenby using the -Dcom.tibco.bw.webhdfs.oauthtoken.minbe

foreexpiry system property.

Test Connection

You can click Test Connection to test whether the specified configuration fields result in a validconnection.

20

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 21: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Setting up High Availability

You can set up high availability for your cluster in this panel. To do so, enter two URLs as comma-separated values (no space between the comma and the second URL) in the HDFS Url field under theHDFS Connection section of this panel. The plug-in designates the first entry to be the primary nodeand the second entry to be the secondary node. The plug-in automatically connects and routes therequest to the secondary node in the event that the primary node goes down.To check the status of a node, use the API, <HDFS URL>/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus, For example, http://cdh571.na.tibco.com:50070/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus

HCatalog ConnectionThe HCatalog Connection shared resource contains all the necessary parameters to connect toHCatalog. It can be used by the Hive, MapReduce, Pig, and WaitForJobCompletion activities.

General

In the General panel, you can specify the package that stores the HCatalog Connection shared resourceand the shared resource name.

The following table lists the fields in the General panel of the HCatalog Connection shared resource:

FieldModuleProperty? Description

Package No The name of the package where the shared resource is located.

Name No The name as the label for the shared resource in the process.

Description No A short description for the shared resource.

HCatalogConnection Configuration

In the HCatalogConnection Configuration panel, you can provide necessary information to connect theplug-in with HCatalog. You can also connect to a Kerberized WebHcat server. The HCatalogConnection shared resource also supports the Knox Gateway security system provided byHortonWorks.

The following table lists the fields in the HCatalogConnection Configuration panel of the HCatalogConnection shared resource:

FieldModuleProperty? Description

Select Url Type No The URL type used to connect to HCatalog. There are twotypes of URL:

● WebHCat● Gateway

The default URL type is WebHCat when a new connection iscreated.

21

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 22: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

FieldModuleProperty? Description

Gateway Url Yes This field is displayed when the Gateway option is selected inthe Select Url Type field. The Knox Gateway URL is used toconnect to HCatalog. For example, enter Knox Gateway URLas https://localhost:8443/gateway/default, wheredefault is topology name.

In Gateway URL, based on different topologies, thetopology name is appended at the end of the URL.

HCatalog Url Yes This field is displayed when the Namenode option is selectedin the Select Url Type field. The WebHCat URL that is used toconnect to HCatalog. The default value is http://localhost:50111.

User Name Yes The unique user name that is used to connect to HCatalog.

Password Yes This field is displayed when the Gateway option is selected inthe Select Url Type field. The password that is used toconnect to HCatalog.

SSL No Select the check box to enable the SSL configuration. Bydefault, the SSL check box is unchecked.

Key File Yes Select the server certificate for HCatalog. This field isdisplayed only when the SSL check box is selected.

Key Password Yes The password for the server certificate. This field is displayedonly when the SSL check box is selected.

Trust File Yes Select the client certificate for HCatalog. This field is displayedonly when the SSL check box is selected.

Trust Password Yes The password for the client certificate. This field is displayedonly when the SSL check box is selected.

HDFSConnection No The HDFS Connection shared resource that is used to create a

connection between the plug-in and HDFS. Click to selectan HDFS Connection shared resource.

If no matching HDFS Connection shared resources are found,click Create Shared Resource to create one. For more details,see Creating an HDFS Connection.

Enable Kerberos No If you want to connect to a Kerberized WebHCat server, youcan select this check box.

If your server uses the AES-256 encryption, youmust install Java Cryptography Extension (JCE)Unlimited Strength Jurisdiction Policy Files on yourmachine. For more details, see Installing JCE PolicyFiles.

22

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 23: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

FieldModuleProperty? Description

Kerberos Method No The Kerberos authentication method that is used to authorizeaccess to WebHCat. Select an authentication method from thelist:

● Keytab: specify a keytab file to authorize access toWebHCat.

● Cached: use the cached credentials to authorize access toWebHCat.

● Password: enter the name of the Kerberos principal and apassword for the Kerberos principal.

This field is displayed only when you select the EnableKerberos check box.

Kerberos Principal Yes The Kerberos principal name that is used to connect toWebHCat.

This field is displayed only when you select the EnableKerberos check box.

Kerberos Password Yes The password for the Kerberos principal.

This field is displayed only when you select the Passwordfrom the Kerberos Method list.

Kerberos Keytab Yes The keytab that is used to connect to WebHCat.

This field is displayed only when you select Keytab from theKerberos Method list.

23

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 24: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

FieldModuleProperty? Description

Login Module File Yes The login module file is used to authorize access to WebHCat.Each LoginModule-specific item specifies a LoginModule, aflag value, and options to be passed to the LoginModule.

This field is displayed only when you select Keytab from theKerberos Method list.

Kerberos Principal and Keytab File fields can beleft empty if login module is provided. The loginmodule file takes preference over the principal andkeytab file fields if populated.

The login module file for Hadoop client is of the followingformat:HadoopClient { com.sun.security.auth.module.Krb5LoginModule required useKeyTab=true storeKey=false debug=true keyTab="<keytab file path>" principal="<Principal>";};

For AIX platform, the login module file for Hadoop client is ofthe following format:HadoopClient { com.ibm.security.auth.module.Krb5LoginModule required principal="<Principal>" useKeytab="<keytab file path>" credsType="both"; };

Test Connection

You can click Test Connection to test whether the specified configuration fields result in a validconnection.

Database and TableIn Database and Table Editor, you can introspect the databases and tables existing in HCatalog.

Creating or modifying databases or tables are not supported by the plug-in in this release.

You can perform the following operations on databases or tables:

Introspecting Databases

If you want to introspect all the databases that currently exist in the specified HCatalog server, clickIntrospect Database. When you select one of them from the database list, the plug-in generates adatabase with definitions. See Database for more information about the introspected database.

Removing Databases or Tables

If you want to remove a selected database or table from the Database list, click Remove.

24

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 25: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Introspecting Tables

If you want to introspect all the tables that currently exist in a specified database, click Introspect Table.When you select one of them from the table list, the plug-in generates a table with definitions. See Tablefor more information about the introspected table.

Generating Table Schema

If you want to generate table schema, click Generate Schema. You can then enter a name for the schemafile, which is stored in the Schemas folder in your project.

Database

Database is an administrative container for a set of tables.

Configuration

In the Configuration panel, you can view detailed information of an introspected database.

The following table lists the fields in the Configuration panel of a database:

Field Description

Name The name of the database.

Description A short description of the database.

Database Location The directory where the database is located.

Database Comment The comment for the database.

Database Properties Properties of the database. A property is associated with a name and avalue.

Table

Table provides shared virtual storage for data. It is a shared entity that can be accessed by multipleapplications concurrently, each one of these has the same coherent view of the data contained in thetable.

Configuration

In the Configuration panel, you can view detailed information of an introspected table.

The following table lists the fields in the Configuration panel of a table:

Field Description

Name The name of the table.

Description A short description of the table.

Comment The comment for the table.

Location The directory where the table is located.

25

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 26: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Field Description

Table Columns The columns of the table. A column is associated with a name, a type, anadvanced type, and a comment.

The AdvancedType column indicates a complex data type.

Advanced

In the Advanced panel, you can view advanced configurations of the introspected table.

The following table lists the fields in the Advanced panel of the table:

Field Description

Partitioned If this check box is selected, the table is partitioned. Otherwise, the table isnot partitioned.

Output Format The output format of the table.

Owner The owner of the table.

Input Format The input format of the table.

Permission The permission of the table.

Group The group that is associated with the table.

Partition Columns The partition columns of the table. A partition column is associated with aname, a type, and a comment.

Table Properties The properties of the table. A table property is associated with a name and avalue.

Oozie ConnectionThe Oozie Connection shared resource contains all necessary parameters to connect to Oozie. It can beused by the SubmitJob and GetJobInfo activities of the Oozie palette.

General

In the General panel, you can specify the package that stores the Oozie Connection shared resource andthe shared resource name.

The following table lists the fields in the General panel of the Oozie Connection shared resource:

FieldModuleProperty? Description

Package No The name of the package where the shared resource is located.

Name No The name as the label for the shared resource in the process.

Description No A short description for the shared resource.

26

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 27: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Oozie Connection Configuration

In the Ooize Connection Configuration panel, you can provide necessary information to connect theplug-in with Oozie. You can also connect to a Kerberized Oozie server.

The following table lists the fields in the Oozie Client Configuration panel of the Oozie Connectionshared resource:

FieldModuleProperty? Description

Oozie Server URL Yes The URL used to connect to the Oozie server.

SSL No Establishes a secure connection with the Oozie server.

SSL ClientConfiguration

No Enables you to configure SSL client, which is required toestablish a secure connection.

For more information about SSL ClientConfiguration, see the "Shared Resource" section ofthe TIBCO ActiveMatrix BusinessWorks™ Bindingsand Palettes Reference guide.

Enable Kerberos No If you want to connect to a Kerberized Oozie server, you canselect this check box.

If your server uses the AES-256 encryption, youmust install Java Cryptography Extension (JCE)Unlimited Strength Jurisdiction Policy Files on yourmachine. For more details, see Installing JCE PolicyFiles.

Kerberos Method No The Kerberos authentication method that is used to authorizeaccess to Oozie. Select an authentication method from the list:

● Keytab: specify a keytab file to authorize access to Oozie.

● Cached: use the cached credentials to authorize access toOozie.

● Password: enter the name of the Kerberos principal and apassword for the Kerberos principal.

This field is displayed only when you select the EnableKerberos check box.

Kerberos Principal Yes The Kerberos principal name that is used to connect to Oozie.

This field is displayed only when you select the EnableKerberos check box.

KerberosPassword

Yes The password for the Kerberos principal.

This field is displayed only when you select the Passwordfrom the Kerberos Method list.

27

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 28: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

FieldModuleProperty? Description

Kerberos Keytab Yes The keytab that is used to connect to Oozie.

This field is displayed only when you select Keytab from theKerberos Method list.

Login Module Yes The login module is used to authorize access to Oozie server.Each LoginModule-specific item specifies a LoginModule, aflag value, and options to be passed to the LoginModule.

This field is displayed only when you select the Keytab optionfrom the Kerberos Method list.

Kerberos Principal and Keytab File fields can beleft empty if login module is provided. The loginmodule file takes preference over the principal andkeytab file fields if populated.

The login module file for Oozie client is of the followingformat:OozieClient{ com.sun.security.auth.module.Krb5LoginModule required useKeyTab=true storeKey=false debug=true keyTab="<keytab file path>" principal="<Principal>";};

For AIX platform, the login module file for Oozie client is ofthe following format:OozieClient{ com.ibm.security.auth.module.Krb5LoginModule required principal="<Principal>" useKeytab="<keytab file path>" credsType="both";};

Test Connection

You can click Test Connection to test whether the specified configuration fields result in a validconnection.

28

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 29: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Palettes

A palette groups together the activities that connect to the same external applications. You can use theactivities that are contained in a palette to design your business processes.

The following palettes are available after installing ActiveMatrix BusinessWorks Plug-in for Big Data:

● HDFS Palette

● Hadoop Palette

● Oozie Palette

HDFS PaletteWith the HDFS palette, you can perform some operations on the files in HDFS.

You can use the following activities in the HDFS palette:

● HDFSOperation

● ListFileStatus

● Read

● Write

Some request parameters such as block size, replication, and buffer size are not supported by AzureData Lake Storage Gen1 WebHDFS APIs. For more information about configuring Azure Data LakeStorage Gen1, see the Azure Data Lake Storage Gen1 REST API topic in the Microsoft Azuredocumentation.

HDFSOperationYou can use the HDFSOperation activity to do basic operations on files in HDFS, including copyingfiles between HDFS and a local system, renaming files in HDFS, and deleting files from HDFS.

General

On the General tab, you can specify the activity name in the process, establish a connection to HDFS,and select the specific HDFS operation that you want to perform.

The following table lists the configurations on the General tab of the HDFSOperation activity:

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

HDFSConnection Yes The HDFS Connection shared resource that is used to create

a connection between the plug-in and HDFS. Click toselect an HDFS Connection shared resource.

If no matching HDFS Connection shared resources arefound, click Create Shared Resource to create one. For moredetails, see Creating an HDFS Connection.

29

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 30: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

FieldModuleProperty? Description

HDFSOperation No The HDFS operation that you want to perform. Select anHDFS operation from the list:

● PUT_LOCAL_TO_HDFS: copy local files or folders toHDFS.

● GET_HDFS_TO_LOCAL: copy files or folders fromHDFS to a local file system.

● RENAME_HDFS: rename files in HDFS.

● DELETE_FROM_HDFS: delete files from HDFS.

Description

On the Description tab, you can enter a short description for the HDFSOperation activity.

Input

On the Input tab, you can configure the HDFS operation that you select on the General tab. The inputelements of the HDFSOperation activity vary depending on the HDFS operation that you select on theGeneral tab.

The following table lists all the possible input elements on the Input tab of the HDFSOperation activity:

For the PUT_LOCAL_TO_HDFS and GET_HDFS_TO_LOCAL operations, you can optionally copyall the files in a source folder to a destination folder. To do so, provide the full folder path in bothsourceFilePath and destinationFilePath.

Input Item Data Type Description

HDFS Complex The HDFS operation configuration.

This element contains the elements from sourceFilePathto recursive that are listed in this table.

sourceFilePath String The path of the source file. Alternatively, to copy multiplefiles to a destination folder, you can provide the path to thefolder that contains the source file(s). The plug-inautomatically copies all the files in the source folder to thedestination folder that you specify in destinationFilePath.

destination

FilePath

String The path of the destination file or folder into which youwant the source files copied.

overwrite Boolean If a file that has the same name already exists in thespecified destination path, you can specify whether youwant to overwrite the existing file, 1 (true) or 0 (false).

blockSize Long The block size of the file. The value in this field must begreater than 0.

replication Short The number of replications of the file. The value in this fieldmust be greater than 0.

30

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 31: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Input Item Data Type Description

permission Integer The permission of the file. The value in this field must be inthe range 0 - 777.

offset Long The starting byte position. The value in this field must be 0or greater.

length Long The number of bytes to be processed.

bufferSize Integer The size of the buffer that is used in transferring data. Thevalue in this field must be greater than 0.

recursive Boolean You can specify whether you want to operate on the contentin the subdirectories, 1 (true) or 0 (false).

timeout Long The amount of time, in milliseconds, to wait for this activityto complete.

By default, this activity does not time out if you do notspecify a value.

Output

On the Output tab, you can view whether the execution is successfully.

The following table lists the output elements on the Output tab of the HDFSOperation activity:

Output Item Data Type Description

HDFS Complex The execution of HDFS operation.

This element contains the status and the msg elements.

status Integer A standard HTTP status code that indicates whether theexecution is successful.

msg String The execution message.

Fault

On the Fault tab, you can view the error code and error message of the HDFSOperation activity. See Error Codes for more detailed explanation of errors.

The following table lists the error schema elements on the Fault tab of the HDFSOperation activity:

Error SchemaElement Data Type Description

msg String The error message description that is returned by the plug-in.

msgCode String The error code that is returned by the plug-in.

exception String The exception occurs when the plug-in has internal errors.

31

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 32: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error SchemaElement Data Type Description

message String The error message that is returned by the server.

javaClassName String The name of the Java class where an error occurs.

ListFileStatusYou can use the ListFileStatus activity to list the status of a specified file or directory in HDFS.

Regarding a specified directory, the activity returns the status of all the files and directories in thespecified directory.

General

On the General tab, you can specify the activity name in the process and establish a connection toHDFS.

The following table lists the configurations on the General tab of the ListFileStatus activity:

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

HDFSConnection Yes The HDFS Connection shared resource that is used to create

a connection between the plug-in and HDFS. Click toselect an HDFS Connection shared resource.

If no matching HDFS Connection shared resources arefound, click Create Shared Resource to create one. Formore details, see Creating an HDFS Connection.

Description

On the Description tab, you can enter a short description for the ListFileStatus activity.

Input

On the Input tab, you can specify the path of the file or directory that you want to list status for.

The following table lists the input elements on the Input tab of the ListFileStatus activity:

Input Item Data Type Description

path String The path of a file or a directory.

If you specify an empty folder in this field, the Outputtab is empty.

32

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 33: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Input Item Data Type Description

timeout Long The amount of time, in milliseconds, to wait for this activity tocomplete.

By default, this activity does not time out if you do not specify avalue.

Output

On the Output tab, you can view detailed file status.

The following table lists the output elements on the Output tab of the ListFileStatus activity:

Output Item Data Type Description

fileinfo Complex The file information.

This element contains the elements from accessTime topathSuffix that are listed in this table.

accessTime Long The access time of the file in milliseconds.

blockSize Long The block size of the file.

length Long The number of bytes in a file.

modification

Time

Long The modification time of the file in milliseconds.

replication Long The number of replications of the file.

owner String The user name of the file owner.

type String The type of the path object, FILE or DIRECTORY.

group String The group that is associated with the file.

permission String The permission of the file.

pathSuffix String The path suffix of the file.

Fault

On the Fault tab, you can view the error code and error message of the ListFileStatus activity. See ErrorCodes for more detailed explanation of errors.

The following table lists the error schema elements in the Fault tab of the ListFileStatus activity:

Error SchemaElement Data Type Description

msg String The error message description that is returned by the plug-in.

msgCode String The error code that is returned by the plug-in.

33

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 34: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error SchemaElement Data Type Description

exception String The exception occurs when the plug-in has internal errors.

message String The error message that is returned by the server.

javaClassName String The name of the Java class where an error occurs.

ReadYou can use the Read activity to read data from a file in HDFS and place its content into the Output tabof the activity.

Because of the limitations of ActiveMatrix BusinessWorks, this activity cannot read more than 2 GBdata at one time. You can use the group to iteratively read the data in a file of 2 GB or more than 2 GB.

General

On the General tab, you can specify the activity name in the process, establish a connection to HDFS,and specify which format you want the file to be read in.

The following table lists the configurations on the General tab of the Read activity:

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

HDFSConnection Yes The HDFS Connection shared resource that is used to create a

connection between the plug-in and HDFS. Click to selectan HDFS Connection shared resource.

If no matching HDFS Connection shared resources are found,click Create Shared Resource to create one. For more details,see Creating an HDFS Connection.

ReadAs No The format that you want the file to be read in. Select a formatfrom the list:

● text● binary

Description

On the Description tab, you can enter a short description for the Read activity.

Input

In the Input tab, you can specify how you want the file to be read.

The following table lists the input elements on the Input tab of the Read activity:

34

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 35: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Input Item Data Type Description

fileName String The path of the file to be read.

offset Long The starting byte position to be read. The value in this field mustbe 0 or greater.

length Long The number of bytes to be read.

bufferSize Integer The size of the buffer used in transferring data. The value in thisfield must be greater than 0.

timeout Long The amount of time, in milliseconds, to wait for this activity tocomplete.

By default, this activity does not time out if you do not specify avalue.

Output

On the Output tab, you can view the file content. The output elements of the Read activity varydepending on the file format that you select in the General tab.

The following table lists the output elements on the Output tab of the Read activity:

Output Item Data Type Description

fileContent Complex The file content.

This element contains the textContent or binaryContentelement.

text

Content

String The file content in text format.

This item is displayed only when you select text in the ReadAsfield in the General tab.

binary

Content

Base64

Binary

The file content in binary format.

This item is displayed only when you select binary in the ReadAsfield on the General tab.

end Boolean You can view whether the file has been read to the end.

Fault

On the Fault tab, you can view the error code and error message of the Read activity. See Error Codesfor more detailed explanation of errors.

The following table lists the error schema elements on the Fault tab of the Read activity:

Error SchemaElement Data Type Description

msg String The error message description that is returned by the plug-in.

35

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 36: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error SchemaElement Data Type Description

msgCode String The error code that is returned by the plug-in.

exception String The exception when the plug-in has internal errors.

message String The error message that is returned by the server.

javaClassName String The name of the Java class where an error occurs.

WriteYou can use the Write activity to write data to a specified file in HDFS.

To append data to the same file or overwrite data in the same file in HDFS while running multipleprocesses simultaneously, you have to turn on the single thread by adding the following properties tothe VM arguments in TIBCO Business Studio:

-Dcom.tibco.plugin.bigdata.write.singlethread=true

-Dbw.application.job.flowlimit.project_name.application=1

To access the VM arguments in TIBCO Business Studio, click Run > Run Configurations, expandBusinessWorks Application > BWApplication in the left panel of the Run Configurations dialog, andthen click the Argument tab in the right panel of the dialog.

Also, for deployment of the Write activity, you have to add the following properties to the Config.inifile:

com.tibco.plugin.bigdata.write.singlethread=true

bw.application.job.flowlimit.project_name.application=1

The Config.ini file is located in the TIBCO_HOME/bw/version_number/domains/domain_name/appnodes/appspace_name/appnode_name directory.

General

On the General tab, you can specify the activity name in the process, establish a connection to HDFS,and decide whether to append data to an existing file or overwrite data in an existing file.

The following table lists the configurations in the General tab of the Write activity:

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

HDFSConnection Yes The HDFS Connection shared resource that is used tocreate a connection between the plug-in and HDFS. Click

to select an HDFS Connection shared resource.

If no matching HDFS Connection shared resources arefound, click Create Shared Resource to create one. Formore details, see Creating an HDFS Connection.

36

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 37: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

FieldModuleProperty? Description

Append No If you want to append the data to an existing file, you canselect this check box.

WriteType No The format of the data to be written. Select a format fromthe list:

● text● binary● file● StreamObject

Overwrite Yes If you want to overwrite the existing data in the specifiedfile, you can select this check box.

This check box is displayed only when you clear theAppend check box.

Description

On the Description tab, you can enter a short description for the Write activity.

Input

On the Input tab, you can configure the append or overwrite operation that you select in the Generaltab. The input elements of the Write activity vary depending on the data format that you select in theGeneral tab.

The following table lists all the possible input elements on the Input tab of the Write activity:

Input Item Data Type Description

fileName String The path of the file to be written in.

fileContent String The content to be written in the file.

This element is displayed only when you select text from theWriteType list in the General tab.

binaryData Base64

Binary

The binary data to be written in the file.

This element is displayed only when you select binary from theWriteType list in the General tab.

sourceFile

Path

String The path of the file to be written.

This element is displayed only when you select file from theWriteType list in the General tab.

inputStream

Object

Object The streaming object to be written.

This element is displayed only when you select StreamObjectfrom the WriteType list in the General tab.

37

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 38: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Input Item Data Type Description

overwrite Boolean You can specify whether you want to overwrite the existing datain the source file, 1 (true) or 0 (false).

blockSize Long The block size of the file. The value in this field must be greaterthan 0.

replication Short The number of replications of the file. The value in this fieldmust be greater than 0.

permission Integer The permission of the file. The value in this field must be in therange 0 - 777.

buffersize Integer The size of the buffer that is used in transferring data. The valuein this field must be greater than 0.

timeout Long The amount of time, in milliseconds, to wait for this activity tocomplete.

By default, this activity does not time out if you do not specify avalue.

Output

On the Output tab, you can view the operation status of the Write activity.

The following table lists the output elements on the Output tab of the Write activity:

Output Item Data Type Description

status Integer A standard HTTP status code that indicates whether theexecution is successful.

msg String The execution message.

Fault

On the Fault tab, you can view the error code and error message of the Write activity. See Error Codesfor more detailed explanation of errors.

The following table lists the error schema elements on the Fault tab of the Write activity:

Error SchemaElement Data Type Description

msg String The error message description that is returned by the plug-in.

msgCode String The error code that is returned by the plug-in.

exception String The exception occurs when the plug-in has internal errors.

message String The error message that is returned by the server.

38

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 39: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error SchemaElement Data Type Description

javaClassName String The name of the Java class where an error occurs.

Hadoop PaletteWith the Hadoop palette, you can use the benefits of Hive, MapReduce, and Pig based on Hadoop.

You can use the following activities in the Hadoop palette:

● Hive

● MapReduce

● Pig

● WaitForJobCompletion

HiveYou can use the Hive activity to facilitate querying and managing large datasets located in a distributedstorage.

● If you run this activity on the Red Hat platform (except version 7.0), you have to upgrade XML UserInterface Language (XUL) Runner to version 1.8 or later. After the upgrading, reinstall MozillaFirefox. To run this activity on Red Hat Enterprise Linux 7.0, see the "Known Issues" part in TIBCOActiveMatrix BusinessWorks Plug-in for Big Data Release Notes for more details.

● The Hive activity does not support uploading Hive data from local clusters.

The latest Hive, 0.12 or later, is supported by default. If you want to use the Hive activity based onprevious Hive versions (earlier than Hive 0.12), you have to add the following property to the VMarguments in TIBCO Business Studio:

-Dcom.tibco.plugin.bigdata.oldhive.active=true

To access the VM arguments in TIBCO Business Studio, click Run > Run Configurations, expandBusinessWorks Application > BWApplication in the left panel of the Run Configurations dialog, andthen click the Argument tab in the right panel of the dialog.

Also, for deployment of the WaitForJobCompletion activity, you have to add the following property tothe Config.ini file:

com.tibco.plugin.bigdata.oldhive.active=true

The Config.ini file is located in the TIBCO_HOME/bw/version_number/domains/domain_name/appnodes/appspace_name/appnode_name directory.

General

In the General tab, you can specify the activity name in the process, establish a connection to HCatalog,and specify Hive scripts and other Hive options to query data.

The following table lists the configurations in the General tab of the Hive activity:

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

39

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 40: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

FieldModuleProperty? Description

HCatalogConnection

Yes The HCatalog Connection shared resource that is used tocreate a connection between the plug-in and HCatalog. Click

to select an HCatalog Connection shared resource.

If no matching HCatalog Connection shared resources arefound, click Create Shared Resource to create one. For moredetails, see Creating an HCatalog Connection.

IsFileBase No If the Hive scripts are from a file, you can select this check box

Hive Script File Yes The path of the file that contains the Hive scripts.

This field is displayed only when you select the IsFileBasecheck box.

Hive Editor No If the Hive scripts are not from a file, you can enter the Hivescripts directly in the Hive Editor field. The keywords of thescripts are highlighted automatically.

This field is displayed only when you clear the IsFileBasecheck box.

Define No In this field, you can define the Hive configuration variables.A variable is associated with a name and a value.

Status Directory Yes The directory where the status of the Hive job is located.

WaitForResult Yes If you want the process to wait for the Hive operation tocomplete, you can select this check box .

When you select this check box, the Hive activitydoes not support querying more than 2 GB resultdata at one time because of the limitations ofActiveMatrix BusinessWorks.

Description

In the Description tab, you can enter a short description for the Hive activity.

Input

The values that you specify in the Input tab override the ones that you specify in the correspondingfields in the General tab.

The following table lists all the possible input elements in the Input tab of the Hive activity:

Input Item Data Type Description

HiveFile String The path of the HDFS file that contains commands.

This element is displayed only when you select the IsFileBasecheck box in the General tab.

40

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 41: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Input Item Data Type Description

HiveScript String The Hive scripts directly.

This element is displayed only when you clear the IsFileBasecheck box in the General tab.

Defines String You can define the Hive configuration variables. Each variable isassociated with a name and a value.

Status

Directory

String The directory where the status of the Hive job is located.

timeout Long The amount of time, in milliseconds, to wait for this activity tocomplete.

By default, this activity does not time out if you do not specify avalue.

Output

In the Output tab, you can view the job ID of the Hive operation or the result of the job depending onwhether you select the WaitForResult check box in the General tab.

The following table lists the output elements in the Output tab of the Hive activity:

Output Item Data Type Description

jobId String The job ID of the Hive operation.

You can use the WaitForJobCompletion activity to waitfor the job to complete. The exitValue output elementin the Output tab of the WaitForJobCompletionactivity The exit value of Hive SQL execution.

This element is displayed only when you clear WaitForResultcheck box in the General tab.

content String The result of the job.

This element is displayed only when you select theWaitForResult check box in the General tab.

Fault

In the Fault tab, you can view the error code and error message of the Hive activity. See Error Codes formore detailed explanation of errors.

The following table lists the error schema elements in the Fault tab of the Hive activity:

Error SchemaElement Data Type Description

msg String The error message description that is returned by the plug-in.

msgCode String The error code that is returned by the plug-in.

41

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 42: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

MapReduceYou can use the MapReduce activity to create and queue a standard or streaming MapReduce job.

General

In the General tab, you can specify the activity name in the process, establish a connection to HCatalog,and create and queue a standard or streaming MapReduce job.

The following table lists the configurations in the General tab of the MapReduce activity:

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

HCatalogConnection

Yes The HCatalog Connection shared resource that is used to create

a connection between the plug-in and HCatalog. Click toselect an HCatalog Connection shared resource.

If no matching HCatalog Connection shared resources arefound, click Create Shared Resource to create one. For moredetails, see Creating an HCatalog Connection.

Streaming No If you want to create and run streaming MapReduce jobs, youcan select this check box.

Input Yes The path of the input data in Hadoop.

This field is displayed only when you select the Streaming checkbox.

Output Yes The path of the output data.

This field is displayed only when you select the Streaming checkbox.

Mapper Yes The path of the mapper program in Hadoop.

This field is displayed only when you select the Streaming checkbox.

Reducer Yes The path of the reducer program in Hadoop.

This field is displayed only when you select the Streaming checkbox.

Jar Name Yes The name of the .jar file for the MapReduce activity to use.

This field is displayed only when you clear the Streaming checkbox.

Main Class Yes The name of the class for the MapReduce activity to use.

This field is displayed only when you clear the Streaming checkbox.

42

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 43: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

FieldModuleProperty? Description

Lib Jars Yes The comma-separated .jar file to be included in the classpath.

This field is displayed only when you clear the Streaming checkbox.

Files Yes The comma-separated .jar files to be copied to the MapReducecluster.

This field is displayed only when you clear the Streaming checkbox.

Status

Directory

Yes The directory where the status of MapReduce jobs is stored.

Arguments No The program arguments.

● If you select the Streaming check box, specify a list ofprogram arguments that contain space-separated strings topass to the Hadoop streaming utility. For example:- files /user/hdfs/file - D mapred.reduce.task=0 - input format org.apache.hadoop.mapred.lib.NLineInputFormat - cmdenv info=wc-reducer

● If you clear the Streaming check box, specify the Java mainclass arguments.

Define No In this field, you can define the Hadoop configuration variables.A variable is associated with a name and a value.

This field is displayed only when you clear the Streaming checkbox.

Description

In the Description tab, you can enter a short description for the MapReduce activity.

Input

The values that you specify in the Input tab override the ones that you specify in the correspondingfields in the General tab.

The following table lists the input elements in the Input tab of the MapReduce activity:

Input Item Data Type Description

Input String The path of the input data in Hadoop.

This element is displayed only when you select the Streamingcheck box in the General tab.

43

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 44: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Input Item Data Type Description

Output String The path of the output data.

This element is displayed only when you select the Streamingcheck box in the General tab.

Mapper String The path of the mapper program in Hadoop.

This element is displayed only when you select the Streamingcheck box in the General tab.

Reducer String The path of the reducer program in Hadoop.

This element is displayed only when you select the Streamingcheck box in the General tab.

JarName String The name of the .jar file for the MapReduce activity to use.

This element is displayed only when you clear the Streamingcheck box in the General tab.

ClassName String The name of the class for the MapReduce activity to use.

This element is displayed only when you clear the Streamingcheck box in the General tab.

Libjars String The comma-separated .jar file to be included in the classpath.

This element is displayed only when you clear the Streamingcheck box in the General tab.

Files String The comma-separated .jar files to be copied to the MapReducecluster.

This element is displayed only when you clear the Streamingcheck box in the General tab.

Status

Directory

String The directory where the status of MapReduce jobs is stored.

Arguments String The program arguments.

Defines String You can define the Hadoop configuration variables. A variable isassociated with a name and a value.

This field is displayed only when you clear the Streaming checkbox in the General tab.

timeout Long The amount of time, in milliseconds, to wait for this activity tocomplete.

By default, this activity does not time out if you do not specify avalue.

Output

In the Output tab, you can view the job ID of the MapReduce operation.

44

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 45: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

The following table lists the output element in the Output tab of the MapReduce activity:

Output Item Data Type Description

jobId String The job ID of the MapReduce operation.

You can use the WaitForJobCompletion activity to waitfor the job to complete. The exitValue output elementin the Output tab of the WaitForJobCompletionactivity displays the exit value of MapReduceexecution.

Fault

In the Fault tab, you can view the error code and error message of the MapReduce activity. See ErrorCodes for more detailed explanation of errors.

The following table lists the error schema elements in the Fault tab of the MapReduce activity:

Error SchemaElement Data Type Description

msg String The error message description that is returned by the plug-in.

msgCode String The error code that is returned by the plug-in.

PigYou can use the Pig activity to create and queue a Pig job.

If you run this activity on the Red Hat platform (except version 7.0), you have to upgrade XML UserInterface Language (XUL) Runner to version 1.8 or later. After the upgrading, reinstall Mozilla Firefox.To run this activity on Red Hat Enterprise Linux 7.0, see the "Know Issues" part in TIBCO ActiveMatrixBusinessWorks Plug-in for Big Data Release Notes for more details.

General

In the General tab, you can specify the activity name in the process, establish a connection to HCatalog,and create and queue a Pig job.

The following table lists the configurations in the General tab of the Pig activity:

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

HCatalogConnection

Yes The HCatalog Connection shared resource that is used to create a

connection between the plug-in and HCatalog. Click to selectan HCatalog Connection shared resource.

If no matching HCatalog Connection shared resources are found,click Create Shared Resource to create one. For more details, see Creating an HCatalog Connection.

45

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 46: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

FieldModuleProperty? Description

IsFileBase No If the Pig scripts are from a file, you can select this check box.

Pig File Yes The path of the file that contains the Pig scripts.

This field is displayed only when you select the IsFileBase checkbox.

Pig Editor No If the Pig scripts are not from a file, you can enter the Pig scriptsdirectly in the Pig Editor field. The keywords of the scripts arehighlighted automatically.

This field is displayed only when you clear the IsFileBase checkbox.

Arguments No The Pig arguments that contain space-separated string.

Status

Directory

Yes The directory where the status of the Pig job is located.

Files Yes The comma-separated files to be copied to the MapReducecluster.

Description

In the Description tab, you can enter a short description for the Pig activity.

UDF

In the UDF tab, you can use user-defined functions (UDFs) to specify custom processing.

The following table lists the configurations in the UDF tab of the Pig activity:

FieldModuleProperty? Description

UDF Directory Yes The directory where the UDFs are located.

Available UDFFiles

No The available UDF files under the specified UDF directory.You have to specify the UDF file that you want to use.

Click Sync to retrieve the available UDF files, select the UDFfile that you want to use, and then click Register.

The UDF file is displayed in the Pig Editor field in theGeneral tab.

Upload UDF File YesYou can click to select the UDF file that you want toupload , and then click Upload to upload the file to thespecified directory.

46

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 47: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Input

The values that you specify in the Input tab override the ones that you specify in the correspondingfields in the General tab.

The following table lists the input elements in the Input tab of the Pig activity:

Input Item Data Type Description

PigScript String The Pig scripts.

This element is displayed only when you clear the IsFileBasecheck box in the General tab.

PigFile String The comma-separated files to be copied to the MapReducecluster.

This element is displayed only when you select the IsFileBasecheck box in the General tab.

Arguments String The Pig arguments.

Status

Directory

String The directory where the status of the Pig job is located.

Files String The comma-separated files to be copied to the MapReducecluster.

timeout Long The amount of time, in milliseconds, to wait for this activity tocomplete.

By default, this activity does not time out if you do not specify avalue.

Output

In the Output tab, you can view the job ID of the Pig operation.

The following table lists the output element in the Output tab of the Pig activity:

Output Item Data Type Description

jobId String The job ID of the Pig operation.

You can use the WaitForJobCompletion activity to waitfor the job to complete. The exitValue output elementin the Output tab of the WaitForJobCompletion activitydisplays the exit value of Pig scripts execution.

Fault

In the Fault tab, you can view the error code and error message of the Pig activity. See Error Codes formore detailed explanation of errors.

The following table lists the error schema elements in the Fault tab of the Pig activity:

47

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 48: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error SchemaElement Data Type Description

msg String The error message description that is returned by the plug-in.

msgCode String The error code that is returned by the plug-in.

WaitForJobCompletionYou can use the WaitForJobCompletion activity to wait for a specified job to complete until it reaches aspecified time.

General

In the General tab, you can specify the activity name in the process, establish a connection to HCatalog,specify the maximum time for the activity to wait for a job to complete, and specify the interval to checkthe job execution.The following table lists the configurations in the General tab of the WaitForJobCompletion activity:

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in the process.

HCatalogConnection

Yes The HCatalog Connection shared resource that is used to create a

connection between the plug-in and HCatalog. Click to select anHCatalog Connection shared resource.

If no matching HCatalog Connection shared resources are found,click Create Shared Resource to create one. For more details, see Creating an HCatalog Connection.

Timeout Yes The amount of time, in milliseconds, to wait for a job to complete.The default value is 1200000.

Interval Yes The time interval, in milliseconds, to check the job execution. Thedefault value is 5000.

Description

In the Description tab, you can enter a short description for the WaitForJobCompletion activity.

Input

The values that you specify in the Input tab override the ones that you specify in the correspondingfields in the General tab.

The following table lists the input elements in the Input tab of the WaitForJobCompletion activity:

Input Item Data Type Description

jobId String The ID of the job to be waited for.

timeout Long The amount of time, in milliseconds, to wait for a job to complete.

48

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 49: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Input Item Data Type Description

interval Long The time interval, in milliseconds, to check the job execution.

Output

In the Output tab, you can view a job details including its status, profile, ID, and so on.

The following table lists the output elements in the Output tab of the WaitForJobCompletion activity:

Output Item Data Type Description

Job Complex The job.

This element contains the elements from status to userargsthat are listed in this table.

status Complex The job status.

This element contains child elements, see Child Elements ofStatus for more information.

Profile Complex The job profile.

This element contains child elements, see Child Elements ofProfile for more information.

id String The job ID.

parentId String The parent ID of the job.

percent

Complete

String The completion percentage of the job.

exitValue String The exit value of the job. If a value of 0 is returned, it indicatesthat the job is executed successfully. Otherwise, the job iscompleted with errors.

You can get error messages of the job from theStatusDirectory/stderr directory. You can specifythe StatusDirectory value in the Status Directoryfield in the General tab of the activity that executesthe job. The ErrorHandler process in the sampleproject that is shipped with the installer shows howto get error messages of a job. See Working with theSample Project for more information.

user String The user name of the job owner.

callback String The callback URL.

completed String The completion status of the job. For example, done.

49

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 50: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Output Item Data Type Description

userargs Complex The user arguments.

This element contains child elements, see Child Elements ofUserargs for more information.

Fault

In the Fault tab, you can view the error code and error message of the WaitForJobCompletion activity.See Error Codes for more detailed explanation of errors.

The following table lists the error schema elements in the Fault tab of the WaitForJobCompletionactivity:

Error SchemaElement Data Type Description

Hadoop

Exception

Complex The exception thrown by the plug-in.

This element contains the msg and msgCode elements.

msg String The error message description that is returned by the plug-in.

msgCode String The error code that is returned by the plug-in.

ActivityTimeout

Exception

Complex The exception thrown by ActiveMatrix BusinessWorks.

This element contains the msg and msgCode elements.

msg String The error message description that is returned byActiveMatrix BusinessWorks.

msgCode String The error code that is returned by ActiveMatrixBusinessWorks.

Child Elements of Status

The table lists the child elements of the status element in the Output tab of the WaitForJobCompletionactivity.

Output Item Data Type Description

startTime String The start time of the job.

username String The user name of the job owner.

jobID String The job ID.

jobACLs String The ACLs for the job.

scheduling

Info

String The scheduling information associated with the job.

50

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 51: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Output Item Data Type Description

failureInfo String The reason for the failure of the job.

jobId String The job ID.

jobPriority String The job priority.

runState String The current running state of the job.

State String The job state.

jobComplete String The completion status of the job.

priority String The job priority.

jobName String The job name.

map

Progress

String The map progress.

reduce

Progress

String The reduce progress.

cleanup

Progress

String The cleanup progress.

setup

Progress

String The setup progress.

queue String The queue name of the job.

jobFile String The configuration file of the job.

finishTime String The finish time of the job.

historyFile String The job history file URL for a completed job.

trackingUrl String The tracking URL for details of the job.

numUsed

Slots

String The number of used slots.

numReserved

Slots

String The number of reserved slots.

usedMem String The used memory.

neededMem String The needed memory.

retired String You can view whether the job is retired.

51

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 52: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Output Item Data Type Description

uber String You can view whether the job is running in uber mode.

Child Elements of Profile

The table lists the child elements of the profile element in the Output tab of theWaitForJobCompletion activity.

Output Item Data Type Description

url String The job URL.

jobID String The job ID.

user String The user name of the job owner.

queueName String The queue name of the job.

jobFile String The name of the job file.

jobName String The job name.

jobId String The job ID.

Child Elements of Userargs

The table lists the child elements of the userargs element in the Output tab of theWaitForJobCompletion activity.

Output Item Data Type Description

statusdir String The directory where the status of the job is located.

files String The comma-separated files to be copied to the cluster.

define String The define configuration of the job.

enablelog String You can view whether the enablelog parameter is set to true.

execute String The entire short command to run.

username String The user name of the job owner.

file String The HDFS file name that is used in a job.

callback String The callback URL.

Oozie PaletteWith the Oozie palette, you can schedule Hadoop jobs.

You can use the following activities in the Oozie palette:

52

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 53: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

● SubmitJob

● GetJobInfo

SubmitJobYou can use the SubmitJob activity to submit and start an Oozie workflow, bundle, coordinator jobs or aproxy job (MapReduce, Pig, Hive, Sqoop). The workflow parameters can be provided through jobproperties input. The activity returns Job ID after successful job submission.

General

On the General tab, you can specify the activity name in the process, establish a connection with Oozie,and select the specific Oozie operation that you want to perform.

The following table lists the configurations on the General tab of the SubmitJob activity:

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

Oozie Connection Yes The Oozie Connection shared resource that is used to createa connection between the plug-in and the Oozie server.

Click to select an Oozie Connection shared resource.

If no matching Oozie Connection shared resources arefound, click Create Shared Resource. For more informationabout creating a shared resource, see Creating an OozieShared Resource Connection.

Job Type No The Oozie operation that you want to perform. Select anOozie operation from the following list:

● workflow: Sequence of actions arranged in a controldependency Direct Acyclic Graph (DAG).

● coordinator: Schedule workflow jobs to run at regulartime intervals or depending on data availability.

● bundle: Define and run a set of coordinator applications.

● mapreduce: Proxy mapReduce job.

● pig: Proxy Pig job.

● hive: Proxy Hive job.

● sqoop: Proxy Sqoop job.

You can use the Oozie proxy submission tosubmit a workflow that contains a singleMapReduce, Hive, Pig, or Sqoop action withoutwriting a workflow.xml.

53

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 54: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

FieldModuleProperty? Description

Job Properties No Name-value parameter for the Oozie job.

Every job type needs job properties that aremandatory. For more information about therequired job properties based on the job type, seethe Oozie documentation.

Timeout (Sec) Yes The amount of time, in seconds, to wait for this activity tocomplete.

By default, this activity times out in 180 seconds.

Description

On the Description tab, you can enter a short description for the SubmitJob activity.

Input

On the Input tab, you can configure the Oozie operation that you select on the General tab.

The following table lists all the possible input elements on the Input tab of the SubmitJob activity:

Input Item Data Type Description

jobType String The Oozie operation configuration.

jobProperties String Enter the name-value parameters.

timeout Int The amount of time, in milliseconds, to wait for this activityto complete.

By default, this activity times out in 180 seconds.

Output

On the Output tab, you can view whether the process ran successfully.

The following table lists the output element on the Output tab of the SubmitJob activity:

Output Item Data Type Description

jobId String Job ID of the submitted Oozie job.

The job ID can be mapped as an input to theGetJobInfo activity to retrieve job status and otherdetails about the job.

Fault

On the Fault tab, you can view the error code and error message of the SubmitJob activity. For moreinformation about errors, see Error Codes.

The following table lists the error schema elements on the Fault tab of the SubmitJob activity:

54

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 55: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error SchemaElement Data Type Description

msg String The error message description that is returned by the plug-in.

msgCode String The error code that is returned by the plug-in.

GetJobInfoYou can use the GetJobInfo activity to retrieve the job information for the provided job ID. The jobinformation includes status of the job, app name, app path, start time, end time, details about actions,and so on.

General

On the General tab, you can specify the activity name in the process, establish a connection with Oozie,and select the specific Oozie operation that you want to perform.

The following table lists the configurations on the General tab of the GetJobInfo activity:

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

Oozie Connection Yes The Oozie Connection shared resource that is used to createa connection between the plug-in and Oozie server. Click

to select an Oozie Connection shared resource.

If no matching Oozie Connection shared resources arefound, click Create Shared Resource to create one. For moreinformation about creating a shared resource, see Creatingan Oozie Shared Resource Connection.

Wait TillCompletion

No Whether to wait to get the job status until the process iscompleted.

Interval (Sec) Yes The amount of time, in seconds, to poll the activity status.

Timeout (Sec) Yes The amount of time, in seconds, to wait for this activity tocomplete.

By default, this activity times out in 180 seconds.

Ensure that you do not use GetJobInfo activity (with Wait Till Completion option selected) forcoordinator, bundle, or any other long running workflow jobs. Other alternatives such as JMSnotifications configuration on Oozie server are advised. For more details, see the Oozie documentation.

Description

On the Description tab, you can enter a short description for the GetJobInfo activity.

Input

On the Input tab, you can configure the Oozie operation that you select on the General tab.

55

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 56: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

The following table lists all the possible input elements on the Input tab of the GetJobInfo activity:

Input Item Data Type Description

jobId String The job ID of the submitted Oozie job.

The job ID returned by Submit Job activity aftersuccessful submission of the Oozie Job can beprovided as input for jobId.

waitTillCompleti

on

Boolean Whether to wait to get the job status until the process iscompleted.

interval Int The amount of time, in seconds, to poll the activity status.

timeout Int The amount of time, in seconds, to wait for this activity tocomplete.

By default, this activity times out in 180 seconds.

Output

On the Output tab, you can view whether the process ran successfully.

The following table lists the output elements on the Output tab of the GetJobInfo activity:

Output Item Data Type Description

GetJobInfoOutput Complex The root element, which contains the elementsfrom ID to bundleCoordJobs that are listed in thistable.

id String The job ID.

appName String The job application name.

appPath String The job application path.

status String The status of the job such as RUNNING, KILLED,SUCCEEDED.

startTime DateTime The date and time when the job started running.

endTime DateTime The date and time when the job stopped running.

actions Complex The complex element, which includes detailsabout individual actions in the job.

id String The action ID.

type String Type of action such as hive, pig, and so on.

name String The name of the action.

status String The status of the action.

56

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 57: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Output Item Data Type Description

externalStatus String The external status of the action.

conf String The XML configuration of the action.

startTime DateTime The date and time when the action startedrunning.

endTime DateTime The date and time when the action stoppedrunning.

externalId String The external ID of the action.

errorCode String The error code when the action fails.

errorMessage String The error message of the failed action.

bundleCoordJobs Complex The complex element, which includes detailsabout individual coordinator jobs in the bundlejob.

coordJobId String The job ID of the coordinator.

coordJobName String The job name of the coordinator.

coordJobPath String The job path of the coordinator.

status String The status of the coordinator job.

startTime DateTime The date and time when the coordinator jobstarted running.

endTime DateTime The date and time when the coordinator jobstopped running.

actions Complex The complex element, which includes detailsabout individual actions in the job.

Fault

On the Fault tab, you can view the error code and error message of the GetJobInfo activity. For moreinformation about errors, see Error Codes.

The following table lists the error schema elements on the Fault tab of the GetJobInfo activity:

Error SchemaElement Data Type Description

msg String The error message description that is returned by the plug-in.

msgCode String The error code that is returned by the plug-in.

57

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 58: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Working with the Sample Projects

The plug-in packages two sample projects with the installer. The sample projects show howActiveMatrix BusinessWorks Plug-in for Big Data works.

After installing the plug-in, you can find the samples.zip file in the TIBCO_HOME/bw/palettes/bigdata/version_number/Samples directory.

The following list shows the details of the sample projects and their processes:

● DataCollectionandQuery has one process and one subprocess

— DemoWorkflow

— ErrorHandler

● OozieSample

— ProxyMapReduceWordCount

— WorkflowJobSample

The detail of all the processes is explained in the following tables:

● DemoWorkflow.bwp

The DemoWorkflow.bwp process is the main process of the DataCollectionandQuery project . Itshows how to operate HDFS files, transfer files between HDFS and a local directory, create a Hivetable, and query data.

The DemoWorkflow.bwp process contains the following activities:

Activity Description

Timer Starts the process when the specified time interval expires.

RemoveExistingFiles Deletes the customers.csv file from the user/hdfs/bwdemodirectory in HDFS.

CopyDataToHDFS Copies the customers.csv file from the TIBCO_HOME/bw/palettes/bigdata/version_number/Samples/

samples.zip/SampleData directory to the user/hdfs/bwdemo directory in HDFS.

CreateHiveTableRefertToData Creates an external Hive table named customers in HDFS.

CheckError Performs the subprocess.

If no error occurs when the ErrorHandler.bwp process isrunning, the process goes to the HiveQuery activity.

If any error occurs, the process goes to the Generate-Erroractivity.

HiveQuery Queries 100 records from the customers.csv Hive tablecreated by the CreateHiveTableRefertToData activity.

Generate-Error Generates error messages from the Output tab of theErrorHandler.bwp subprocess.

58

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 59: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Activity Description

Catch Catches error messages and displays in the Output tab whenany error occurs in the DemoWorkflow.bwp process.

End Ends the process.

● ErrorHandler.bwp

The ErrorHandler.bwp is a subprocess of the DemoWorkflow.bwp process.

The ErrorHandler.bwp subprocess contains the following activities:

Activity Description

Start Starts the process.

WaitForJobCompletion Waits for the CreateHiveTableRefertToData activity tocomplete the job.

ReadResult Reads the output of the job executed by theCreateHiveTableRefertToData activity, which is in the user/hdfs/hive/createstatus/stdout directory.

ReadError Reads error messages of the job executed by theCreateHiveTableRefertToData activity, which is in the user/hdfs/hive/createstatus/stderr directory.

Reply Sends a message in response to the ErrorHandler.bwp processand the ErrorHandler operation.

Reply1 Sends a message in response to the ErrorHandler.bwp processand the ErrorHandler operation.

Generate Error Generates error messages from the Output tab of theReadError activity.

Catch Catches the error messages and displays in the Output tabwhen any error occurs in the ErrorHandler.bwp subprocess.

RenderXML Renders the error messages in XML string.

End Ends the process.

● ProxyMapReduceWordCount.bwp

The ProxyMapReduceWordCount process shows how to submit a proxy map reduce job on theOozie server and waits till it completes its execution. Based on its status, the process also writes jobexecution result to the log.

The ProxyMapReduceWordCount.bwp process contains the following activities:

Activity Description

Timer Starts the process after a specified time interval.

59

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 60: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Activity Description

SubmitMapReduceJob Submits proxy map-reduce job to the Oozie server with theprovided job properties.

Returns Job ID as response.

GetJobInfo Accepts Job ID from SubmitMapReduceJob activity output asan input and returns Job Information for the Job ID. It waitstill the job completes its execution.

SuccessLog If job status is successful, then writes that the job is successfulto the log.

FailedLog If job fails, then writes the error message to the log.

● WorkflowJobSample.bwp

The WorkflowJobSample process shows how to submit a long running workflow job on the Oozieserver and retrieve the current job status without waiting for it to finish the execution.

The WorkflowJobSample.bwp process contains the following activities:

Activity Description

Timer Starts the process after a specified time interval.

SubmitWorkflowJob Submits workflow job to the Oozie server with the providedjob properties.

Returns Job ID in response.

GetJobInfo Accepts Job ID from SubmitWorkflowJob activity output asan input and returns Job Information for the Job ID. It returnsthe current job status without waiting for it to finish theexecution.

CurrentLog Write current job status to the log.

Importing the Sample ProjectBefore running a sample project, you must import the project to TIBCO Business Studio.

Procedure

1. Start TIBCO Business Studio using one of the following ways:

● Microsoft Windows: click Start > All Programs > TIBCO > TIBCO_HOME > TIBCO BusinessStudio version_number > Studio for Designers.

● Mac OS and Linux: run the TIBCO Business Studio executable file located in the TIBCO_HOME/studio/version_number/eclipse directory.

2. From the menu, click File > Import.

3. In the Import dialog box, expand the General folder and select the Existing Studio Projects intoWorkspace item. Click Next.

60

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 61: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

4. Click Browse next to the Select archive file field to locate the sample. Click Finish.The sample project is located in the TIBCO_HOME/bw/palettes/bigdata/version_number/Samples directory.

Result

The sample project is imported to TIBCO Business Studio.

Running the Sample ProjectsThe plug-in packages two sample projects with the installer. The sample projects show howActiveMatrix BusinessWorks Plug-in for Big Data works.

You must run the projects after importing them. The projects included are:

● DataCollectionandQuery

● OozieSample

61

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 62: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Data Collection and QueryThis sample project contains one process that shows how to manage and query data.

Prerequisites

Ensure that you have imported the sample project to TIBCO Business Studio, as described in Importingthe Sample Project.

Procedure

1. Configure the module properties that are used in the sample project:a) In the Project Explorer view, expand DataCollectionAndQueryProj > Module Descriptors and

double-click Module Properties.b) Expand Example and configure the following properties that are used in the shared resources:

● HCATALOG_URL=server_URL

● HDFS_URL=server_URL

● Project_Path=TIBCO_HOME/bw/palettes/bigdata/version_number/Samples

2. Expand Resource > SharedResources, edit the connections that are used in the sample project, andthen click Test Connection to validate your connections.a) Double-click HcatalogConn.sharedhadoopresource to edit the HCatalog connection.b) Double-click HDFSConn.sharedhdfsresource to edit the HDFS connection.

3. Expand the Module Descriptors resource, and then double-click Components.

4. In the Component Configurations area, ensure that the DataCollectionAndQuery.DemoWorkflowcomponent is selected.

5. On the toolbar, click the icon to save your changes.

6. From the menu, click Run > Run Configurations to run the selected process.

7. In the left panel of the Run Configurations dialog box, expand BusinessWorks Application >BWApplication.

8. In the right panel, click the Applications tab, select the check box next toDataCollectionAndQueryProj.application.

9. Click Run to run the process.

10. Click the icon to stop the process.

Result

If the process is run successfully, 100 records in the customers.csv file created by theCreateHiveTableRefertToData activity are returned in the Output tab of the HiveQuery activity.

Oozie Sample ProjectThe Oozie sample project contains two processes - ProxyMapReduceWordCount andWorkflowJobSample. The ProxyMapreduceWordCount shows The process shows how to submit aproxy map reduce job on oozie server and waits till it completes its execution. The process also writesjob execution result in log based on its status. The WorkflowJobSample shows how to submit a longrunning workflow job on the Oozie server and retrieve the current job status without waiting for it tocomplete execution.

62

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 63: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Prerequisites

Ensure that you have imported the sample project to TIBCO Business Studio, as described in Importingthe Sample Project.

Procedure

1. Configure the module properties that are used in the sample project:a) In the Project Explorer view, expand OozieSample > Module Descriptors and double-click

Module Properties.b) Expand Example and configure the following properties that are used in the shared resources:

● OOZIE_URL=server_URL

● Project_Path=TIBCO_HOME/bw/palettes/bigdata/version_number/Samples

2. Expand Resource > SharedResources, double-clickOozieConnectionResource.oozieconnectionResource to edit the Oozie connection. Refer to thereadme.txt packaged with the OozieSample project to configure the Oozie connection for eachprocess.

3. Click Test Connection to validate your connections.

4. Expand the Module Descriptors resource, and then double-click Components.

5. Depending on which process you want to run, in the Component Configurations area, either selectthe ooziesample.ProxyMapReduceWordCount component or the ooziesample.WorkflowJobSamplecomponent is selected.

6. On the toolbar, click the icon to save your changes.

7. From the menu, click Run > Run Configurations to run the selected process.

8. In the left panel of the Run Configurations dialog box, expand BusinessWorks Application >BWApplication.

9. In the right panel, click the Applications tab, and select the check box next toOozieSample.application.

10. Select the check box next to the process you want to run.

11. Click Run to run the process.

12. Click the icon to stop the process.

Result

When the ProxyMapReduceWordCount process and the WorkflowJobSample process run successfully,each of them returns the status of the job in the Console log.

63

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 64: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Managing Logs

When an error occurs, you can check logs to trace and troubleshoot the plug-in exceptions.

By default, error logs are displayed in the Console view when you run a process. You can change thelog level of the plug-in to trace different messages and export logs to a file. Different log levelscorrespond to different messages, as described in Log Levels.

Log LevelsDifferent log levels include different information.

The plug-in supports the following log levels:

Log Level Description

Info Indicates normal plug-in operations. No action is required. A tracing messagetagged with Info indicates that a significant processing step is reached, andlogged for tracking or auditing purposes. Only info messages preceding atracking identifier are considered as significant steps.

Error Indicates that an unrecoverable error occurred. Depending on the severity ofthe error, the plug-in might continue with the next operation or might stop.

Debug Indicates a developer-defined tracing message.

Setting Up Log LevelsYou can configure a different log level for the plug-in and plug-in activities to trace different messages.

By default, the plug-in uses the log level configured for ActiveMatrix BusinessWorks. The default loglevel value of ActiveMatrix BusinessWorks is ERROR.

Procedure

1. Navigate to the TIBCO_HOME/bw/version_number/config/design/logback directory and openthe logback.xml file.

64

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 65: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

2. Add the following node in the BusinessWorks Palette and Activity loggers area to specify a loglevel for the plug-in:<logger name="com.tibco.bw.palette.hadoop.runtime"> <level value="DEBUG"/> </logger>

<logger name="com.tibco.bw.palette.webhdfs.runtime"> <level value="DEBUG"/> </logger>

<logger name="com.tibco.bw.sharedresource.webhdfs.runtime"> <level value="DEBUG"/> </logger>

<logger name="com.tibco.bw.sharedresource.hadoop.runtime"> <level value="DEBUG"/> </logger>

<logger name="com.tibco.bw.palette.oozie.runtime"> <level value="DEBUG"/> </logger>

<logger name="com.tibco.bw.sharedresource.oozie.runtime"> <level value="DEBUG"/> </logger>

The value of the level element can be ERROR, INFO, or DEBUG.

If you set the log level to Debug, the input and output for the plug-in activities are alsodisplayed in the Console view. See Log Levels for more details regarding each log level.

3. Optional: Add the following node in the BusinessWorks Palette and Activity loggers area tospecify a log level for an activity. The node varies according to the activity and the palette that itbelongs to.

● For activities in the HDFS palette:<logger name="com.tibco.bw.palette.webhdfs.runtime.ActivityNameActivity"> <level value="DEBUG"/></logger>

● For activities in the Hadoop palette:<logger name="com.tibco.bw.palette.hadoop.runtime.ActivityNameActivity"> <level value="DEBUG"/></logger>

For example, you can add the following node to set the log level of the HDFSOperation activity toDEBUG:<logger name="com.tibco.bw.palette.webhdfs.runtime.HDFSOperationActivity"> <level value="DEBUG"/></logger>

Likewise, you can add the following node to set the log level of the Hive activity to DEBUG:<logger name="com.tibco.bw.palette.hadoop.runtime.HiveActivity"> <level value="DEBUG"/></logger>

The activities that are not configured with specific log levels use the log level configuredfor the plug-in.

4. Save the file.

Enabling Kerberos-Related LoggingTo enable Kerberos-related logging follow these steps:

1. In TIBCO Business Studio™, click Run > Debug Configurations.

2. Expand BusinessWorks Application and click BWApplication.

65

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 66: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

3. Click the Arguments tab.

4. Add the following in the VM arguments text box:

-Dsun.security.krb5.debug=true

-Dsun.security.jgss.debug=true

5. Click Apply.

Exporting Logs to a FileYou can update the logback.xml file to export plug-in logs to a file.

Procedure

1. Navigate to the TIBCO_HOME/bw/version_number/config/design/logback directory and openthe logback.xml file.

After deploying an application in TIBCO Enterprise Administrator, navigate to theTIBCO_HOME/bw/version_number/domains/domain_name/appnodes/space_name/

node_name directory to find the logback.xml file.

2. Add the following node to specify the file where the log is exported:<appender name="FILE" class="ch.qos.logback.core.FileAppender"> <file>c:/bw6-bigdata.log</file> <encoder> <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36}-%msg%n</pattern> </encoder></appender>

The value of the file element is the absolute path of the file that stores the exported log.

3. Add the following node to the root node at the bottom of the logback.xml file:<root level="DEBUG"> <appender-ref ref="STDOUT" /> <appender-ref ref="FILE" /></root>

4. Save the file.

66

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 67: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Installing JCE Policy Files

When connecting to a Kerberized HDFS or WebHCat server, if your server uses the AES-256encryption, you must install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction PolicyFiles on your machine.

Procedure

1. Download the policy files from http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/jce-7-download-432124.html.

2. Extract the downloaded UnlimitedJCEPolicyJDK7.zip file, and then copy the files to theTIBCO_HOME/tibcojre64/1.7.0/lib/security directory.

3. Restart TIBCO Business Studio.

67

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 68: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error Codes

The following tables list error codes, detailed explanation of each error, and where applicable, ways tosolve different errors.

HDFS Error Codes

The following table lists the error codes of the HDFS Connection shared resource and the error codes ofthe activities in the HDFS palette:

Error Code and ErrorMessage Role Category Description Solution

TIBCO-BW-PALETTE-HDFS-2000000

{0}

debugRole BW-Plug-in Any debugmessage.

No action.

TIBCO-BW-PALETTE-HDFS-2000001

Start execute: {0}

debugRole BW-Plug-in Debug message forstart activityexecution.

No action.

TIBCO-BW-PALETTE-HDFS-2000002

End execute: {0}

debugRole BW-Plug-in Debug message forend activityexecution.

No action.

TIBCO-BW-PALETTE-HDFS-2000003

Customer thread

start, thread ID:

{0}

debugRole BW-Plug-in Customer threadstarts. The thread IDis {0}.

No action.

TIBCO-BW-PALETTE-HDFS-2000004

Input data: {1}

debugRole BW-Plug-in The activity inputdata is {1}.

No action.

TIBCO-BW-PALETTE-HDFS-2000005

Output data: {1}

debugRole BW-Plug-in The activity outputdata is {1}.

No action.

TIBCO-BW-PALETTE-HDFS-2000006

{0} : {1}

debugRole BW-Plug-in Debug message fortwo parameters.

No action.

TIBCO-BW-PALETTE-HDFS-2000007

Cached tasks:{0}

debugRole BW-Plug-in The number ofcached tasks.

No action.

68

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 69: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error Code and ErrorMessage Role Category Description Solution

TIBCO-BW-PALETTE-HDFS-5000001

Please specify HDFS

connection shared

resource.

errorRole BW-Plug-in An HDFSConnection sharedresource is notspecified.

Specify an HDFSConnection sharedresource.

TIBCO-BW-PALETTE-HDFS-5000002

Remote Error while

run {0}

errorRole BW-Plug-in A remote erroroccurs whilerunning {0}.

No action.

TIBCO-BW-PALETTE-HDFS-5000003

Error Occurred: {0}

errorRole BW-Plug-in An error occurs.Detailedinformation is {0}.

No action.

TIBCO-BW-PALETTE-HDFS-5000004

Invalid hdfs

operation: {0}.

errorRole BW-Plug-in The HDFS operationis invalid. Detailedinformation is {0}.

No action.

TIBCO-BW-PALETTE-HDFS-5000005

Invalid HDFS URL,

Please specify a

correct one.

errorRole BW-Plug-in The HDFS URLentered is invalid.

Specify a correctHDFS URL.

TIBCO-BW-PALETTE-HDFS-5000006

{0} is not a valid

buffer size, valid

buffer size should

> 0

errorRole BW-Plug-in {0} is an invalidbuffer size. Thevalid buffer sizemust be greater than0.

Specify a value thatis greater than 0.

TIBCO-BW-PALETTE-HDFS-5000007

{0} is not a valid

replication, valid

replication should

> 0

errorRole BW-Plug-in {0} is an invalidreplication. Thevalid replicationmust be greater than0.

Specify a value thatis greater than 0.

TIBCO-BW-PALETTE-HDFS-5000008

{0} is not a valid

offset, valid

offset should >= 0

errorRole BW-Plug-in {0} is an invalidoffset. The validoffset must begreater than orequal to 0.

Specify a value thatis greater than orequal to 0.

69

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 70: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error Code and ErrorMessage Role Category Description Solution

TIBCO-BW-PALETTE-HDFS-5000009

{0} is not a

length, valid

length should >= 0

errorRole BW-Plug-in {0} is an invalidlength. The validlength must begreater than orequal to 0.

Specify a value thatis greater than orequal to 0.

TIBCO-BW-PALETTE-HDFS-5000010

{0} is not a valid

block size, valid

block size should >

0

errorRole BW-Plug-in {0} is an invalidblock size. The validblock size must begreater than 0.

Specify a value thatis greater than 0.

TIBCO-BW-PALETTE-HDFS-5000011

{0} is not a valid

permission, valid

values should 0 -

777

errorRole BW-Plug-in {0} not an invalidpermission. Thevalid values must bein the range 0 - 777.

Specify a value inthe range 0 - 777.

TIBCO-BW-PALETTE-HDFS-5000012

Unknown result

returned: {0}

errorRole BW-Plug-in An unknown resultis returned. Detailedinformation is {0} .

No action.

TIBCO-BW-PALETTE-HDFS-5000013

IOException

occurred while

retrieving XML

Output for activity

[{0}].

errorRole BW-Plug-in An IOExceptionexception occurswhile retrievingXML output foractivity [{0}].

No action.

Hadoop Error Codes

The following table lists the error codes of the HCatalog Connection shared resource and the errorcodes of the activities in the Hadoop palette:

Error Code and ErrorMessage Role Category Description Solution

TIBCO-BW-PALETTE-HADOOP-2000000

{0}

debugRole BW-Plug-in Any debug message. No action.

TIBCO-BW-PALETTE-HADOOP-2000001

Start execute: {0}

debugRole BW-Plug-in Debug message forstart activityexecution.

No action.

70

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 71: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error Code and ErrorMessage Role Category Description Solution

TIBCO-BW-PALETTE-HADOOP-2000002

End execute: {0}

debugRole BW-Plug-in Debug message forend activityexecution.

No action.

TIBCO-BW-PALETTE-HADOOP-2000003

Customer thread

start, thread ID:

{0}

debugRole BW-Plug-in Customer threadstarts. The thread IDis {0}.

No action.

TIBCO-BW-PALETTE-HADOOP-2000004

Input data: {1}

debugRole BW-Plug-in The activity inputdata is {1}.

No action.

TIBCO-BW-PALETTE-HADOOP-2000005

Output data: {1}

debugRole BW-Plug-in The activity outputdata is {1}.

No action.

TIBCO-BW-PALETTE-HADOOP-2000006

Define name field

empty so ignore it,

Value is: {0}

debugRole BW-Plug-in The Define namefield is empty. Thevalue is {0}.

No action.

TIBCO-BW-PALETTE-HADOOP-2000007

{0} : {1}

debugRole BW-Plug-in Debug message fortwo parameters.

TIBCO-BW-PALETTE-HADOOP-2000008

Cached tasks:{0}

debugRole BW-Plug-in The number ofcached tasks.

No action.

TIBCO-BW-PALETTE-HADOOP-3000000

{0}

infoRole BW-Plug-in Any info message. No action.

TIBCO-BW-PALETTE-HADOOP-3000001

{0} is done({1}ms)

infoRole BW-Plug-in Activity {0} is donein {1} milliseconds.

No action.

TIBCO-BW-PALETTE-HADOOP-5000000

Please specify

HCatalog connection

shared resource.

errorRole BW-Plug-in An HCatalogConnection sharedresource is notspecified.

Specify anHCatalogConnection sharedresource.

71

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 72: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error Code and ErrorMessage Role Category Description Solution

TIBCO-BW-PALETTE-HADOOP-5000001

Error Occurred: {0}

errorRole BW-Plug-in An error occurs.Detailed informationis {0}.

No action.

TIBCO-BW-PALETTE-HADOOP-5000002

Invalid {0} URL,

Please specify a

correct one.

errorRole BW-Plug-in The {0} URL enteredis invalid.

Specify a correctURL.

TIBCO-BW-PALETTE-HADOOP-5000003

Unknown result

returned: {0}

errorRole BW-Plug-in An unknown resultis returned. Detailedinformation is {0} .

No action.

TIBCO-BW-PALETTE-HADOOP-5000004

IOException

occurred while

retrieving XML

Output for activity

[{0}].

errorRole BW-Plug-in An IOExceptionexception occurswhile retrievingXML output foractivity [{0}].

No action.

TIBCO-BW-PALETTE-HADOOP-5000005

Remote Error while

run {0}

errorRole BW-Plug-in A remote erroroccurs whilerunning {0}.

No action.

TIBCO-BW-PALETTE-HADOOP-5000006

Hive error

occurred: {0}

errorRole BW-Plug-in A Hive error occurs.Detailed informationis {0}.

No action.

TIBCO-BW-PALETTE-HADOOP-5000007

HDFS URL is empty,

please specify one.

errorRole BW-Plug-in The HDFS URL isempty.

Specify an HDFSURL.

TIBCO-BW-PALETTE-HADOOP-5000008

Status directory is

empty, please

specify one.

errorRole BW-Plug-in The status directoryis empty.

Specify a statusdirectory.

72

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 73: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error Code and ErrorMessage Role Category Description Solution

TIBCO-BW-PALETTE-HADOOP-5000009

Hive script cannot

be null.

errorRole BW-Plug-in The Hive scriptscannot be null.

Specify valid Hivescripts.

TIBCO-BW-PALETTE-HADOOP-5000010

Hive file script

cannot be null,

please select one

script file.

errorRole BW-Plug-in The Hive file scriptscannot be null.

Specify the file thatcontains the Hivescripts.

TIBCO-BW-PALETTE-HADOOP-5000011

Pig script cannot

be null.

errorRole BW-Plug-in The Pig scriptscannot be null.

Specify valid Pigscripts.

TIBCO-BW-PALETTE-HADOOP-5000012

Pig file script

cannot be null,

please select one

script file.

errorRole BW-Plug-in The Pig file scriptscannot be null.

Specify the file thatcontains the Pigscripts.

TIBCO-BW-PALETTE-HADOOP-5000013

Mapreduce jar name

is required, please

provide one.

errorRole BW-Plug-in The jar name isrequired.

Specify the jarname in the JarName field of theMapReduceactivity.

TIBCO-BW-PALETTE-HADOOP-5000014

Mapreduce main

class is required,

please provide one.

errorRole BW-Plug-in The main class isrequired.

Specify the mainclass in the MainClass field of theMapReduceactivity.

TIBCO-BW-PALETTE-HADOOP-5000015

Mapreduce streaming

input is required,

please provide one.

errorRole BW-Plug-in The streaming inputis required.

Specify thestreaming input inthe Input field ofthe MapReduceactivity.

TIBCO-BW-PALETTE-HADOOP-5000016

Mapreduce streaming

mapper is required,

please provide one.

errorRole BW-Plug-in The streamingmapper is required.

Specify the mapperin the Mapper fieldof the MapReduceactivity.

73

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 74: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error Code and ErrorMessage Role Category Description Solution

TIBCO-BW-PALETTE-HADOOP-5000017

Mapreduce streaming

reducer is

required, please

provide one.

errorRole BW-Plug-in The streamingreducer is required.

Specify the reducerin the Reducer fieldof the MapReduceactivity.

Oozie Error Codes

The following table lists the error codes of the Oozie Connection shared resource and the error codes ofthe activities in the Oozie palette:

Error Code and ErrorMessage Role Category Description Solution

TIBCO-BW-PALETTE-OOZIE-500002

IOException

occurred while

retrieving XML

Output for activity

[{0}].

errorRole BW-Plug-in An IOExceptionexception occurswhile retrievingXML output foractivity [{0}].

No action.

TIBCO-BW-PALETTE-OOZIE-500003

Exception occurred

while invoke

execute method for

activity [{0}].

errorRole BW-Plug-in An exceptionoccurred whileinvoking the executemethod for activity[{0}].

No action.

TIBCO-BW-PALETTE-OOZIE-500004

Invalid Oozie

Client Connection.

errorRole BW-Plug-in Invalid Oozieconnection sharedresource.

Configure validOozie connectionshared resource.

TIBCO-BW-PALETTE-OOZIE-500005

Oozie Server URL is

empty.

errorRole BW-Plug-in Oozie Server URL isempty in the Oozieconnection sharedresource.

Specify valid OozieServer URL.

TIBCO-BW-PALETTE-OOZIE-500006

Invalid Oozie Job

Type.

errorRole BW-Plug-in Invalid Oozie jobtype is mapped inthe input section.

Specify valid jobtype.

TIBCO-BW-PALETTE-OOZIE-500007

Invalid Job ID.

errorRole BW-Plug-in Invalid job ID ismapped inGetJobInfo activity.

Ensure the correctjob ID is mapped tothe job ID input.

74

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide

Page 75: Plug-in for Big Data User's Guide TIBCO ActiveMatrix ... · This tutorial is designed for the beginners who want to use ActiveMatrix BusinessWorks Plug-in for Big Data in TIBCO Business

Error Code and ErrorMessage Role Category Description Solution

TIBCO-BW-PALETTE-OOZIE-500008

Error Occurred:

{0}.

errorRole BW-Plug-in An error occurs.Detailedinformation is {0}.

No action.

75

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Big Data User's Guide