FAQ
Hello,

I was able to resolve one issue yesterday with help from the community.
Today, I have something new. When I do ./build_public.sh, I get the
following error dump. I'm on Ubuntu 12.04.

[ 92%] Built target hash-table-test
Linking CXX executable ../../build/debug/runtime/disk-io-mgr-stress-test
CMakeFiles/expr-benchmark.dir/expr-benchmark.cc.o: In function `Planner':
/home/ubuntu/Software/impala/be/src/exprs/expr-benchmark.cc:42: undefined
reference to `getJNIEnv'
CMakeFiles/expr-benchmark.dir/expr-benchmark.cc.o: In function
`Planner::GeneratePlan(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, impala::TExecRequest*)':
/home/ubuntu/Software/impala/be/src/exprs/expr-benchmark.cc:63: undefined
reference to `getJNIEnv'
../../build/debug/util/libUtil.a(jni-util.cc.o): In function
`impala::JniUtil::Init()':
/home/ubuntu/Software/impala/be/src/util/jni-util.cc:47: undefined
reference to `getJNIEnv'
../../build/debug/util/libUtil.a(jni-util.cc.o): In function
`impala::JniUtil::InitLibhdfs()':
/home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
reference to `hdfsConnect'
/home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
reference to `hdfsDisconnect'
../../build/debug/util/libUtil.a(jni-util.cc.o): In function
`impala::JniUtil::Cleanup()':
/home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
reference to `getJNIEnv'
collect2: ld returned 1 exit status
make[2]: *** [be/build/debug/exprs/expr-benchmark] Error 1
make[1]: *** [be/src/exprs/CMakeFiles/expr-benchmark.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
`impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
impala::DiskIoMgr::ScanRange*) const':
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850: undefined
reference to `hdfsOpenFile'
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855: undefined
reference to `hdfsSeek'
../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
`impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
impala::DiskIoMgr::ScanRange*) const':
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887: undefined
reference to `hdfsCloseFile'
../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
`impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914: undefined
reference to `hdfsRead'
../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
`impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
/home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
reference to `hdfsGetPathInfo'
/home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
reference to `hdfsFreeFileInfo'
collect2: ld returned 1 exit status
make[2]: *** [be/build/debug/runtime/disk-io-mgr-stress-test] Error 1
make[1]: *** [be/src/runtime/CMakeFiles/disk-io-mgr-stress-test.dir/all]
Error 2
../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
`impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
impala::DiskIoMgr::ScanRange*) const':
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850: undefined
reference to `hdfsOpenFile'
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855: undefined
reference to `hdfsSeek'
../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
`impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
impala::DiskIoMgr::ScanRange*) const':
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887: undefined
reference to `hdfsCloseFile'
../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
`impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914: undefined
reference to `hdfsRead'
../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In function
`impala::HBaseTableCache::Init()':
/home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:36:
undefined reference to `getJNIEnv'
../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In function
`~HBaseTableCache':
/home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:75:
undefined reference to `getJNIEnv'
../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In function
`impala::HBaseTableCache::GetHBaseTable(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:83:
undefined reference to `getJNIEnv'
../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
`~HdfsFsCache':
/home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:35: undefined
reference to `hdfsDisconnect'
../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
`impala::HdfsFsCache::GetConnection(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int)':
/home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:48: undefined
reference to `hdfsConnect'
../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
`impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
/home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
reference to `hdfsGetPathInfo'
/home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
reference to `hdfsFreeFileInfo'
../../build/debug/util/libUtil.a(jni-util.cc.o): In function
`impala::JniUtil::Init()':
/home/ubuntu/Software/impala/be/src/util/jni-util.cc:47: undefined
reference to `getJNIEnv'
../../build/debug/util/libUtil.a(jni-util.cc.o): In function
`impala::JniUtil::InitLibhdfs()':
/home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
reference to `hdfsConnect'
/home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
reference to `hdfsDisconnect'
../../build/debug/util/libUtil.a(jni-util.cc.o): In function
`impala::JniUtil::Cleanup()':
/home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
reference to `getJNIEnv'
collect2: ld returned 1 exit status
make[2]: *** [be/build/debug/runtime/data-stream-test] Error 1
make[1]: *** [be/src/runtime/CMakeFiles/data-stream-test.dir/all] Error 2
../../build/debug/service/libService.a(impala-server.cc.o): In function
`ImpalaServer':
/home/ubuntu/Software/impala/be/src/service/impala-server.cc:531: undefined
reference to `getJNIEnv'
/home/ubuntu/Software/impala/be/src/service/impala-server.cc:531: undefined
reference to `getJNIEnv'
../../build/debug/service/libService.a(impala-server.cc.o): In function
`impala::ImpalaServer::RenderHadoopConfigs(std::map<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::less<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >
const&, std::basic_stringstream<char, std::char_traits<char>,
std::allocator<char> >*)':
/home/ubuntu/Software/impala/be/src/service/impala-server.cc:625: undefined
reference to `getJNIEnv'
../../build/debug/service/libService.a(impala-server.cc.o): In function
`impala::ImpalaServer::GetHadoopConfigValue(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
/home/ubuntu/Software/impala/be/src/service/impala-server.cc:641: undefined
reference to `getJNIEnv'
../../build/debug/service/libService.a(impala-server.cc.o): In function
`impala::ImpalaServer::UpdateMetastore(impala::TCatalogUpdate const&)':
/home/ubuntu/Software/impala/be/src/service/impala-server.cc:1063:
undefined reference to `getJNIEnv'
../../build/debug/service/libService.a(impala-server.cc.o):/home/ubuntu/Software/impala/be/src/service/impala-server.cc:1082:
more undefined references to `getJNIEnv' follow
../../build/debug/util/libUtil.a(jni-util.cc.o): In function
`impala::JniUtil::InitLibhdfs()':
/home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
reference to `hdfsConnect'
/home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
reference to `hdfsDisconnect'
../../build/debug/util/libUtil.a(jni-util.cc.o): In function
`impala::JniUtil::Cleanup()':
/home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
reference to `getJNIEnv'
../../build/debug/runtime/libRuntime.a(coordinator.cc.o): In function
`impala::Coordinator::FinalizeQuery()':
/home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:494: undefined
reference to `hdfsListDirectory'
/home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:502: undefined
reference to `hdfsDelete'
/home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:510: undefined
reference to `hdfsFreeFileInfo'
/home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:515: undefined
reference to `hdfsExists'
/home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:518: undefined
reference to `hdfsDelete'
/home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:526: undefined
reference to `hdfsCreateDirectory'
/home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:539: undefined
reference to `hdfsRename'
/home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:550: undefined
reference to `hdfsDelete'
../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In function
`impala::HBaseTableCache::Init()':
/home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:36:
undefined reference to `getJNIEnv'
../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In function
`~HBaseTableCache':
/home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:75:
undefined reference to `getJNIEnv'
../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In function
`impala::HBaseTableCache::GetHBaseTable(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:83:
undefined reference to `getJNIEnv'
../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
`~HdfsFsCache':
/home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:35: undefined
reference to `hdfsDisconnect'
../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
`impala::HdfsFsCache::GetConnection(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int)':
/home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:48: undefined
reference to `hdfsConnect'
../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
`impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
impala::DiskIoMgr::ScanRange*) const':
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850: undefined
reference to `hdfsOpenFile'
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855: undefined
reference to `hdfsSeek'
../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
`impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
impala::DiskIoMgr::ScanRange*) const':
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887: undefined
reference to `hdfsCloseFile'
../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
`impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
/home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914: undefined
reference to `hdfsRead'
../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
`impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
/home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
reference to `hdfsGetPathInfo'
/home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
reference to `hdfsFreeFileInfo'
../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
`impala::HdfsTableSink::CreateNewTmpFile(impala::RuntimeState*,
impala::OutputPartition*)':
/home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:226: undefined
reference to `hdfsExists'
/home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:232: undefined
reference to `hdfsOpenFile'
../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
`impala::HdfsTableSink::FinalizePartitionFile(impala::RuntimeState*,
impala::OutputPartition*)':
/home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:388: undefined
reference to `hdfsCloseFile'
../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
`impala::HdfsTableSink::GetFileBlockSize(impala::OutputPartition*, long*)':
/home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:410: undefined
reference to `hdfsGetPathInfo'
/home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:420: undefined
reference to `hdfsFreeFileInfo'
../../build/debug/exec/libExec.a(hdfs-trevni-table-writer.cc.o): In
function `impala::HdfsTrevniTableWriter::WriteFileHeader()':
/home/ubuntu/Software/impala/be/src/exec/hdfs-trevni-table-writer.cc:446:
undefined reference to `hdfsTell'
../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
`impala::HBaseScanNode::Open(impala::RuntimeState*)':
/home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:103: undefined
reference to `getJNIEnv'
../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
`impala::HBaseScanNode::GetNext(impala::RuntimeState*, impala::RowBatch*,
bool*)':
/home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:149: undefined
reference to `getJNIEnv'
../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
`impala::HBaseScanNode::Close(impala::RuntimeState*)':
/home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:245: undefined
reference to `getJNIEnv'
../../build/debug/exec/libExec.a(hbase-table-scanner.cc.o): In function
`impala::HBaseTableScanner::Init()':
/home/ubuntu/Software/impala/be/src/exec/hbase-table-scanner.cc:106:
undefined reference to `getJNIEnv'
../../build/debug/exec/libExec.a(hdfs-table-writer.cc.o): In function
`impala::HdfsTableWriter::Write(unsigned char const*, int)':
/home/ubuntu/Software/impala/be/src/exec/hdfs-table-writer.cc:32: undefined
reference to `hdfsWrite'
collect2: ld returned 1 exit status
make[2]: *** [be/build/debug/exprs/expr-test] Error 1
make[1]: *** [be/src/exprs/CMakeFiles/expr-test.dir/all] Error 2
make: *** [all] Error 2


Thanks,
Harish

Search Discussions

  • Lenni Kuff at Feb 26, 2013 at 5:14 pm
    Hi Harish,
    Yesterday we moved from CDH4.1.3 to CDH4.2 as the hadoop bits under
    IMPALA_HOME/thirdparty. The files included in the tarball have changed
    slightly from CDH4.1.3; namely the hadoop native libraries are no longer
    included. I am currently testing a fix to build these libraries as part of
    the "bin/build_thirdparty.sh" script. The fix should be pushed within the
    next few minutes.

    Thanks,
    Lenni
    Software Engineer - Cloudera
    On Tue, Feb 26, 2013 at 9:05 AM, Harish Mandala wrote:

    Hello,

    I was able to resolve one issue yesterday with help from the community.
    Today, I have something new. When I do ./build_public.sh, I get the
    following error dump. I'm on Ubuntu 12.04.

    [ 92%] Built target hash-table-test
    Linking CXX executable ../../build/debug/runtime/disk-io-mgr-stress-test
    CMakeFiles/expr-benchmark.dir/expr-benchmark.cc.o: In function `Planner':
    /home/ubuntu/Software/impala/be/src/exprs/expr-benchmark.cc:42: undefined
    reference to `getJNIEnv'
    CMakeFiles/expr-benchmark.dir/expr-benchmark.cc.o: In function
    `Planner::GeneratePlan(std::basic_string<char, std::char_traits<char>,
    std::allocator<char> > const&, impala::TExecRequest*)':
    /home/ubuntu/Software/impala/be/src/exprs/expr-benchmark.cc:63: undefined
    reference to `getJNIEnv'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Init()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:47: undefined
    reference to `getJNIEnv'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::InitLibhdfs()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
    reference to `hdfsConnect'
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
    reference to `hdfsDisconnect'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Cleanup()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
    reference to `getJNIEnv'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/exprs/expr-benchmark] Error 1
    make[1]: *** [be/src/exprs/CMakeFiles/expr-benchmark.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850: undefined
    reference to `hdfsOpenFile'
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855: undefined
    reference to `hdfsSeek'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887: undefined
    reference to `hdfsCloseFile'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914: undefined
    reference to `hdfsRead'
    ../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
    `impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
    reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
    reference to `hdfsFreeFileInfo'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/runtime/disk-io-mgr-stress-test] Error 1
    make[1]: *** [be/src/runtime/CMakeFiles/disk-io-mgr-stress-test.dir/all]
    Error 2
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850: undefined
    reference to `hdfsOpenFile'
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855: undefined
    reference to `hdfsSeek'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887: undefined
    reference to `hdfsCloseFile'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914: undefined
    reference to `hdfsRead'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::Init()':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:36:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `~HBaseTableCache':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:75:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::GetHBaseTable(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&)':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:83:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `~HdfsFsCache':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:35: undefined
    reference to `hdfsDisconnect'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `impala::HdfsFsCache::GetConnection(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&, int)':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:48: undefined
    reference to `hdfsConnect'
    ../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
    `impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
    reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
    reference to `hdfsFreeFileInfo'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Init()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:47: undefined
    reference to `getJNIEnv'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::InitLibhdfs()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
    reference to `hdfsConnect'
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
    reference to `hdfsDisconnect'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Cleanup()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
    reference to `getJNIEnv'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/runtime/data-stream-test] Error 1
    make[1]: *** [be/src/runtime/CMakeFiles/data-stream-test.dir/all] Error 2
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `ImpalaServer':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:531:
    undefined reference to `getJNIEnv'
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:531:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `impala::ImpalaServer::RenderHadoopConfigs(std::map<std::basic_string<char,
    std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
    std::char_traits<char>, std::allocator<char> >,
    std::less<std::basic_string<char, std::char_traits<char>,
    std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const,
    std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >
    const&, std::basic_stringstream<char, std::char_traits<char>,
    std::allocator<char> >*)':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:625:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `impala::ImpalaServer::GetHadoopConfigValue(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&,
    std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:641:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `impala::ImpalaServer::UpdateMetastore(impala::TCatalogUpdate const&)':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:1063:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o):/home/ubuntu/Software/impala/be/src/service/impala-server.cc:1082:
    more undefined references to `getJNIEnv' follow
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::InitLibhdfs()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
    reference to `hdfsConnect'
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
    reference to `hdfsDisconnect'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Cleanup()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
    reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(coordinator.cc.o): In function
    `impala::Coordinator::FinalizeQuery()':
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:494: undefined
    reference to `hdfsListDirectory'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:502: undefined
    reference to `hdfsDelete'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:510: undefined
    reference to `hdfsFreeFileInfo'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:515: undefined
    reference to `hdfsExists'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:518: undefined
    reference to `hdfsDelete'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:526: undefined
    reference to `hdfsCreateDirectory'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:539: undefined
    reference to `hdfsRename'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:550: undefined
    reference to `hdfsDelete'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::Init()':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:36:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `~HBaseTableCache':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:75:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::GetHBaseTable(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&)':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:83:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `~HdfsFsCache':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:35: undefined
    reference to `hdfsDisconnect'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `impala::HdfsFsCache::GetConnection(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&, int)':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:48: undefined
    reference to `hdfsConnect'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850: undefined
    reference to `hdfsOpenFile'
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855: undefined
    reference to `hdfsSeek'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887: undefined
    reference to `hdfsCloseFile'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914: undefined
    reference to `hdfsRead'
    ../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
    `impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
    reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
    reference to `hdfsFreeFileInfo'
    ../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
    `impala::HdfsTableSink::CreateNewTmpFile(impala::RuntimeState*,
    impala::OutputPartition*)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:226: undefined
    reference to `hdfsExists'
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:232: undefined
    reference to `hdfsOpenFile'
    ../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
    `impala::HdfsTableSink::FinalizePartitionFile(impala::RuntimeState*,
    impala::OutputPartition*)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:388: undefined
    reference to `hdfsCloseFile'
    ../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
    `impala::HdfsTableSink::GetFileBlockSize(impala::OutputPartition*, long*)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:410: undefined
    reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:420: undefined
    reference to `hdfsFreeFileInfo'
    ../../build/debug/exec/libExec.a(hdfs-trevni-table-writer.cc.o): In
    function `impala::HdfsTrevniTableWriter::WriteFileHeader()':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-trevni-table-writer.cc:446:
    undefined reference to `hdfsTell'
    ../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
    `impala::HBaseScanNode::Open(impala::RuntimeState*)':
    /home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:103: undefined
    reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
    `impala::HBaseScanNode::GetNext(impala::RuntimeState*, impala::RowBatch*,
    bool*)':
    /home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:149: undefined
    reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
    `impala::HBaseScanNode::Close(impala::RuntimeState*)':
    /home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:245: undefined
    reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hbase-table-scanner.cc.o): In function
    `impala::HBaseTableScanner::Init()':
    /home/ubuntu/Software/impala/be/src/exec/hbase-table-scanner.cc:106:
    undefined reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hdfs-table-writer.cc.o): In function
    `impala::HdfsTableWriter::Write(unsigned char const*, int)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-writer.cc:32:
    undefined reference to `hdfsWrite'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/exprs/expr-test] Error 1
    make[1]: *** [be/src/exprs/CMakeFiles/expr-test.dir/all] Error 2
    make: *** [all] Error 2


    Thanks,
    Harish
  • Lenni Kuff at Feb 26, 2013 at 5:21 pm
    Hi Harish,
    The fix has been pushed. After you rebase, you will need to download and
    rebuild the thirdparty libraries using the following steps:
    Download required third-party packages

    cd thirdparty
    ./download_thirdparty.sh

    <https://github.com/cloudera/impala#build-impala>Build Impala

    cd ${IMPALA_HOME}
    ./build_public.sh -build_thirdparty


    Let me know if you run into any more issues.

    Thanks,
    Lenni
    Software Engineer - Cloudera
    On Tue, Feb 26, 2013 at 9:14 AM, Lenni Kuff wrote:

    Hi Harish,
    Yesterday we moved from CDH4.1.3 to CDH4.2 as the hadoop bits under
    IMPALA_HOME/thirdparty. The files included in the tarball have changed
    slightly from CDH4.1.3; namely the hadoop native libraries are no longer
    included. I am currently testing a fix to build these libraries as part of
    the "bin/build_thirdparty.sh" script. The fix should be pushed within the
    next few minutes.

    Thanks,
    Lenni
    Software Engineer - Cloudera

    On Tue, Feb 26, 2013 at 9:05 AM, Harish Mandala wrote:

    Hello,

    I was able to resolve one issue yesterday with help from the community.
    Today, I have something new. When I do ./build_public.sh, I get the
    following error dump. I'm on Ubuntu 12.04.

    [ 92%] Built target hash-table-test
    Linking CXX executable ../../build/debug/runtime/disk-io-mgr-stress-test
    CMakeFiles/expr-benchmark.dir/expr-benchmark.cc.o: In function `Planner':
    /home/ubuntu/Software/impala/be/src/exprs/expr-benchmark.cc:42: undefined
    reference to `getJNIEnv'
    CMakeFiles/expr-benchmark.dir/expr-benchmark.cc.o: In function
    `Planner::GeneratePlan(std::basic_string<char, std::char_traits<char>,
    std::allocator<char> > const&, impala::TExecRequest*)':
    /home/ubuntu/Software/impala/be/src/exprs/expr-benchmark.cc:63: undefined
    reference to `getJNIEnv'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Init()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:47: undefined
    reference to `getJNIEnv'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::InitLibhdfs()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
    reference to `hdfsConnect'
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
    reference to `hdfsDisconnect'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Cleanup()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
    reference to `getJNIEnv'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/exprs/expr-benchmark] Error 1
    make[1]: *** [be/src/exprs/CMakeFiles/expr-benchmark.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850: undefined
    reference to `hdfsOpenFile'
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855: undefined
    reference to `hdfsSeek'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887: undefined
    reference to `hdfsCloseFile'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914: undefined
    reference to `hdfsRead'
    ../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
    `impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
    reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
    reference to `hdfsFreeFileInfo'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/runtime/disk-io-mgr-stress-test] Error 1
    make[1]: *** [be/src/runtime/CMakeFiles/disk-io-mgr-stress-test.dir/all]
    Error 2
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850: undefined
    reference to `hdfsOpenFile'
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855: undefined
    reference to `hdfsSeek'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887: undefined
    reference to `hdfsCloseFile'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914: undefined
    reference to `hdfsRead'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::Init()':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:36:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `~HBaseTableCache':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:75:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::GetHBaseTable(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&)':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:83:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `~HdfsFsCache':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:35:
    undefined reference to `hdfsDisconnect'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `impala::HdfsFsCache::GetConnection(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&, int)':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:48:
    undefined reference to `hdfsConnect'
    ../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
    `impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
    reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
    reference to `hdfsFreeFileInfo'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Init()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:47: undefined
    reference to `getJNIEnv'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::InitLibhdfs()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
    reference to `hdfsConnect'
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
    reference to `hdfsDisconnect'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Cleanup()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
    reference to `getJNIEnv'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/runtime/data-stream-test] Error 1
    make[1]: *** [be/src/runtime/CMakeFiles/data-stream-test.dir/all] Error 2
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `ImpalaServer':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:531:
    undefined reference to `getJNIEnv'
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:531:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `impala::ImpalaServer::RenderHadoopConfigs(std::map<std::basic_string<char,
    std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
    std::char_traits<char>, std::allocator<char> >,
    std::less<std::basic_string<char, std::char_traits<char>,
    std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const,
    std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >
    const&, std::basic_stringstream<char, std::char_traits<char>,
    std::allocator<char> >*)':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:625:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `impala::ImpalaServer::GetHadoopConfigValue(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&,
    std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:641:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `impala::ImpalaServer::UpdateMetastore(impala::TCatalogUpdate const&)':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:1063:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o):/home/ubuntu/Software/impala/be/src/service/impala-server.cc:1082:
    more undefined references to `getJNIEnv' follow
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::InitLibhdfs()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
    reference to `hdfsConnect'
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
    reference to `hdfsDisconnect'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Cleanup()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
    reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(coordinator.cc.o): In function
    `impala::Coordinator::FinalizeQuery()':
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:494: undefined
    reference to `hdfsListDirectory'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:502: undefined
    reference to `hdfsDelete'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:510: undefined
    reference to `hdfsFreeFileInfo'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:515: undefined
    reference to `hdfsExists'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:518: undefined
    reference to `hdfsDelete'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:526: undefined
    reference to `hdfsCreateDirectory'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:539: undefined
    reference to `hdfsRename'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:550: undefined
    reference to `hdfsDelete'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::Init()':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:36:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `~HBaseTableCache':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:75:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::GetHBaseTable(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&)':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:83:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `~HdfsFsCache':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:35:
    undefined reference to `hdfsDisconnect'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `impala::HdfsFsCache::GetConnection(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&, int)':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:48:
    undefined reference to `hdfsConnect'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850: undefined
    reference to `hdfsOpenFile'
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855: undefined
    reference to `hdfsSeek'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887: undefined
    reference to `hdfsCloseFile'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914: undefined
    reference to `hdfsRead'
    ../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
    `impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
    reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
    reference to `hdfsFreeFileInfo'
    ../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
    `impala::HdfsTableSink::CreateNewTmpFile(impala::RuntimeState*,
    impala::OutputPartition*)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:226:
    undefined reference to `hdfsExists'
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:232:
    undefined reference to `hdfsOpenFile'
    ../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
    `impala::HdfsTableSink::FinalizePartitionFile(impala::RuntimeState*,
    impala::OutputPartition*)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:388:
    undefined reference to `hdfsCloseFile'
    ../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
    `impala::HdfsTableSink::GetFileBlockSize(impala::OutputPartition*, long*)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:410:
    undefined reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:420:
    undefined reference to `hdfsFreeFileInfo'
    ../../build/debug/exec/libExec.a(hdfs-trevni-table-writer.cc.o): In
    function `impala::HdfsTrevniTableWriter::WriteFileHeader()':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-trevni-table-writer.cc:446:
    undefined reference to `hdfsTell'
    ../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
    `impala::HBaseScanNode::Open(impala::RuntimeState*)':
    /home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:103:
    undefined reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
    `impala::HBaseScanNode::GetNext(impala::RuntimeState*, impala::RowBatch*,
    bool*)':
    /home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:149:
    undefined reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
    `impala::HBaseScanNode::Close(impala::RuntimeState*)':
    /home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:245:
    undefined reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hbase-table-scanner.cc.o): In function
    `impala::HBaseTableScanner::Init()':
    /home/ubuntu/Software/impala/be/src/exec/hbase-table-scanner.cc:106:
    undefined reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hdfs-table-writer.cc.o): In function
    `impala::HdfsTableWriter::Write(unsigned char const*, int)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-writer.cc:32:
    undefined reference to `hdfsWrite'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/exprs/expr-test] Error 1
    make[1]: *** [be/src/exprs/CMakeFiles/expr-test.dir/all] Error 2
    make: *** [all] Error 2


    Thanks,
    Harish
  • Harish Mandala at Feb 26, 2013 at 6:17 pm
    Thanks for the quick response.

    ./build_public.sh -build_thirdparty

    worked, and the backend compiled successfully. However, the backend
    compilation fails when I subsequently run ./build_public.sh (without
    rebuilding the third party packages).

    Also, the front-end maven compilation fails. I'm going to post that
    separately.

    Thanks again,
    Harish

    मंगलवार, 26 फरवरी 2013 12:21:32 pm UTC-5 को, lskuff ने लिखा:
    Hi Harish,
    The fix has been pushed. After you rebase, you will need to download and
    rebuild the thirdparty libraries using the following steps:
    Download required third-party packages

    cd thirdparty
    ./download_thirdparty.sh

    <https://github.com/cloudera/impala#build-impala>Build Impala

    cd ${IMPALA_HOME}
    ./build_public.sh -build_thirdparty


    Let me know if you run into any more issues.

    Thanks,
    Lenni
    Software Engineer - Cloudera

    On Tue, Feb 26, 2013 at 9:14 AM, Lenni Kuff <lsk...@cloudera.com<javascript:>
    wrote:
    Hi Harish,
    Yesterday we moved from CDH4.1.3 to CDH4.2 as the hadoop bits under
    IMPALA_HOME/thirdparty. The files included in the tarball have changed
    slightly from CDH4.1.3; namely the hadoop native libraries are no longer
    included. I am currently testing a fix to build these libraries as part of
    the "bin/build_thirdparty.sh" script. The fix should be pushed within the
    next few minutes.

    Thanks,
    Lenni
    Software Engineer - Cloudera


    On Tue, Feb 26, 2013 at 9:05 AM, Harish Mandala <mvhari...@gmail.com<javascript:>
    wrote:
    Hello,

    I was able to resolve one issue yesterday with help from the community.
    Today, I have something new. When I do ./build_public.sh, I get the
    following error dump. I'm on Ubuntu 12.04.

    [ 92%] Built target hash-table-test
    Linking CXX executable ../../build/debug/runtime/disk-io-mgr-stress-test
    CMakeFiles/expr-benchmark.dir/expr-benchmark.cc.o: In function `Planner':
    /home/ubuntu/Software/impala/be/src/exprs/expr-benchmark.cc:42:
    undefined reference to `getJNIEnv'
    CMakeFiles/expr-benchmark.dir/expr-benchmark.cc.o: In function
    `Planner::GeneratePlan(std::basic_string<char, std::char_traits<char>,
    std::allocator<char> > const&, impala::TExecRequest*)':
    /home/ubuntu/Software/impala/be/src/exprs/expr-benchmark.cc:63:
    undefined reference to `getJNIEnv'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Init()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:47: undefined
    reference to `getJNIEnv'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::InitLibhdfs()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
    reference to `hdfsConnect'
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
    reference to `hdfsDisconnect'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Cleanup()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
    reference to `getJNIEnv'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/exprs/expr-benchmark] Error 1
    make[1]: *** [be/src/exprs/CMakeFiles/expr-benchmark.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850:
    undefined reference to `hdfsOpenFile'
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855:
    undefined reference to `hdfsSeek'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887:
    undefined reference to `hdfsCloseFile'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914:
    undefined reference to `hdfsRead'
    ../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
    `impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
    reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
    reference to `hdfsFreeFileInfo'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/runtime/disk-io-mgr-stress-test] Error 1
    make[1]: *** [be/src/runtime/CMakeFiles/disk-io-mgr-stress-test.dir/all]
    Error 2
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850:
    undefined reference to `hdfsOpenFile'
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855:
    undefined reference to `hdfsSeek'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887:
    undefined reference to `hdfsCloseFile'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914:
    undefined reference to `hdfsRead'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::Init()':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:36:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `~HBaseTableCache':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:75:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::GetHBaseTable(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&)':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:83:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `~HdfsFsCache':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:35:
    undefined reference to `hdfsDisconnect'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `impala::HdfsFsCache::GetConnection(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&, int)':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:48:
    undefined reference to `hdfsConnect'
    ../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
    `impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
    reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
    reference to `hdfsFreeFileInfo'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Init()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:47: undefined
    reference to `getJNIEnv'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::InitLibhdfs()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
    reference to `hdfsConnect'
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
    reference to `hdfsDisconnect'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Cleanup()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
    reference to `getJNIEnv'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/runtime/data-stream-test] Error 1
    make[1]: *** [be/src/runtime/CMakeFiles/data-stream-test.dir/all] Error 2
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `ImpalaServer':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:531:
    undefined reference to `getJNIEnv'
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:531:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `impala::ImpalaServer::RenderHadoopConfigs(std::map<std::basic_string<char,
    std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
    std::char_traits<char>, std::allocator<char> >,
    std::less<std::basic_string<char, std::char_traits<char>,
    std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const,
    std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >
    const&, std::basic_stringstream<char, std::char_traits<char>,
    std::allocator<char> >*)':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:625:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `impala::ImpalaServer::GetHadoopConfigValue(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&,
    std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:641:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o): In function
    `impala::ImpalaServer::UpdateMetastore(impala::TCatalogUpdate const&)':
    /home/ubuntu/Software/impala/be/src/service/impala-server.cc:1063:
    undefined reference to `getJNIEnv'
    ../../build/debug/service/libService.a(impala-server.cc.o):/home/ubuntu/Software/impala/be/src/service/impala-server.cc:1082:
    more undefined references to `getJNIEnv' follow
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::InitLibhdfs()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:83: undefined
    reference to `hdfsConnect'
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:84: undefined
    reference to `hdfsDisconnect'
    ../../build/debug/util/libUtil.a(jni-util.cc.o): In function
    `impala::JniUtil::Cleanup()':
    /home/ubuntu/Software/impala/be/src/util/jni-util.cc:89: undefined
    reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(coordinator.cc.o): In function
    `impala::Coordinator::FinalizeQuery()':
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:494:
    undefined reference to `hdfsListDirectory'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:502:
    undefined reference to `hdfsDelete'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:510:
    undefined reference to `hdfsFreeFileInfo'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:515:
    undefined reference to `hdfsExists'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:518:
    undefined reference to `hdfsDelete'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:526:
    undefined reference to `hdfsCreateDirectory'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:539:
    undefined reference to `hdfsRename'
    /home/ubuntu/Software/impala/be/src/runtime/coordinator.cc:550:
    undefined reference to `hdfsDelete'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::Init()':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:36:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `~HBaseTableCache':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:75:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hbase-table-cache.cc.o): In
    function `impala::HBaseTableCache::GetHBaseTable(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&)':
    /home/ubuntu/Software/impala/be/src/runtime/hbase-table-cache.cc:83:
    undefined reference to `getJNIEnv'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `~HdfsFsCache':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:35:
    undefined reference to `hdfsDisconnect'
    ../../build/debug/runtime/libRuntime.a(hdfs-fs-cache.cc.o): In function
    `impala::HdfsFsCache::GetConnection(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&, int)':
    /home/ubuntu/Software/impala/be/src/runtime/hdfs-fs-cache.cc:48:
    undefined reference to `hdfsConnect'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::OpenScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:850:
    undefined reference to `hdfsOpenFile'
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:855:
    undefined reference to `hdfsSeek'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::CloseScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*) const':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:887:
    undefined reference to `hdfsCloseFile'
    ../../build/debug/runtime/libRuntime.a(disk-io-mgr.cc.o): In function
    `impala::DiskIoMgr::ReadFromScanRange(hdfs_internal*,
    impala::DiskIoMgr::ScanRange*, char*, long*, bool*)':
    /home/ubuntu/Software/impala/be/src/runtime/disk-io-mgr.cc:914:
    undefined reference to `hdfsRead'
    ../../build/debug/util/libUtil.a(hdfs-util.cc.o): In function
    `impala::GetFileSize(hdfs_internal* const&, char const*, long*)':
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:33: undefined
    reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/util/hdfs-util.cc:42: undefined
    reference to `hdfsFreeFileInfo'
    ../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
    `impala::HdfsTableSink::CreateNewTmpFile(impala::RuntimeState*,
    impala::OutputPartition*)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:226:
    undefined reference to `hdfsExists'
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:232:
    undefined reference to `hdfsOpenFile'
    ../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
    `impala::HdfsTableSink::FinalizePartitionFile(impala::RuntimeState*,
    impala::OutputPartition*)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:388:
    undefined reference to `hdfsCloseFile'
    ../../build/debug/exec/libExec.a(hdfs-table-sink.cc.o): In function
    `impala::HdfsTableSink::GetFileBlockSize(impala::OutputPartition*, long*)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:410:
    undefined reference to `hdfsGetPathInfo'
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-sink.cc:420:
    undefined reference to `hdfsFreeFileInfo'
    ../../build/debug/exec/libExec.a(hdfs-trevni-table-writer.cc.o): In
    function `impala::HdfsTrevniTableWriter::WriteFileHeader()':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-trevni-table-writer.cc:446:
    undefined reference to `hdfsTell'
    ../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
    `impala::HBaseScanNode::Open(impala::RuntimeState*)':
    /home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:103:
    undefined reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
    `impala::HBaseScanNode::GetNext(impala::RuntimeState*, impala::RowBatch*,
    bool*)':
    /home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:149:
    undefined reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hbase-scan-node.cc.o): In function
    `impala::HBaseScanNode::Close(impala::RuntimeState*)':
    /home/ubuntu/Software/impala/be/src/exec/hbase-scan-node.cc:245:
    undefined reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hbase-table-scanner.cc.o): In function
    `impala::HBaseTableScanner::Init()':
    /home/ubuntu/Software/impala/be/src/exec/hbase-table-scanner.cc:106:
    undefined reference to `getJNIEnv'
    ../../build/debug/exec/libExec.a(hdfs-table-writer.cc.o): In function
    `impala::HdfsTableWriter::Write(unsigned char const*, int)':
    /home/ubuntu/Software/impala/be/src/exec/hdfs-table-writer.cc:32:
    undefined reference to `hdfsWrite'
    collect2: ld returned 1 exit status
    make[2]: *** [be/build/debug/exprs/expr-test] Error 1
    make[1]: *** [be/src/exprs/CMakeFiles/expr-test.dir/all] Error 2
    make: *** [all] Error 2


    Thanks,
    Harish

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupimpala-user @
categorieshadoop
postedFeb 26, '13 at 5:05p
activeFeb 26, '13 at 6:17p
posts4
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Lenni Kuff: 2 posts Harish Mandala: 2 posts

People

Translate

site design / logo © 2022 Grokbase