Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The install_local_hadoop script downloads compatible versions of Hadoop, HBase, Hive, and MySQL. Then, it starts Trafodion.

Tip
titleTime Saver

install_local_hadoop downloads Hadoop, HBase, Hive, and MySql jar files from the internet. To avoid this overhead, you can download the required files into a separate directory and set the environment variable MY_LOCAL_SW_DIST to point to this directory.

Usage

Default ports.

Port VariableDefault Value
MY_DCS_MASTER_PORT
23400
MY_DCS_MASTER_INFO_PORT
24400
MY_REST_SERVER_PORT
4200
MY_REST_SERVER_SECURE_PORT
4201

Command Options.

CommandWhat It Does
install_local_hadoop
Uses default ports for all services.
install_local_hadoop -p fromDisplay
Start Hadoop with a port number range determined from the DISPLAY environment variable.
install_local_hadoop -p rand
Start with any random port number range between 9000 and 49000.
install_local_hadoop -p <port >
Start with the specified port number.

Sample Procedure

Code Block
languagetext
titleIf Starting a New ssh Session
# Ensure that the Trafodion environmental variables have been loaded.
cd <download directory>/incubator-trafodion
source ./env.sh

...

Six java servers and two mysqld processes should be running.

 

Note: 

The 'install_local_hadoop' script downloads Hadoop, HBase, Hive, and MySql jar files from the internet. To avoid this overhead, you can download the required files into a separate directory and set the environment variable MY_LOCAL_SW_DIST to point to this directory.The following options are available with 'install_local_hadoop'. Use the -p option if the default Hadoop ports are already in use on your machine:

...

 

...

...

If you don't specify the -p option, the following default ports are used:
  MY_DCS_MASTER_PORT=23400
MY_DCS_MASTER_INFO_PORT=24400
MY_REST_SERVER_PORT=4200
MY_REST_SERVER_SECURE_PORT=4201

When this script completes, Hadoop, HBase, Hive, and MySql (used as Hive's metadata repository) have been installed and are started. 

To start/stop/check Hadoop environment using Trafodion supplied scripts, you can execute  ‘swstartall’ ,  ‘swstopall’ and ‘swstatus’, and if you need to remove the installation, execute the 'swuninstall_local_hadoop'. 

Use pre-installed Hadoop

 

Run Trafodion

This section describes how to start Trafodion and run operations. 

...