clickhouse20.3.19.4-ARM版本简单修改重新编译,以支持kafka引擎表

clickhouse20.3.19.4的ARM版本默认是不支持kafka引擎表的,记得大概是从21.2(具体v21.2.2.8-stable,2021-02-07)才开始允许在ARM64上编译时支持kafka。在ARM服务器下的编译过程,可参考大神的博客:传送门。下面简单介绍一下怎么利用新版本代码合入20版本,以支持kafka引擎表(!!注意:这么编译出来的版本,不支持自定义分隔符,也就是说,建kafka引擎表时,不能识别format_csv_delimiter参数):

如下示例中,我的编译环境代码放在/home/clickhouse/ckdir/下,21版本的代码就是在/home/clickhouse/ckdir/ClickHouse-21.3.11.5-lts下,20版本代码在/home/clickhouse/ckdir/ClickHouse-20.3.19.4-lts下。修改如下:

cp /home/clickhouse/ckdir/ClickHouse-21.3.11.5-lts/base/glibc-compatibility/CMakeLists.txt /home/clickhouse/ckdir/ClickHouse-20.3.19.4-lts/base/glibc-compatibility/CMakeLists.txt

cp /home/clickhouse/ckdir/ClickHouse-21.3.11.5-lts/cmake/find/rdkafka.cmake /home/clickhouse/ckdir/ClickHouse-20.3.19.4-lts/cmake/find/rdkafka.cmake

rm -rf /home/clickhouse/ckdir/ClickHouse-20.3.19.4-lts/contrib/librdkafka-cmake

cp -r /home/clickhouse/ckdir/ClickHouse-21.3.11.5-lts/contrib/librdkafka-cmake/  /home/clickhouse/ckdir/ClickHouse-20.3.19.4-lts/contrib/

rm -rf /home/clickhouse/ckdir/ClickHouse-20.3.19.4-lts/contrib/librdkafka

cp -r /home/clickhouse/ckdir/ClickHouse-21.3.11.5-lts/contrib/librdkafka/  /home/clickhouse/ckdir/ClickHouse-20.3.19.4-lts/contrib/

你可能感兴趣的:(clickhouse,kafka,clickhouse,编译,20.3.19.4,kafka)