THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
# Before IMPALA-9760, the location is $IMPALA_HOME/toolchain instead. cd $IMPALA_TOOLCHAIN_PACKAGES_HOME # Backup the existing library cp -r orc-${IMPALA_ORC_VERSION} orc-${IMPALA_ORC_VERSION}-bak cd orc-${IMPALA_ORC_VERSION} # Replace the library cp ${ORC_HOME}/build/c++/src/liborc.a lib/liborc.a # Replace the header files rm include/orc/* cp ${ORC_HOME}/build/c++/include/orc/orc-config.hh include/orc/ cp ${ORC_HOME}/c++/include/orc/*.hh include/orc/ # ORC-751 adds another header subdir 'sargs'. Copy it as well. cp -r ${ORC_HOME}/c++/include/orc/sargs include/orc/ # Recompile Impala cd $IMPALA_HOME make -j $(nproc) impalad |
Troubleshooting
1. version GLIBCXX not found
Code Block |
---|
CMake Error at /root/orc/build/protobuf_ep-prefix/src/protobuf_ep-stamp/protobuf_ep-build-RELWITHDEBINFO.cmake:49 (message):
Command failed: 2
'make'
See also
/root/orc/build/protobuf_ep-prefix/src/protobuf_ep-stamp/protobuf_ep-build-*.log
make[2]: *** [protobuf_ep-prefix/src/protobuf_ep-stamp/protobuf_ep-build] Error 1
make[1]: *** [CMakeFiles/protobuf_ep.dir/all] Error 2
make: *** [all] Error 2
$ cat protobuf_ep-prefix/src/protobuf_ep-stamp/protobuf_ep-build-err.log
./js_embed: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./js_embed)
make[5]: *** [/root/orc/build/protobuf_ep-prefix/src/protobuf_ep/src/google/protobuf/compiler/js/well_known_types_embed.cc] Error 1
make[5]: *** Deleting file `/root/orc/build/protobuf_ep-prefix/src/protobuf_ep/src/google/protobuf/compiler/js/well_known_types_embed.cc'
make[4]: *** [CMakeFiles/libprotoc.dir/all] Error 2
make[3]: *** [all] Error 2 |
It's using the system provided libstdc++.so. It should use the one in Impala toolchain. Fix it by providing the path in LD_LIBRARY_PATH, e.g.
Code Block |
---|
export LD_LIBRARY_PATH=/root/Impala/toolchain/toolchain-packages-gcc7.5.0/kudu-f486f0813a/debug/lib |