[ https://issues.apache.org/jira/browse/TRAFODION-1521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14955208#comment-14955208 ]
ASF GitHub Bot commented on TRAFODION-1521: ------------------------------------------- Github user zellerh commented on a diff in the pull request: https://github.com/apache/incubator-trafodion/pull/118#discussion_r41888824 --- Diff: core/sqf/sql/scripts/get_libhdfs_files --- @@ -0,0 +1,186 @@ +#!/bin/sh + +# This script downloads and/or makes the required libhdfs files +# to be able to build Trafodion, which acts as a libhdfs client. +# +# Basically, what we need are three files: +# +# hdfs.h (copied to $TGT_INC_DIR) +# libhdfs.so (copied to $TGT_LIB_DIR) +# libhadoop.so (copied to $TGT_LIB_DIR) + +# Working dir in the Trafodion source tree to extract and build libhdfs files +# (can be specified as an environment variable) +if [[ -z ${LIBHDFS_TEMP_DIR} ]]; then + LIBHDFS_TEMP_DIR=${MY_SQROOT}/sql/libhdfs_files +fi +LOGFILE=${LIBHDFS_TEMP_DIR}/build.log + +# Hadoop source tar file to build libhdfs from +HADOOP_SRC_MIRROR_URL=https://archive.apache.org/dist/hadoop/common/hadoop-2.6.0 +HADOOP_ID=hadoop-2.6.0 +HADOOP_SRC_ID=${HADOOP_ID}-src +HADOOP_SRC_TAR=${HADOOP_SRC_ID}.tar.gz + --- End diff -- It might also have been because at some point Apache started to distribute the 64 bit native library in the binary distribution - that would not be a strong reason of course, since we are building the library here anyway. > Trafodion build should not require HBase to be installed > -------------------------------------------------------- > > Key: TRAFODION-1521 > URL: https://issues.apache.org/jira/browse/TRAFODION-1521 > Project: Apache Trafodion > Issue Type: Bug > Components: sql-general > Affects Versions: 1.1 (pre-incubation) > Environment: Any > Reporter: Hans Zeller > Assignee: Hans Zeller > Labels: build > Fix For: 1.2-incubating > > Original Estimate: 96h > Remaining Estimate: 96h > > When we build Trafodion in a source tree, it should not be necessary to > install HBase first. > Until now, several build steps relied on an HBase installation: > 1. Files in core/sql/executor include the libhdfs header file, hdfs.h. This > file isn't available in the Trafodion source tree. > 2. When we link certain executables like mxosrvr and sqlci, we specify > -lhdfs, requiring the libhdfs.so DLL as well as the DLLs it depends on, > libhadoop.so and libjvm.so. > 3. Until recently, executor Java (core/sql/executor) files were compiled with > javac invocations from a Makefile, requiring the HBase client jar files in > the CLASSPATH. This got changed with TRAFODION-1502. > 4. I missed some more Java files in the fix for TRAFODION-1502: > core/sqf/src/seatrans/tm/hbasetmlib2. Those should also be moved to Maven. -- This message was sent by Atlassian JIRA (v6.3.4#6332)