Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning
titleObsolete Page

This page is being obsoleted and is replaced by: http://trafodion.apache.org/build.html

Panel
borderColorgray
borderWidth1
borderStylesolid

Describes the steps required to build and run Apache Trafodion.

...

Code Block
languagebash
$ echo $JAVA_HOME
 
$ export JAVA_HOME=/usr/binlib/jvm/java-1.7.0-openjdk.x86_64

...

If not found, then added it to your path.  For ease of use, you should add it to .bashrc or .profile.  Example:

  PATH=$PATH:<tool installation directory>/apache-maven-3.3.3/bin

Build Trafodion

Note
You should add Maven to your PATH in your .bashrc or .profile file.

Build Trafodion

Start a Start a new ssh session. Use the following commands to set up the Trafodion environmental variables.The

  • <Trafodion source directory> is source tree base for Trafodion.

...

  • <tools installation directory> is where Trafodion required tools

...

This will build a debug version of Trafodion.

...

  • are located.   The following example assumes that you installed all the required tools in a single location.  If you installed or used pre-installed tools in different directories, then you need to export the location of each tool as described Required Build Tools prior to sourcing in env.sh.
Code Block
languagetext
cd <Trafodion source directory>
export TOOLSDIR=<tools installation directory>
source ./env.sh
 

 

Build a debug version of Trafodion using one of the following options:

CommandWhat It Builds
make all
Trafodion, DCS, and REST.
make package
Trafodion, DCS, REST, and Client Drivers.
make package-all
Trafodion, DCS, REST, Client Drivers, and tests for all components.

 

If the build fails, you might want to rerun the make step.  Trafodion downloads many dependencies and sometimes one of the download operations fail.  Rerunning the build generally works.

...

Code Block
languagetext
titleVerify Build
$ sqvers -u
MY_SQROOT=/home/centos/apache-trafodion-1.3.0-incubating/core/sqf
who@host=centos@mysystem
JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91.x86_64
SQ_MBTYPE=64d (64-debug)
linux=2.6.32-504.1.3.el6.x86_64
redhat=6.7
NO patches
Most common Apache_Trafodion Release 1.3.0 (Build debug [centos], branch -, date 06Nov15)
UTT count is 1
[76]     Release 1.3.0 (Build debug [centos], branch -, date 06Nov15)
          export/lib/hbase-trx-cdh5_3-1.3.0.jar
          export/lib/hbase-trx-hbase_98_4-1.3.0.jar
          export/lib/hbase-trx-hdp2_2-1.3.0.jar
          export/lib/hbase-trx-mapr4_0-1.3.0.jar
          export/lib/sqmanvers.jar
          export/lib/trafodion-dtm-1.3.0.jar
          export/lib/trafodion-sql-1.3.0.jar

...