...
Prepare the Test Environment
It is recommended that you test Trafodion by setting up a local version of Hadoop and installing Trafodion on top. This is enabled by running the 'install_local_hadoop' script.
Run install_local_hadoop
You should test your installation using:
- A local Hadoop environment
- Trafodion installation
You're installation approach depends on whether you already have installed Hadoop.
If Hadoop is Already Installed
Build binary tar files and then install Trafodion following instructions described in Installation.
Code Block | ||||
---|---|---|---|---|
| ||||
cd <download directory>/incubator-trafodion
make package |
The binary tar files will be created in <download directory>/incubator-trafodion/distribution directory.
Install a Local Hadoop Environment
The install_local_hadoop script This section describes the steps to use the Trafodion installation script called 'install_local_hadoop' that downloads compatible versions of Hadoop, HBase, Hive, and MySql and MySQL. Then, it starts Trafodion.If you started a new ssh session, be sure to
cd <download directory>/apache-trafodion-1.3.0-incubating
source .
Code Block | ||||
---|---|---|---|---|
| ||||
# Ensure that the Trafodion environmental variables have been loaded. cd <download directory>/incubator-trafodion source ./env.sh |
Make sure you have You need to ensure that you've set up password less authentication. You should be able to "ssh localhost" without having to enter a password. To setup passwordless authentication: ssh-keygen -t rsa -N "" -f $HOMEpasswordless authentication.
Code Block | ||||
---|---|---|---|---|
| ||||
ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 88:f7:90:fe:35:76:10:92:cf:6d:c4:60:ca:b9:43:9f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
gtapper@localhost's password:
Last login: Fri Nov 6 22:44:00 2015 from 192.168.1.9 |
Code Block | ||||
---|---|---|---|---|
| ||||
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa |
...
cat ~/.ssh/id_rsa.pub >> |
...
~/.ssh/authorized_ |
...
keys |
Install hadoop
...
the Hadoop software.
Code Block | ||
---|---|---|
| ||
cd $MY_SQROOT/sql/scripts |
...
install_local_hadoop |
...
./install_traf_ |
...
components |
Verify installation.
Code Block | ||
---|---|---|
| ||
swstatus |
Six java servers and two mysqld processes should be running.
Verify that the install completed by running the following command - should report: 6 java servers and 2 mysqld processes are running
swstatus
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.
...
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
...
installed
...
Hadoop
...
cd <download directory>/apache-trafodion-1.3.0-incubating
make package
Your binary tar files will be created in <download directory>/apache-trafodion-1.3.0-incubating/distribution directory.
Run Trafodion
This section describes how to start Trafodion and run operations.
...