This page is obsolete. Please refer to http://trafodion.incubator.apache.org (Using tab) for the latest information on how to use Trafodion. |
If you would like to contribute to Trafodion, see instructions: Contribute to the Software.
The source code for Apache Trafodion can be downloaded from Apache Trafodion Incubator release as a tar file. If you wish to contribute, we recommend that you follow instructions described in Contribute to the Software.
Instructions for building Trafodion:
Download the latest version of the Trafodion software binaries from downloads.trafodion.org.
To install the Trafodion software binaries on a cluster, see the instructions in Installation page.
If you wish to build the Trafodion Windows driver, perform the following steps on your Windows machine. We recommend Windows 8 or greater.
perl Configure VC-WIN64A --prefix=c:/openssl-1.0.1p.
copy c:\Traf-WinBld-Tools\openss-1.0.1p\ms\applink.c c:\openssl-1.0.1p\include)
error LNK1118: syntax error in 'VERSION' statement C:\Traf-Windows-bldTools\zlib-master\contrib\vstudio\vc11\zlibvc.def
To resolve the above error, Double click on the error when it opens in the editor change the Version from 1.2.8 to 1.28
VERSION 1.2.8 to VERSION 1.28
Click Save and Build the solution again
Build will succeed
Close the Visual studio solution.
set ZLIB_INCLUDE_PATH=C:\zlib-master\include
set ZLIB_LIB_PATH= C:\Traf-Windows-bldTools\zlib-master\contrib\vstudio\vc11\x64\ZlibStatRelease
set OPENSSL_INCLUDE_PATH= C:\openssl-1.0.1p\include
set OPENSSL_LIB_PATH= C:\openssl-1.0.1p\lib
Run the build script by executing, build_os.bat file
Trafodion ODBC driver executable will be created in c:\Build\win-odbc64 folder
After the successful installation of Trafodion, Trafodion should already be started, initialized, and ready to use. If you need to stop and restart Trafodion, such as to install a new Trafodion build, please use the following commands.
If you started a new ssh session, be sure to setup your environment by:
cd <download directory>/apache-trafodion-1.3.0-incubating
source ./env.sh
CAUTION: You should stop Trafodion when it is idle. If you stop Trafodion while it is busy, there is a possibility of corrupting data and not being able to recover it.
If you are installing a new Trafodion build, you will need to stop the current instance. To shut down the Trafodion instance, log in as the trafodion user and run the sqstop command:
cd $MY_SQROOT/sql/scripts
sqstop
To start the Trafodion instance, log in as the trafodion user and run the sqstart command:
cd $MY_SQROOT/sql/scripts
sqstart
In case of any issues or if there is a need to stop and restart a specific Trafodion component, you can use the component based start/stop scripts.
These scripts exist in $MY_SQROOT/sql/scripts
Component | Start script | Stop script |
For all of Trafodion | sqstart | sqstop |
For DCS (Database Connectivity Service) | dcsstart | dcsstop |
For REST server | reststart | reststop |
For LOB server | lobstart | lobstop |
For RMS server | rmsstart | rmsstop |
|
|
|
There are several health check scripts that are available which will provide the status of Trafodion. They exist in $MY_SQROOT/sql/script :
sqcheck (For all of Trafodion)dcscheck (For Database Connectivity Service)rmscheck (For RMS Server)
Typically, if you have installed Trafodion, you will not need to reinitialize Trafodion. However, if you have purged all your data from Hadoop, you will need to reinitialize Trafodion.
To reinitialize the Trafodion database objects, log in as the trafodion user, start a sqlci session, and run the INITIALIZE TRAFODION command:
sqlci | cat initialize trafodion; exit;
After you successfully install and start running Trafodion, you might want to move data from another relational database management system (RDBMS) to Trafodion. For guidelines, please see Data Loading.
Sample programs that you can build and run against a Trafodion database are packaged with the ODBC and JDBC drivers. To install those drivers, connect to Trafodion, and run the sample programs, please see the Trafodion Client Installation Guide (pdf, 1.12 MB). That guide also explains how to configure various third-party tools to talk to Trafodion. For examples of the Trafodion SQL syntax, please see the Trafodion SQL Reference Manual (pdf, 3.98 MB).
Trafodion works with the OpenCart application, which is an open-source shopping cart solution. In the initial release of the Trafodion OpenCart demo, a limited set of OpenCart features has been implemented to work with Trafodion, mainly a simple shopping example using a guest account. Additional features may be available in future releases of the Trafodion OpenCart demo. See the Trafodion OpenCart Demo Guide (pdf, 1.4 MB) for instructions on how to download, install, configure, and run the Trafodion OpenCart demo.