Clone
Hans Zeller <hans.zeller@esgyn.com>
committed
on 13 Oct 15
TRAFODION-1521 Build Trafodion without having HBase installed
Adding a new script, core/sqf/sql/scripts/get_libhdfs_files. The new
script wi… Show more
TRAFODION-1521 Build Trafodion without having HBase installed

Adding a new script, core/sqf/sql/scripts/get_libhdfs_files. The new

script will download Google Protocol Buffers 2.5.0 and a source tar

file for Hadoop and build protobuf-2.5.0 and the Hadoop native

libraries. It will then copy the libraries (libhadoop.so and

libhdfs.so) to $MY_SQROOT/export/lib$ {SQ_MBTYPE}. It will also copy

the include file hdfs.h to $MY_SQROOT/include. Since this step is very

time-consuming, it takes a shortcut if Hadoop is installed

(e.g. with install_local_hadoop), in that case it will copy the

existing native libraries.  To address the remaining needs for jar

files during the build, the hbasetmlib2 build is converted to

Maven.  We also remove the case in sqenvcom.sh where a

configuration does not have install_local_hadoop, Cloudera,

Hortonworks or MapR installed, but has a TOOLSDIR. Such cases should

use the recently added case for a native Apache Hadoop installation or

the case where no HBase installation is found. That last case will

print out a reminder that can be ignored.

Note: Users will need to do "sqgen" to update their classpath. This is

because we need a new jar in the classpath: trafodion-dtm-1.2.0.jar.

Show less

default + 8 more