Trafodion Provisioning Guide
Trafodion Provisioning Guide
Version 2.0.0
Table of Contents
1. About This Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1. Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2. New and Changed Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3. Notation Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4. Comments Encouraged ..................................................................... 6
2. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1. Security Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2. Provisioning Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3. Provisioning Activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.4. Provisioning Master Node . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5. Trafodion Installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5.1. Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.5.2. Install vs. Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.5.3. Guided Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.5.4. Automated Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.6. Trafodion Provisioning Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3. Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.1. General Cluster and OS Requirements and Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.1.1. Hardware Requirements and Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.1.2. OS Requirements and Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.1.3. IP Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.2. Prerequisite Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.2.1. Hadoop Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.2.2. Software Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.3. Trafodion User IDs and Their Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.3.1. Trafodion Runtime User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.3.2. Trafodion Provisioning User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.4. Required Configuration Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.4.1. Operating System Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.4.2. ZooKeeper Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.4.3. HDFS Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.4.4. HBase Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.5. Recommended Configuration Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.5.1. Recommended Security Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.5.2. Recommended HDFS Configuration Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.5.3. Recommended HBase Configuration Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4. Prepare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4.1. Install Optional Workstation Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4.2. Configure Installation User ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4.3. Disable requiretty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4.4. Verify OS Requirements and Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4.5. Configure LDAP Identity Store . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
4.6. Gather Configuration Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
4.7. Install Required Software Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.7.1. Download and Install Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.7.2. Install log4c++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
4.8. Download Trafodion Binaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.9. Preparation for Recipe-Based Provisioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.9.1. Modify OS Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.9.2. Modify ZooKeeper Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.9.3. Modify HDFS Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.9.4. Modify HBase Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5. Install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.1. Unpack Installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.2. Automated Install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.3. Guided Install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6. Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.1. Download Updated Trafodion Binaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.2. Unpack Installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.3. Stop Trafodion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.4. Automated Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.5. Guided Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
7. Activate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
7.1. Manage Trafodion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
7.2. Validate Trafodion Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
7.2.1. Smoke Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
7.3. Troubleshooting Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
8. Remove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
8.1. Stop Trafodion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
8.2. Run trafodion_uninstaller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
9. Enable Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
9.1. Configuring LDAP Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
9.2. Generate Trafodion Certificate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
9.3. Authentication Setup Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
9.4. Manage Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
9.5. .traf_authentication_config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
9.5.1. File Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
9.5.2. Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
9.5.3. Configuration Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
9.6. ldapcheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
9.6.1. Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
9.6.2. Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
9.7. ldapconfigcheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
9.7.1. Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
9.7.2. Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
10. Install Recipe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
11. Upgrade Recipe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Provisioning Guide
License Statement
Licensed to the Apache Software Foundation (ASF) under one or more contributor license
agreements. See the NOTICE file distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file to you under the Apache
License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
Preface | 1
Provisioning Guide
Revision History
Version Date
2.0.0 To be announced.
1.3.0 January, 2016
2 | Preface
Provisioning Guide
If you want to install a Trafodion developer-build environment, then please refer to the Trafodion Contributor Guide for
instructions.
This guide assumes that you are well-versed in Linux and Hadoop administration. If you don’t have such experience, then
you should consider going through the steps required to install a Hadoop environment before attempting to install
Trafodion.
• Cluster (Multi-Node) Environments: Typically used when you deploy Trafodion for application usage.
• Bare Metal: Used for Product Environments as well as for Developer Environments.
The term node is used to represent a computing platform on which operating system, Hadoop, and
Trafodion software is running. Unless specifically qualified (bare-metal node, virtual-machine node, or
cloud-node), node represents a computing platform in your cluster regardless of platform type.
This list summarizes the notation conventions for syntax presentation in this manual.
• UPPERCASE LETTERS
Uppercase letters indicate keywords and reserved words. Type these items exactly as shown. Items not enclosed in
brackets are required.
SELECT
• lowercase letters
Lowercase letters, regardless of font, indicate variable items that you supply. Items not enclosed in brackets are
required.
file-name
• [ ] Brackets
A group of items enclosed in brackets is a list from which you can choose one item or none.
The items in the list can be arranged either vertically, with aligned brackets on each side of the list, or horizontally,
enclosed in a pair of brackets and separated by vertical lines.
For example:
• { } Braces
A group of items enclosed in braces is a list from which you are required to choose one item.
The items in the list can be arranged either vertically, with aligned braces on each side of the list, or horizontally,
enclosed in a pair of braces and separated by vertical lines.
For example:
• | Vertical Line
A vertical line separates alternatives in a horizontal list that is enclosed in brackets or braces.
{expression | NULL}
• … Ellipsis
An ellipsis immediately following a pair of brackets or braces indicates that you can repeat the enclosed sequence of
syntax items any number of times.
An ellipsis immediately following a single syntax item indicates that you can repeat that syntax item any number of
times.
For example:
expression-n ...
• Punctuation
Parentheses, commas, semicolons, and other symbols not previously described must be typed as shown.
DAY (datetime-expression)
@script-file
Quotation marks around a symbol such as a bracket or brace indicate the symbol is a required character that you must
type as shown.
For example:
• Item Spacing
Spaces shown between items are required unless one of the items is a punctuation symbol such as a parenthesis or a
comma.
If there is no space between two items, spaces are not permitted. In this example, no spaces are permitted between
the period and any other items:
myfile.sh
• Line Spacing
If the syntax of a command is too long to fit on a single line, each continuation line is indented three spaces and is
separated from the preceding line by a blank line.
This spacing distinguishes items in a continuation line from items in a vertical list of selections.
We encourage your comments concerning this document. We are committed to providing documentation that meets your
needs. Send any errors found, suggestions for improvement, or compliments to user@trafodion.incubator.apache.org.
Include the document title and any comment, error found, or suggestion for improvement you have concerning this
document.
Chapter 2. Introduction
Trafodion is a Hadoop add-on service that provides transactional SQL on top of HBase. Typically, you use Trafodion as the
database for applications that require Online Transaction Processing (OLTP), Operational Data Store (ODS), and/or strong
reporting capabilities. You access Trafodion using standard JDBC and ODBC APIs.
You may choose whether to add Trafodion to an existing Hadoop environment or to create a standalone Hadoop
environment specifically for Hadoop.
This guide assumes that a Hadoop environment exists upon which your provisioning Trafodion. Refer to Hadoop Software
for information about what Hadoop software is required Trafodion.
• Provisioning User: A Linux-level user that performs the Trafodion provisioning tasks. This user ID requires sudo
access and passwordless ssh among the nodes where Trafodion is installed. In addition, this user ID requires access
to Hadoop distribution, HDFS, and HBase administrative users to change respective environment’s configuration
settings per Trafodion requirements. Refer to Trafodion Provisioning User for more information about the requirements
and usage associated with this user ID.
• Runtime User: A Linux-level user under which the Trafodion software runs. This user ID must be registered as a user
in the Hadoop Distributed File System (HDFS) to store and access objects in HDFS, HBase, and Hive. In addition, this
user ID requires passwordless access among the nodes where Trafodion is installed. Refer to Trafodion Runtime User
for more information about this user ID.
• Trafodion Database Users: Trafodion users are managed by the Trafodion security features (grant, revoke, etc.),
which can be integrated with LDAP if so desired. These users are referred to as database users and do not have
direct access to the operating system. Refer to Register User, Grant, and other SQL statements in the Trafodion SQL
Reference Manual for more information about managing Trafodion Database Users.
Optionally, you can enable Trafodion Security. If you do not enable security in Trafodion, then a client interface to
Trafodion may request a user name and password, but Trafodion ignores the user name and password entered in the
client interface, and the session runs as the database root user, DB__ROOT, without restrictions. If you want to restrict
users, restrict access to certain users only, or restrict access to an object or operation, then you must enable security,
which enforces authentication and authorization. Refer to Enable Security for more information about this option.
8 | Chapter 2. Introduction
Provisioning Guide
Trafodion ships with a set of scripts (the Trafodion Installer) that takes care of many of the installation and upgrade tasks
associated with the Trafodion software and its requirements. There is a separate set of scripts to remove Trafodion, if
needed.
Currently, the Trafodion Installer is able to install Trafodion on select Cloudera and Hortonworks Hadoop distributions only.
The Trafodion Installer limitations are noted as they apply in the different chapters below. For example, the Trafodion
Installer is less capable on SUSE than it is on RedHat/CentOS; you have to install the prerequisite software packages
outside the Trafodion Installer.
The Trafodion Installer automates many of the tasks required to install/upgrade Trafodion, spanning from downloading and
installing required software packages and making required changes to your Hadoop environment via creating the
Trafodion runtime user ID to installing and starting Trafodion. It is, therefore, highly recommend that you use the Trafodion
Installer for initial installation and upgrades of Trafodion. These steps are referred to as "Script-Based Provisioning" in this
guide. Refer to Trafodion Installer provides usage information.
If, for any reason, you choose not to use the Trafodion Installer, then separate chapters provide step-by-step recipes for
the tasks required to install/upgrade Trafodion. These steps are referred to as Recipe-Based Provisioning in this guide. It
is assumed that you are well-versed in Linux and Hadoop administrative tasks if using Recipe-Based Provisioning.
• Requirements: Activities and documentation required to install the Trafodion software. These activities include tasks
such as understanding hardware and operating system requirements, Hadoop requirements, what software packages
that need to be downloaded, configuration settings that need to be changed, user IDs requirements, and so on.
• Prepare: Activities to prepare the operating system and the Hadoop ecosystem to run Trafodion. These activities
include tasks such as installing required software packages, configure the Trafodion Installation User, gather
information about the Hadoop environment, modify configuration for different Hadoop services, and so forth.
• Install: Activities related to installing the Trafodion software. These activities include tasks such as unpacking the
Trafodion tar files, creating the Trafodion Runtime User, creating Trafodion HDFS directories, installing the Trafodion
software, and so forth.
Chapter 2. Introduction | 9
Provisioning Guide
• Upgrade: Activities related to the upgrading the Trafodion software. These activities include tasks such as shutting
down Trafodion, installing a new version of the Trafodion software, and so on. The upgrade tasks vary depending on
the differences between the current and new release of Trafodion. For example, an upgrade may or may not include an
upgrade of the Trafodion metadata.
• Activate: Activities related to starting the Trafodion software. These actives include basic management tasks such as
starting and checking the status of the Trafodion components, performing basic smoke tests, and so forth.
All provisioning tasks are performed from a single node in the cluster, which must be part of the Hadoop environment
you’re adding Trafodion to. This node is referred to as the "Provisioning Master Node" in this guide.
The Trafodion Provisioning User must have access to all other nodes from the Provisioning Master Node in order to
perform provisioning tasks on the cluster.
The Trafodion Installer is a set of scripts automates most of the tasks requires to install/upgrade Trafodion. You download
the Trafodion Installer tar file from the Trafodion download page. Next, you unpack the tar file.
Example
$ mkdir $HOME/trafodion-installer
$ cd $HOME/trafodion-downloads
$ tar -zxf apache-trafodion-installer-1.3.0-incubating-bin.tar.gz -C $HOME/trafodion-
installer
$ ls $HOME/trafodion-installer/installer
bashrc_default tools traf_config_check
trafodion_apache_hadoop_install traf_package_setup
build-version-1.3.0.txt traf_add_user traf_config_setup
trafodion_config_default traf_setup
dcs_installer traf_apache_hadoop_config_setup traf_create_systemdefaults
trafodion_install traf_sqconfig
rest_installer traf_authentication_conf_default traf_getHadoopNodes
trafodion_license traf_start
setup_known_hosts.exp traf_cloudera_mods98 traf_hortonworks_mods98
trafodion_uninstaller
$
10 | Chapter 2. Introduction
Provisioning Guide
1. Guided Setup: Prompts for information as it works through the installation/upgrade process. This mode is
recommended for new users.
2. Automated Setup: Required information is provided in a pre-formatted bash-script configuration file, which is provided
via a command argument when running the Trafodion Installer thereby suppressing all prompts.
A template of the configuration file is available here within the installer directory: trafodion_config_default.
Make a copy of the file in your directory and populate the needed information.
Automated Setup is recommended since it allows you to record the required provisioning information information
ahead of time. Refer to Automated Setup for information about how to populate this file.
2.5.1. Usage
./trafodion_install --help
Options:
--help Print this message and exit
--accept_license If provided, the user agrees to accept all the
provisions in the Trafodion license. This allows
for automation by skipping the display and prompt of
the Trafodion license.
--config_file If provided, all install prompts will be
taken from this file and not prompted for.
Chapter 2. Introduction | 11
Provisioning Guide
The Trafodion Installer automatically detects whether you’re performing an install or an upgrade by looking for the
Trafodion Runtime User in the /etc/passwd file.
• If the user ID doesn’t exist, then the Trafodion Installer runs in install mode.
• If the user ID exists, then the Trafodion Installer runs in upgrade mode.
By default, the Trafodion Installer runs in Guided Setup mode, which means that it prompts you for information during the
install/upgrade process.
• Guided Install
• Guided Upgrade
Before running the Trafodion Installer with this option, you do the following:
Example
cp trafodion_config_default my_config
2. Edit the new file using information you collect in the Gather Configuration Information section in the Prepare chapter.
Example
12 | Chapter 2. Introduction
Provisioning Guide
Your Trafodion Configuration File contains the password for the Trafodion Runtime User and for the
Distribution Manager. Therefore, we recommend that you secure the file in a manner that matches
the security policies of your organization.
Using the instructions in Gather Configuration Information in the Prepare chapter, you record the following information.
ID Information Setting
ADMIN Administrator user name for Apache Ambari or Cloudera admin
Manager.
BACKUP_DCS_NODES List of nodes where to start the backup DCS Master
components.
CLOUD_CONFIG Whether you’re installing Trafodion on a cloud environment. N
CLOUD_TYPE What type of cloud environment you’re installing Trafodion
on.
CLUSTER_NAME The name of the Hadoop Cluster. Cluster 1
DCS_BUILD Tar file containing the DCS component.
DCS_PRIMARY_MASTER_NODE The node where the primary DCS should run.
DCS_SERVER_PARM Number of concurrent client sessions per node. 8
ENABLE_HA Whether to run DCS in high-availability (HA) mode. N
EPEL_RPM Location of EPEL RPM. Specify if you don’t have access to
the Internet.
FLOATING_IP IP address if running DCS in HA mode.
HADOOP_TYPE The type of Hadoop distribution you’re installing Trafodion cloudera
on.
HBASE_GROUP Linux group name for the HBASE administrative user. hbase
HBASE_USER Linux user name for the HBASE administrative user. hbase
HDFS_USER Linux user name for the HDFS administrative user. hdfs
HOME_DIR Root directory under which the trafodion home directory /home
should be created.
INIT_TRAFODION Whether to automatically initialize the Trafodion database. Y
INTERFACE Interface type used for $FLOATING_IP.
JAVA_HOME Location of Java 1.7.0_65 or higher (JDK). /usr/java/jdk1.7.0_67-
cloudera
LDAP_CERT Full path to TLS certificate.
LDAP_HOSTS List of nodes where LDAP Identity Store servers are
running.
LDAP_ID List of LDAP unique identifiers.
LDAP_LEVEL LDAP Encryption Level.
LDAP_PASSWORD Password for LDAP_USER.
LDAP_PORT Port used to communicate with LDAP Identity Store.
LDAP_SECURITY Whether to enable simple LDAP authentication. N
LDAP_USER LDAP Search user name.
Chapter 2. Introduction | 13
Provisioning Guide
ID Information Setting
LOCAL_WORKDIR The directory where the Trafodion Installer is located. /home/centos/trafodion-
installer/installer
MANAGEMENT_ENABLED Whether your installation uses separate management N
nodes.
MANAGEMENT_NODES The FQDN names of management nodes, if any.
NODE_LIST The FQDN names of the nodes where Trafodion will be trafodion-1 trafodion-2
installed.
PASSWORD Administrator password for Apache Ambari or Cloudera admin
Manager.
REST_BUILD Tar file containing the REST component.
SQ_ROOT Target directory for the Trafodion software. /home/trafodion/apach
e-trafodion-1.3.0-
incubating-bin
START Whether to start Trafodion after install/upgrade. Y
SUSE_LINUX Whether your installing Trafodion on SUSE Linux. false
TRAF_PACKAGE The location of the Trafodion installation package tar file or /home/centos/trafodion-
core installation tar file. download/apache-
trafodion-1.3.0-
incubating-bin.tar.gz
TRAF_USER The Trafodion runtime user ID. Must be trafodion in this trafodion
release.
TRAF_USER_PASSWORD The password used for the trafodion:trafodion user traf123
ID.
URL FQDN and port for the Distribution Manager’s REST API. trafodion-
1.apache.org:7180
#!/bin/bash
# @@@ START COPYRIGHT @@@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# @@@ END COPYRIGHT @@@
14 | Chapter 2. Introduction
Provisioning Guide
#====================================================
# Trafodion Configuration File
# This file contains default values for the installer.
# Users can also edit this file and provide values for all parameters
# and then specify this file on the run line of trafodion_install.
# Example:
# ./trafodion_install --config_file <Trafodion-config-file>
# WARNING: This mode is for advanced users!
#
#=====================================================
#=====================================================
#Must be set to 'true' if on a SUSE linux system. If on another type of system
#this must be set to false.
export SUSE_LINUX="false"
# Trafodion userid, This is the userid the Trafodion instance will run under
export TRAF_USER="trafodion"
# another list of the same nodes in NODE_LIST but specified in a pdsh usable format
# i.e. "-w centos-cdh[1-6]" or "-w node1 -w node2 -w node3"
export MY_NODES="-w trafodion-[1-2]"
Chapter 2. Introduction | 15
Provisioning Guide
#JAVA HOME must be a JDK. Must include FULL Path. Must be 1.7.0_65 or higher.
export JAVA_HOME="/usr/java/jdk1.7.0_67-cloudera"
# If your machine doesn't have external internet access then you must
# specify the location of the EPEL rpm, otherwise leave blank and it
# will be installed from the internet
export EPEL_RPM=""
16 | Chapter 2. Introduction
Provisioning Guide
export CONFIG_COMPLETE="true"
Once completed, run the Trafodion Installer with the --config_file option.
• Automated Install
• Automated Upgrade
Trafodion stores its provisioning information in the following directories on each node in the cluster:
Chapter 2. Introduction | 17
Provisioning Guide
Chapter 3. Requirements
Trafodion requires an x86 version of Linux.
• 64-bit Red Hat Enterprise Linux (RHEL) or CentOS 6.5, 6.6, and 6.7
Other OS releases may work, too. The Trafodion project is currently working on better support for non-distribution version
of Hadoop.
64-bit x86 instruction set running a Linux distribution is required. Further, Trafodion assumes an environment based on the
requirements of the tested Hadoop distributions/services.
Single-Node Cluster
It is possible to run Trafodion on a single-node sandbox environment. Typically, any sandbox running a Hadoop distribution
can be used. A typical single-node configuration uses 4-8 cores with 16 GB of memory, and 20 GB free disk space.
Multi-Node Cluster
For multi-node end-user clusters, your typical HBase environment should suffice for Trafodion. Typically, memory
configuration range between 64-128 GB per node with minimum requirement of 16 GB. The cluster size can span from 1
to n nodes; a minimum of two nodes is recommended. A minimum of two cores is required regardless of whether you’re
deploying Trafodion on a bare-metal or virtual environment.
18 | Chapter 3. Requirements
Provisioning Guide
Recommended configurations:
Attribute Guidance
Processors per Node • Small: 2 cores
• Medium: 4 cores
• Large: 8+ cores
Memory per Node • Small: 16 GB
• Medium: 64 GB
• Large: 128 GB
Concurrency:Nodes • Two Small Nodes: Four concurrent queries
• Two Medium Nodes: 64 concurrent queries
• Two Large Nodes: 256 concurrent queries
Please verify these requirements on each node you will install Trafodion on:
Chapter 3. Requirements | 19
Provisioning Guide
3.1.3. IP Ports
The following table lists the default ports used by the different Trafodion components plus the configuration file and
configuration attribute associated with each port setting.
• 23400 is a range, to allow multiple mxosrvr processes on each node. Allow a range of a few ports, enough to cover all
the servers per node that are listed in the "servers" file in the DCS configuration directory.
20 | Chapter 3. Requirements
Provisioning Guide
• 24410 is a range as well, enough to cover the DCS servers per node, usually 1 or 2.
On top of the ports identified above, you also need the ports required by your Hadoop distribution. For example:
• Cloudera Ports
• Hortonworks Ports
Although not all the ports will be used on every node of the cluster, you need to open most of them for all the nodes in the
cluster that have Trafodion, HBase, or HDFS servers on them.
Trafodion runs as an add-on service on Hadoop distributions. The following Hadoop services and their dependencies must
be installed and running on the cluster where you intend to install Trafodion:
• ZooKeeper
• HBase
• Hive
• Apache Ambari (Hortonworks) or Cloudera Manager (Cloudera) with associated embedded databases.
1. Future releases of Trafodion will move away from distribution-specific integration. Instead, Trafodion will be tested with
specific version of the Hadoop, HDFS, HBase, and other services/products only.
Chapter 3. Requirements | 21
Provisioning Guide
Trafodion does not yet support installation on a non-distribution version of Hadoop; that is, Hadoop
downloaded from the Apache web site. This restriction will be lifted in a later release of Trafodion.
In addition to the software packages required to run different Hadoop services listed above (for example, Java), Trafodion
requires supplementary software to be installed on the cluster before it is installed. These are Linux tools that are not
typically packaged as part of the core Linux distribution.
For RedHat/CentOS, the Trafodion Installer automatically attempts get a subset of these packages
over the Internet. If the cluster’s access to the Internet is disabled, then you need to manually
download the packages and make them available for installation. You need to build and install
log4c++ manually.
1. log4c++ was recently withdrawn from public repositories. Therefore, you will need to build the log4c++ RPM on your
system and then install the RPM using the procedure described in log4c++ Installation.
22 | Chapter 3. Requirements
Provisioning Guide
2. Software package required to build log4c++. Not required otherwise. These packages are not installed by the
Trafodion Installer in this release.
The Trafodion Installer requires Internet access to install the required software packages.
The trafodion:trafodion user ID is created as part of the installation process. The default password is: traf123.
Trafodion requires that either HDFS ACL support or Kerberos is enabled. The Trafodion Installer will enable HDFS ACL
support. Kerberos-based security settings are outside the scope of this guide. Please refer to the security information in
Apache HBase™ Reference Guide for information about how to set up HBase security with Kerberos.
Also, Trafodion requires sudo access to ip and arping so that floating or elastic IP addresses can be moved from one
node to another in case of node failures.
Do not create the trafodion:trafodion user ID in advance. The Trafodion Installer uses the
presence of this user ID to determine whether you’re doing an installation or upgrade.
Typically, the Trafodion Installer is used for Trafodion installations. It requires access to the user IDs documented below.
The user ID that performs the Trafodion installation steps. Typically, this User ID runs the Trafodion Installer.
Requirements:
Chapter 3. Requirements | 23
Provisioning Guide
• Modify /etc/sudoers.d (allow the trafodion user to modify floating IP: ip and arping).
• /etc
• /usr/lib
• /var/log
• Reserve IP ports.
1
sudo is required in the current release of Trafodion. This restriction may be relaxed in later releases. Alternative
mechanisms for privileged access (such as running as root or sudo alternative commands) are not supported.
A user ID that can change the configuration using Apache Ambari or Cloudera Manager. The Trafodion Installer makes
REST request to perform configuration and control functions to the distribution manager using this user ID.
Requirements:
The HDFS super user. Required to create directories and change security settings, as needed. The Trafodion Installer
uses su to run commands under this user ID.
24 | Chapter 3. Requirements
Provisioning Guide
Requirements:
• Write access to home directory on the node where the Distribution Manager is running.
Requirements:
Trafodion requires changes to a number of different areas of your system configuration: operating system, HDFS, and
HBase.
/etc/security/limits.d/trafodion.conf on each node in the cluster must contain the following settings:
# Trafodion settings
trafodion soft core unlimited
trafodion hard core unlimited
trafodion soft memlock unlimited
trafodion hard memlock unlimited
trafodion soft nofile 32768
trafodion hard nofile 65536
trafodion soft nproc 100000
trafodion hard nproc 100000
Chapter 3. Requirements | 25
Provisioning Guide
Action Purpose
• Create /hbase-staging directory.
• Change owner to HBase Administrator.
• Create /bulkload directory. Used to stage data when processing the
• Change owner to trafodion. Trafodion LOAD INTO table statement and as a
temporary directory to create links to actual
HFile for snapshot scanning.
• Create /lobs directory.
• Change owner to trafodion.
• Create /apps/hbase/data/archive1.
• Change owner to: hbase:hbase (Cloudera) or hbase:hdfs
(Hortonworks)
• Give the trafodion user RWX access to
/apps/hbase/data/archive
• Set default user of /apps/hbase/data/archive to trafodion
• Recursively change setafcl of /apps/hbase/data/archive to
RWX
1. These steps are performed after HDFS ACLs have been enabled.
26 | Chapter 3. Requirements
Provisioning Guide
These changes require a restart of ZooKeeper and HBase on all nodes in the cluster.
The following changes are required in hbase-site.xml. Please refer to the Apache HBase™ Reference Guide for
additional descriptions of these settings.
Chapter 3. Requirements | 27
Provisioning Guide
The trafodion user ID should not be given other sudo privileges than what’s specified in this manual. Also, we
recommend that this user ID is locked (sudo passwd -l trafodion) once the installation/upgrade activity has been
completed. Users that need issue commands as the trafodion ID should do so using sudo; for example, sudo -u
trafodion -i.
28 | Chapter 3. Requirements
Provisioning Guide
Chapter 3. Requirements | 29
Provisioning Guide
Chapter 4. Prepare
You need to prepare your Hadoop environment before installing Trafodion.
3. Disable requiretty
If you are using a Windows workstation, then the following optional software helps installation process. We recommended
that you pre-install the software before continuing with the Trafodion installation:
• SFTP client to transfer files from your workstation to the Linux server: WinSCP or FileZilla
• passwordless ssh to all nodes on the cluster where Trafodion will be installed.
You may need to request permission from your cluster-management team to obtain this type of
access.
The following example shows how to set up your user ID to have "passwordless ssh" abilities.
30 | Chapter 4. Prepare
Provisioning Guide
• If necessary, create the $HOME/.ssh directory on the other nodes in your cluster and secure it private to yourself
(chmod 700).
• If necessary, create the $HOME/.ssh/authorized_keys file on the other nodes in your cluster. Secure it with
chmod 600 $HOME/.ssh/authorized_keys.
• Copy the content of the $HOME/.ssh/authorized_keys file on the Provisioning Master Node and append the to
the $HOME/.ssh/authorized_keys file on the other nodes in your cluster.
• ssh to the other nodes in the cluster. Answer y to the prompt asking you whether to continue the connection. This
adds the node to the $HOME/.ssh/known_hosts file completing the passwordless ssh setup.
You need to disable requiretty in /etc/sudoers on all nodes in the cluster to ensure that sudo commands can be
run from inside the installation scripts.
Comment out the Defaults requiretty setting in the /etc/sudoers file to ensure that the requiretty option is
NOT being used.
Please ensure that the OS Requirements and Recommendations are met for each node in the cluster where you intend to
install Trafodion.
Chapter 4. Prepare | 31
Provisioning Guide
If you plan to enable security in Trafodion, then you need to have an LDAP identity store available to perform
authentication. The Trafodion Installer prompts you to set up an authentication configuration file that points to an LDAP
server (or servers), which enables security (that is, authentication and authorization) in the Trafodion database.
If you wish to manually set up the authentication configuration file and enable security, then refer to the section on Enable
Security.
You need to gather/decide information about your environment to aid installation Trafodion, both for the Trafodion Installer
and for recipe-based provisioning. (Listed in alphabetical order to make it easier to find information when referenced in the
install and upgrade instructions.)
32 | Chapter 4. Prepare
Provisioning Guide
Chapter 4. Prepare | 33
Provisioning Guide
1. The ID matches the environmental variables used in the Trafodion Installation configuration file. Refer to Trafodion
Installer for more information.
2. Refer to Enable Security for more information about these security settings.
34 | Chapter 4. Prepare
Provisioning Guide
If none of these situations exist, then we highly recommend that you use the Trafodion Installer.
Install the packages listed in Software Packages above on all nodes in the cluster. Note the special handling for log4c++.
See Install log4c++ below for more information.
Chapter 4. Prepare | 35
Provisioning Guide
Example
# Repeat for all nodes in the cluster from the Provisioning Master Node
scp log4cxx-0.10.0-13.el6.x86_64.rpm <other-node>:$PWD
ssh <other-node>
sudo yum -y install log4cxx-0.10.0-13.el6.x86_64.rpm
exit
36 | Chapter 4. Prepare
Provisioning Guide
Use the following command to verify that log4c++ has been installed on every node in the cluster.
You download the Trafodion binaries from the Trafodion Download page. Download the following packages:
• Trafodion Server
You can download and install the Trafodion Clients once you’ve installed and activated Trafodion.
Refer to the Trafodion Client Install Guide for instructions.
Example
http://apache.cs.utah.edu/incubator/celix/celix-1.0.0.incubating/celix-1.0.0.incubating.tar.gz
$ mkdir $HOME/trafodion-download
$ cd $HOME/trafodion-download
$ # Download the Trafodion Installer binaries
$ wget http://apache.cs.utah.edu/incubator/trafodion/trafodion-1.3.0.incubating/apache-
trafodion-installer-1.3.0-incubating-bin.tar.gz
Resolving http://apache.cs.utah.edu... 192.168.1.56
Connecting to http://apache.cs.utah.edu|192.168.1.56|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68813 (67K) [application/x-gzip]
Saving to: "apache-trafodion-installer-1.3.0-incubating-bin.tar.gz"
100%[==================================================================================
===================================>] 68,813 124K/s in 0.5s
Chapter 4. Prepare | 37
Provisioning Guide
100%[==================================================================================
===================================>] 214,508,243 3.90M/s in 55s
$ ls -l
total 209552
-rw-rw-r-- 1 centos centos 214508243 Jan 12 20:10 apache-trafodion-1.3.0-incubating-
bin.tar.gz
-rw-rw-r-- 1 centos centos 68813 Jan 12 20:10 apache-trafodion-installer-1.3.0-
incubating-bin.tar.gz
$
This step should be skipped if you plan to use the Trafodion Installer
Ensure that the /etc/security/limits.d/trafodion.conf on each node contains the limits settings required by
Trafodion. Refer to Operating System Changes for the required settings.
Do the following:
Attribute Setting
maxClientCnxns 0
38 | Chapter 4. Prepare
Provisioning Guide
Do the following:
Attribute Setting
dfs.namenode.acls.enabled true
Do the following:
Attribute Setting
hbase.master.distributed.log.splitting false
hbase.coprocessor.region.classes org.apache.hadoop.hbase.coprocessor.transactional.TrxRegionObser
ver,org.apache.hadoop.hbase.coprocessor.transactional.TrxRegionEn
dpoint,
org.apache.hadoop.hbase.coprocessor.AggregateImplementation
hbase.hregion.impl org.apache.hadoop.hbase.regionserver.transactional.TransactionalRe
gion
hbase.regionserver.region.split.policy org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolic
y
hbase.snapshot.enabled true
hbase.bulkload.staging.dir hbase-staging
hbase.regionserver.region.transactional.tlog true
hbase.snapshot.master.timeoutMillis 600000
hbase.snapshot.region.timeout 600000
hbase.client.scanner.timeout.period 600000
hbase.regionserver.lease.period 600000
a
hbase.namenode.java.heapsize 1073741824
a
hbase.secondary.namenode.java.heapsize 1073741824
Chapter 4. Prepare | 39
Provisioning Guide
Chapter 5. Install
This chapter describes how to use the Trafodion Installer to install Trafodion. You use the Trafodion Provisioning ID to run
the Trafodion Installer.
Prior to version 2.0.0, you must install log4c++ on all nodes in the cluster prior to running the
Trafodion Installer. Refer to Build and Install log4c++ for instructions.
You should already have downloaded the Trafodion Binaries per the instructions in the Download Trafodion Binaries in the
Prepare chapter. If not, please do so now.
The first step in the installation process is to unpack the Trafodion Installer tar file.
Example
$ mkdir $HOME/trafodion-installer
$ cd $HOME/trafodion-downloads
$ tar -zxf apache-trafodion-installer-1.3.0-incubating-bin.tar.gz -C $HOME/trafodion-
installer
$ ls $HOME/trafodion-installer/installer
bashrc_default tools traf_config_check
trafodion_apache_hadoop_install traf_package_setup
build-version-1.3.0.txt traf_add_user traf_config_setup
trafodion_config_default traf_setup
dcs_installer traf_apache_hadoop_config_setup traf_create_systemdefaults
trafodion_install traf_sqconfig
rest_installer traf_authentication_conf_default traf_getHadoopNodes
trafodion_license traf_start
setup_known_hosts.exp traf_cloudera_mods98 traf_hortonworks_mods98
trafodion_uninstaller
$
The --config_file option runs the Trafodion in Automated Setup mode. Refer to Trafodion Installer in the Introduction
chapter for instructions of how you edit your configuration file.
Edit your config file using the information you collected in the Gather Configuration Information step in the Prepare
chapter.
40 | Chapter 5. Install
Provisioning Guide
The following example shows an automated install of Trafodion on a two-node Hortonworks Hadoop cluster.
By default, the Trafodion Installer invokes sqlci so that you can enter the initialize
trafodion; command. This is shown in the example below.
Example
$ cd $HOME/trafodion-installer/installer
$ ./trafodion_install --config_file my
******************************
TRAFODION INSTALLATION START
******************************
************************************
Trafodion Configuration File Check
************************************
******************************
TRAFODION SETUP
******************************
Chapter 5. Install | 41
Provisioning Guide
BY TYPING "ACCEPT" YOU AGREE TO THE TERMS OF THIS AGREEMENT: ***INFO: testing sudo
access
***INFO: Checking all nodes in specified node list
trafodion-1
trafodion-2
***INFO: Total number of nodes = 2
***INFO: Starting Trafodion Package Setup (2016-02-16-21-12-35)
***INFO: Installing required packages
***INFO: Log file located in /var/log/trafodion
***INFO: ... EPEL rpm
***INFO: ... pdsh on node trafodion-1
***INFO: ... pdsh on node trafodion-2
***INFO: Checking if log4cxx is installed ...
***INFO: Checking if sqlite is installed ...
***INFO: Checking if expect is installed ...
.
.
.
***INFO: trafodion user added successfully
***INFO: Trafodion environment setup completed
***INFO: creating sqconfig file
***INFO: Reserving DCS ports
******************************
TRAFODION MODS
******************************
42 | Chapter 5. Install
Provisioning Guide
*********************************
TRAFODION INSTALLATION COMPLETE
*********************************
2. Switch to the Trafodion Runtime User and check the status of Trafodion.
Example
Chapter 5. Install | 43
Provisioning Guide
$ sudo su - trafodion
$ sqcheck
Checking if processes are up.
Checking attempt: 1; user specified max: 2. Execution time in seconds: 0.
Trafodion is now running on your Hadoop cluster. Please refer to the Activate chapter for basic instructions on how to
verify the Trafodion management and how to perform basic management operations.
The Trafodion Installer prompts you for the information you collected in the Gather Configuration Information step in the
Prepare chapter.
The following example shows a guided install of Trafodion on a two-node Cloudera Hadoop cluster.
By default, the Trafodion Installer invokes sqlci so that you can enter the initialize
trafodion; command. This is shown in the example below.
Example
$ cd $HOME/trafodion-installer/installer
$ ./trafodion_install
******************************
TRAFODION INSTALLATION START
******************************
44 | Chapter 5. Install
Provisioning Guide
*******************************
Trafodion Configuration Setup
*******************************
************************************
Trafodion Configuration File Check
************************************
******************************
Chapter 5. Install | 45
Provisioning Guide
TRAFODION SETUP
******************************
46 | Chapter 5. Install
Provisioning Guide
| |
| . |
| . . . |
| o * X o |
| . E X S |
| . o + + |
| o . o |
| o.. |
| oo |
+-----------------+
***INFO: creating .bashrc file
***INFO: Setting up userid trafodion on all other nodes in cluster
***INFO: Creating known_hosts file for all nodes
trafodion-1
trafodion-2
***INFO: trafodion user added successfully
***INFO: Trafodion environment setup completed
***INFO: creating sqconfig file
***INFO: Reserving DCS ports
******************************
TRAFODION MODS
******************************
******************************
TRAFODION START
******************************
/usr/lib/trafodion/installer/..
***INFO: Log file location /var/log/trafodion/trafodion_install_2016-02-15-07-08-
07.log
***INFO: traf_start
******************************************
******************************************
******************************************
******************************************
/home/trafodion/apache-trafodion-1.3.0-incubating-bin
Chapter 5. Install | 47
Provisioning Guide
***********************************************************
Updating Authentication Configuration
***********************************************************
Creating folders for storing certificates
48 | Chapter 5. Install
Provisioning Guide
*********************************
TRAFODION INSTALLATION COMPLETE
*********************************
2. Switch to the Trafodion Runtime User and check the status of Trafodion.
$ sudo su - trafodion
$ sqcheck
Checking if processes are up.
Checking attempt: 1; user specified max: 2. Execution time in seconds: 0.
Trafodion is now running on your Hadoop cluster. Please refer to the Activate chapter for basic instructions on how to
verify the Trafodion management and how to perform basic management operations.
Chapter 5. Install | 49
Provisioning Guide
Chapter 6. Upgrade
This chapter describes how to use the Trafodion Installer to upgrade Trafodion. You use the Trafodion Provisioning ID to
run the Trafodion Installer.
You download the updated Trafodion binaries from the Trafodion Download page. Download the following packages:
• Trafodion Server
Example
$ mkdir $HOME/trafodion-installer-2.0
$ cd $HOME/trafodion-downloads
$ tar -zxf apache-trafodion-installer-2.0.0-incubating-bin.tar.gz -C $HOME/trafodion-
installer
$ ls $HOME/trafodion-installer/installer-2.0
bashrc_default tools traf_config_check
trafodion_apache_hadoop_install traf_package_setup
build-version-2.0.0.txt traf_add_user traf_config_setup
trafodion_config_default traf_setup
dcs_installer traf_apache_hadoop_config_setup traf_create_systemdefaults
trafodion_install traf_sqconfig
rest_installer traf_authentication_conf_default traf_getHadoopNodes
trafodion_license traf_start
setup_known_hosts.exp traf_cloudera_mods98 traf_hortonworks_mods98
trafodion_uninstaller
$
50 | Chapter 6. Upgrade
Provisioning Guide
Example
$ sudo su trafodion
$ sqstop
Shutting down the REST environment now
stopping rest.
Shutting down the DCS environment now
stopping master.
trafodion-1: stopping server.
trafodion-2: stopping server.
stopped $zlobsrv0
stopped $zlobsrv1
Shutting down (normal) the SQ environment!
Wed Feb 17 05:12:40 UTC 2016
Processing cluster.conf on local host trafodion-1
[$Z000KAE] Shell/shell Version 1.0.1 Apache_Trafodion Release 1.3.0 (Build release
[1.3.0-0-g5af956f_Bld2], date 20160112_1927)
ps
Chapter 6. Upgrade | 51
Provisioning Guide
[$Z000KAE] %ps
[$Z000KAE] NID,PID(os) PRI TYPE STATES NAME PARENT PROGRAM
[$Z000KAE] ------------ --- ---- ------- ----------- ----------- ---------------
[$Z000KAE] 000,00064198 000 WDG ES--A-- $WDG000 NONE sqwatchdog
[$Z000KAE] 000,00064199 000 PSD ES--A-- $PSD000 NONE pstartd
[$Z000KAE] 000,00064212 001 GEN ES--A-- $TSID0 NONE idtmsrv
[$Z000KAE] 000,00064242 001 DTM ES--A-- $TM0 NONE tm
[$Z000KAE] 000,00065278 001 GEN ES--A-- $ZSC000 NONE mxsscp
[$Z000KAE] 000,00065305 001 SSMP ES--A-- $ZSM000 NONE mxssmp
[$Z000KAE] 000,00001219 001 GEN ES--A-- $Z0000ZU NONE mxosrvr
[$Z000KAE] 000,00001235 001 GEN ES--A-- $Z00010A NONE mxosrvr
[$Z000KAE] 000,00001279 001 GEN ES--A-- $Z00011J NONE mxosrvr
[$Z000KAE] 000,00001446 001 GEN ES--A-- $Z00016B NONE mxosrvr
[$Z000KAE] 000,00024864 001 GEN ES--A-- $Z000KAE NONE shell
[$Z000KAE] 001,00025180 000 PSD ES--A-- $PSD001 NONE pstartd
[$Z000KAE] 001,00025179 000 WDG ES--A-- $WDG001 NONE sqwatchdog
[$Z000KAE] 001,00025234 001 DTM ES--A-- $TM1 NONE tm
[$Z000KAE] 001,00025793 001 GEN ES--A-- $ZSC001 NONE mxsscp
[$Z000KAE] 001,00025797 001 SSMP ES--A-- $ZSM001 NONE mxssmp
[$Z000KAE] 001,00026587 001 GEN ES--A-- $Z010LPM NONE mxosrvr
[$Z000KAE] 001,00026617 001 GEN ES--A-- $Z010LQH NONE mxosrvr
[$Z000KAE] 001,00026643 001 GEN ES--A-- $Z010LR8 NONE mxosrvr
[$Z000KAE] 001,00026644 001 GEN ES--A-- $Z010LR9 NONE mxosrvr
shutdown
[$Z000KAE] %shutdown
exit
Issued a 'shutdown normal' request
Shutdown in progress
# of SQ processes: 0
SQ Shutdown (normal) from /home/trafodion Successful
Wed Feb 17 05:12:47 UTC 2016
$
52 | Chapter 6. Upgrade
Provisioning Guide
The --config_file option runs the Trafodion in Automated Setup mode. Refer to Trafodion Installer in the Introduction
chapter for instructions of how you edit your configuration file.
• LOCAL_WORKDIR
• TRAF_PACKAGE
• SQ_ROOT
Example
$ cd $HOME/trafodion-configuration
$ cp my_config my_config_2.0
$ # Pre edit content
export LOCAL_WORKDIR="/home/centos/trafodion-installer/installer"
export TRAF_PACKAGE="/home/centos/trafodion-download/apache-trafodion-1.3.0-incubating-
bin.tar.gz"
export SQ_ROOT="/home/trafodion/apache-trafodion-1.3.0-incubating-bin"
export LOCAL_WORKDIR="/home/centos/trafodion-installer-2.0/installer"
export TRAF_PACKAGE="/home/centos/trafodion-download/apache-trafodion-2.0.0-incubating-
bin.tar.gz"
export SQ_ROOT="/home/trafodion/apache-trafodion-2.0.0-incubating-bin"
The following example shows an upgrade of Trafodion on a two-node Hortonworks Hadoop cluster using Automated Setup
mode.
The Trafodion Installer performs the same configuration changes as it does for an installation,
including restarting Hadoop services.
Example
1. Run the updated Trafodion Installer using the modified my_config_2.0 file.
Chapter 6. Upgrade | 53
Provisioning Guide
$ cd $HOME/trafodion-installer-2.0/installer
$ ./trafodion_install --config_file $HOME/trafodion-configuration/my_config_2.0
******************************
TRAFODION INSTALLATION START
******************************
******************************
TRAFODION SETUP
******************************
54 | Chapter 6. Upgrade
Provisioning Guide
*********************************
TRAFODION INSTALLATION COMPLETE
*********************************
2. Switch to the Trafodion Runtime User and check the status of Trafodion.
$ sudo su - trafodion
$ sqcheck
Checking if processes are up.
Checking attempt: 1; user specified max: 2. Execution time in seconds: 0.
Trafodion is now running on your Hadoop cluster. Please refer to the Activate chapter for basic instructions on how to
verify the Trafodion management and how to perform basic management operations.
Chapter 6. Upgrade | 55
Provisioning Guide
As in the case with an installation, the Trafodion Installer prompts you for the information you collected in the Gather
Configuration Information step in the Prepare chapter. Some of the prompts are populated with the current values.
The following example shows a guided upgrade of Trafodion on a two-node Cloudera Hadoop cluster.
Example
1. Run the updated Trafodion Installer in Guided Setup mode to perform the upgrade. Change information at prompts as
applicable.
$ cd $HOME/trafodion-installer-2.0/installer
$ ./trafodion_install
******************************
TRAFODION INSTALLATION START
******************************
*******************************
Trafodion Configuration Setup
*******************************
56 | Chapter 6. Upgrade
Provisioning Guide
************************************
Trafodion Configuration File Check
************************************
******************************
TRAFODION SETUP
******************************
Chapter 6. Upgrade | 57
Provisioning Guide
******************************
TRAFODION MODS
******************************
*********************************
TRAFODION INSTALLATION COMPLETE
*********************************
2. Switch to the Trafodion Runtime User and check the status of Trafodion.
58 | Chapter 6. Upgrade
Provisioning Guide
$ sudo su - trafodion
$ sqcheck
Checking if processes are up.
Checking attempt: 1; user specified max: 2. Execution time in seconds: 0.
Trafodion is now running on your Hadoop cluster. Please refer to the Activate chapter for basic instructions on how to
verify the Trafodion management and how to perform basic management operations.
Chapter 6. Upgrade | 59
Provisioning Guide
Chapter 7. Activate
You use the Trafodion runtime user ID to perform Trafodion management operations.
The following table provides an overview of the different Trafodion management scripts.
cd $MY_SQROOT/sql/scripts
sqstart
sqcheck
You can use sqlci (part of the base product) or trafci (requires separate install; see the Trafodion Client Installation Guide)
to validate your installation.
get schemas;
create table table1 (a int);
invoke table1;
insert into table1 values (1), (2), (3), (4);
select * from table1;
drop table table1;
exit;
60 | Chapter 7. Activate
Provisioning Guide
Example
$ sqlci
Apache Trafodion Conversational Interface 1.3.0
Copyright (c) 2015 Apache Software Foundation
>>get schemas;
SEABASE
_MD_
_REPOS_
(
SYSKEY LARGEINT NO DEFAULT NOT NULL NOT DROPPABLE
NOT SERIALIZED
, A INT DEFAULT NULL SERIALIZED
)
A
-----------
1
2
3
4
Chapter 7. Activate | 61
Provisioning Guide
Assuming no errors, your installation has been successful. Next, do the following:
• Install the Trafodion client software. Refer to the Trafodion Client Installation Guide.
If you are not able to start up the environment or if there are problems running sqlci or trafci, then verify that the all the
processes are up and running.
• sqstop to shut down Trafodion. If some Trafodion processes do not terminate cleanly, then run ckillall.
62 | Chapter 7. Activate
Provisioning Guide
Chapter 8. Remove
You use the Trafodion Provisioning User for these instructions.
You do not need to use the trafodion_uninstaller script if upgrading Trafodion. Instead, use
the trafodion_install script, which automatically upgrades the version of Trafodion. Please
refer to the Install chapter for further instructions.
Run the commands from the first node of the cluster. Do not run them from a machine that is not part of the Trafodion
cluster.
Do the following:
su trafodion
cd $MY_SQROOT/sql/scripts or cds
sqstop
exit
Example
Chapter 8. Remove | 63
Provisioning Guide
Shutdown in progress
# of SQ processes: 0
SQ Shutdown (normal) from /home/trafodion/apache-trafodion-1.3.0-incubating-
bin/sql/scripts Successful
Mon Feb 15 07:49:26 UTC 2016
[trafodion@trafodion-1 scripts]$ exit
[admin@trafodion-1 ~]$
Example
64 | Chapter 8. Remove
Provisioning Guide
Trafodion does not manage user names and passwords internally but does support authentication via directory servers
that support the OpenLDAP protocol, also known as LDAP servers. You can configure the LDAP servers during
installation by answering the Trafodion Installer’s prompts, or you can configure the LDAP servers manually after
installation. For more information, please refer to Configuring LDAP Servers below.
Once authentication and authorization are enabled, Trafodion allows users to be registered in the database and allows
privileges on objects to be granted to users and roles (which are granted to users). Trafodion also supports component-
level (or system-level) privileges, such as MANAGE_USERS, which can be granted to users and roles. Refer to Manage
Users below.
To specify the LDAP server(s) to be used for authentication, you need to configure the text file
.traf_authentication_config, located (by default) in $MY_SQROOT/sql/scripts. This file is a flat file, organized
as a series of attribute/value pairs. Details on all the attributes and values accepted in the authentication configuration file
and how to configure alternate locations can be found in .traf_authentication_config below.
Attributes and values in the authentication configuration file are separated with a colon immediately following the attribute
name. In general, white space is ignored but spaces may be relevant in some values. Attribute names are always case
insensitive. Multiple instances of an attribute are specified by repeating the attribute name and providing the new value.
For attributes with only one instance, if the attribute is repeated, the last value provided is used.
Attribute1: valueA
Attribute2: valueB
Attribute1: valueC
If Attribute1 has only one instance, valueC is used, otherwise, valueA and valueC are both added to the list of
values for Attribute1.
Attributes are grouped into sections; this is for future enhancements. Attributes are declared in the LOCAL section, unless
otherwise specified.
Section names, attribute names, and the general layout of the authentication configuration file are
subject to change in future versions of Trafodion and backward compatibility is not guaranteed.
Example
` TLS_CACERTFilename:
mycert.pem
TLS_CACertFilename:
/usr/etc/cert.pem `
Search Some LDAP servers require a known user name and password to LDAPSearchDN:
username and search the directory of user names. If your environment has that lookup@company.com
password requirement, provide these "search" values. LDAPSearchPwd: Lookup123
There are additional optional attributes that can be used to customize Trafodion authentication. As mentioned earlier, they
are described in .traf_authentication_config below.
You can test the authentication configuration file for syntactic errors using the ldapconfigcheck tool. If you have loaded
the Trafodion environment (sqenv.sh), then the tool automatically checks the file at
$MY_SQROOT/sql/scripts/.traf_authentication_config. If not, you can specify the file to be checked.
Example
If an error is found, then the line number with the error is displayed along with the error. Please refer to ldapconfigcheck
below for more information.
The authentication configuration file needs to be propagated to all nodes, but there is a script that
does that for you described later. For now, you can test your changes on the local node.
You can test the LDAP connection using the utility ldapcheck. To use this utility the Trafodion environment must be
loaded (sqenv.sh), but the Trafodion instance does not need to be running. To test the connection only, you can specify
any user name, and a name lookup is performed using the attributes in .traf_authentication_config.
ldapcheck --username=fakename@company.com
User fakename@company.com not found
If ldapcheck reports either that the user was found or the user was not found, the connection was successful. However,
if an error is reported, either the configuration file is not setup correctly, or there is a problem either with your LDAP server
or the connection to the server. You can get additional error detail by including the --verbose option. Please refer to
ldapcheck for more information.
If you supply a password, ldapcheck attempts to authenticate the specified username and password. The example
below shows the password for illustrative purposes, but to avoid typing the password on the command line, leave the
password blank (--password=) and the utility prompts for the password with no echo.
Trafodion clients such as trafci encrypt the password before sending it to Trafodion. A self-signed certificate is used to
encrypt the password. The certificate and key should be generated when the sqgen script is invoked. By default, the files
server.key and server.crt are located in $HOME/sqcert. If those files are not present and since Trafodion clients
does not send unencrypted passwords, then you need to manually generate those files. To do so, run the script
sqcertgen located in $MY_SQROOT/sql/scripts. The script runs openssl to generate the certificate and key.
Option Description
-x509 Generate a self-signed certificate.
-days <validity of certificate> Make the certificate valid for the days specified.
-newkey rsa:<bytes> Generate a new private key of type RSA of length 1024 or 2048 bytes.
-subj <certificateinfo> Specify the information that is incorporated in the certificate. Each
instance in a cluster should have a unique common name(CN).
-keyout <filename> Write the newly generated RSA private key to the file specified.
-nodes It is an optional parameter that specifies NOT to encrypt the private key.
If you encrypt the private key, then you must enter the password every
time the private key is used by an application.
-out <filename> Write the self-signed certificate to the specified file.
Both the public (server.crt) and private (server.key) files should be placed in the directory $HOME/sqcert. If you
do not want to use the HOME directory or if you want to use different names for the private and/or public key files, then
Trafodion supports environment variables to specific the alternate locations or names.
• Trafodion first checks the environment variables SQCERT_PRIVKEY and SQCERT_PUBKEY. If they are set, Trafodion
uses the fully qualified filename value of the environment variable.
• If at least one filename environment variable is not set, Trafodion checks the value of the environment variable
SQCERT_DIR. If set, then the default filename server.key or server.crt is appended to the value of the
environment variable SQCERT_DIR.
• If the filename environment variable is not set and the directory environment variable is not set, then Trafodion uses
the default location ($HOME/sqcert) and the default filename.
The final step to enable security is to change the value of the environment variable
TRAFODION_ENABLE_AUTHENTICATION from NO to YES and turn on authorization. This is achieved by invoking the
traf_authentication_setup script, which is located in $MY_SQROOT/sql/scripts.
Usage
Options:
--file <loc> Optional location of OpenLDAP configuration file
--help Prints this message
--off Disables authentication and authorization
--on Enables authentication and authorization
--setup Enables authentication
--status Returns status of authentication enablement
Option Description
--file If specified, then filename is copied to $MY_SQROOT/. Users working in their own private
environment can refer to a site-specific configuration file from a central location.
--on traf_authentication_setup invokes ldapconfigcheck to verify the configuration file is
syntactically correct. It also invokes ldapcheck to verify that a connection can be made to
an LDAP server.
The last step is to enable authorization by creating privilege-related metadata tables and
set up default permissions with a call to the database. The list of privilege-related metadata
tables, users, roles, and component privileges are logged in
$MY_SQROOT/logs/authEnable.log.
The last step is to disable authorization by removing any privilege-related metadata and
permissions with a call to the database. The results of this operation is logged in
$MY_SQROOT/logs/authEnable.log.
--setup Use this option if the Trafodion metadata has not been initialized. This option enables
authentication but does not call the database to create privilege-related metadata tables.
Later, when Trafodion metadata is initialized, privilege-related metadata tables and default
permissions are automatically created.
Option Description
--status Reports the value of the environment variable TRAFODION_ENABLE_AUTHENTICATION in
$MY_SQROOT/sqenvcom.sh on the current node and reports the status of security
features in the database.
Example
INFO: Start of security (authentication and authorization) script Wed Mar 25 15:12:50
PDT 2xxx.
INFO: End of security (authorization and authentication) script Wed Mar 25 15:12:54 PDT
2xxx.
Any time the environment file (sqenvcom.sh) is changed (and propagated to all nodes), Database
Connectivity Services (DCS) must be restarted to pick up the new value. If the configuration file is
changed, it re-reads in 30 minutes (by default), but you can have changes take effect immediately by
restarting DCS.
To restart DCS, run the scripts stop-dcs.sh and start-dcs.sh, located in $MY_SQROOT/dcs-<x>.<y>.<z>/bin.
Users are registered in the Trafodion database and are used to enforce authorization. If security is disabled, any user can
register any user at any time. However, once security is enabled, user administration is considered a secure operation,
and registration of users is restricted to DBROOT or any user granted the MANAGE_USERS component
privilege. To initially register a user, connect to Trafodion with the external user
mapped to DBROOT (also known as the Trafodion ID).
When security is enabled, the DBROOT user is registered as the TRAFODION external user name. It
is recommended that the DBROOT user be mapped to the external user name that is used to connect for root
operations. To do this, start a sqlci session and perform the ALTER USER command, for example:
To learn more about how to register users, grant object and component privileges, and manage users and roles, please
see the Trafodion SQL Reference Manual.
9.5. .traf_authentication_config
Trafodion firsts checks the environment variable TRAFAUTH_CONFIGFILE. If set, the value is used as the fully-qualified
Trafodion authentication configuration file.
If the environment variable is not set, then Trafodion next checks the variable TRAFAUTH_CONFIGDIR. If set, the value is
prepended to .traf_authentication_config and used as the Trafodion authentication file.
9.5.2. Template
# Must specify one or more unique identifiers, one name: value pair for each
UniqueIdentifier:
# If configured LDAP server requires TLS(1) or SSL (2), update this value
LDAPSSL:0
• Non-secure: 389
• SSL: 636
• TLS: 389
LDAPSearchDN If a search user is cn=aaabbb, dc=demo, If anonymous search is allowed on the
needed, the search dc=net local server, then this attribute does not
user distinguished need to be specified or can be specified
name is specified here. with no value (blank). To date,
anonymous search is the normal
approach used.
LDAPSearchPWD Password for the welcome None.
LDAPSearchDN value.
See that entry for
details.
LDAPSSL A numeric value 0 None.
specifying whether the
local LDAP server
interface is
unencrypted or TLS or
SSL. Legal values are
0 for unencrypted, 1 for
SSL, and 2 for TLS. For
SSL/TLS, see the
section below on
Encryption Support.
UniqueIdentifier The directory attribute uid=,ou=Users,dc=dem To account for the multiple forms of DN
that contains the user’s o,dc=net supported by a given LDAP server,
unique identifier. specify the UniqueIdentifier
parameter multiple times with different
values. During a search, each
UniqueIdentifier is tried in the order
it is listed in the configuration file.
9.6. ldapcheck
9.6.1. Usage
ldapcheck [<option>]...
<option> ::= --help|-h display usage information
--username=<LDAP-username>
--password[=<password>]
--primary Use first configuration
--local Use first configuration
--enterprise Use first configuration
--secondary Use second configuration
--remote Use second configuration
--cluster Use second configuration
--verbose Display non-zero retry counts
and LDAP errors
9.6.2. Considerations
• Aliases for primary include enterprise and local. Aliases for secondary include cluster and remote. If no configuration is
specified, primary is assumed.
• To be prompted for a password value with no echo, specify the password argument but omit the equals sign and value.
• Passwords that contain special characters may need to be escaped if the password is specified on the command line
or within a script file.
• If the password keyword is not specified, only the username is checked. The tool can therefore be used to test the
LDAP configuration and connection to the configured LDAP server(s) without knowing a valid username or password.
9.7. ldapconfigcheck
This page describes the ldapconfigcheck tool, which validates the syntactic correctness of a Trafodion authentication
configuration file. Trafodion does not need to be running to run the tool.
9.7.1. Considerations
If the configuration filename is not specified, then the tool looks for a file using environment variables. Those environment
variables and the search order are:
1. TRAFAUTH_CONFIGFILE
2. TRAFAUTH_CONFIGDIR
3. MY_SQROOT
9.7.2. Errors
One of the following is output when the tool is run. Only the first error encountered is reported.
Code Text
0 File filename is valid.
1 File filename not found.
2 File: filename
Each LDAP connection configuration section must provide at least one host name.
10 Missing unique identifier in at least one section.
Each LDAP connection configuration section must provide at least one unique identifier.
11 At least one LDAP connection configuration section must be specified.
12 Internal error parsing .traf_authentication_config.