Package Details: clickhouse 24.2.2.71-1

Git Clone URL: https://aur.archlinux.org/clickhouse.git (read-only, click to copy)
Package Base: clickhouse
Description: An open-source column-oriented database management system that allows generating analytical data reports in real time
Upstream URL: https://clickhouse.com
Licenses: Apache
Submitter: kmeaw
Maintainer: Felixoid
Last Packager: Felixoid
Votes: 22
Popularity: 0.000010
First Submitted: 2017-01-13 15:46 (UTC)
Last Updated: 2024-03-15 11:24 (UTC)

Pinned Comments

Felixoid commented on 2020-08-19 21:12 (UTC)

After the long discussion in dev-group of Telegram, the most straight forward way to use clickhouse is the usage of the official build.

Latest Comments

1 2 3 4 Next › Last »

Felixoid commented on 2022-08-08 10:12 (UTC) (edited on 2022-08-08 10:42 (UTC) by Felixoid)

@myuan I've updated the package. If you still have issues, please, fill out the report on GH

myuan commented on 2022-08-08 06:53 (UTC)

After updating to 22.7.1.2484, error when selecting:

2022.08.08 14:44:58.572513 [ 24502 ] {f2f7350f-1f30-4efd-914c-73060b6a2aaf} <Error> TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 112. Bytes expected: 401.: (while reading column gene): (while reading from part /data/nvme1n1/clickhouse/store/de6/de60b78d-9684-4aec-8ca2-9db0910e8b6b/f3ffbb06da350b72784d027ab2097c6f_73376_73656_3_117785/ from mark 24 with max_rows_to_read = 65505): While executing MergeTreeThread. (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below):

0. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0xba37dda in /usr/bin/clickhouse
1. DB::ReadBuffer::readStrict(char*, unsigned long) @ 0xbab40f2 in /usr/bin/clickhouse
2. DB::CompressedReadBufferBase::readCompressedData(unsigned long&, unsigned long&, bool) @ 0x15f6ad0b in /usr/bin/clickhouse
3. DB::CompressedReadBufferFromFile::nextImpl() @ 0x15f6ca2e in /usr/bin/clickhouse
4. ? @ 0x161668b1 in /usr/bin/clickhouse
5. DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW<DB::IColumn>::immutable_ptr<DB::IColumn>&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::__1::shared_ptr<DB::ISerialization::DeserializeBinaryBulkState>&, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, COW<DB::IColumn>::immutable_ptr<DB::IColumn>, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, COW<DB::IColumn>::immutable_ptr<DB::IColumn> > > >*) const @ 0x16125c16 in /usr/bin/clickhouse
6. DB::MergeTreeReaderWide::readData(DB::NameAndTypePair const&, COW<DB::IColumn>::immutable_ptr<DB::IColumn>&, unsigned long, bool, unsigned long, unsigned long, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, COW<DB::IColumn>::immutable_ptr<DB::IColumn>, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, COW<DB::IColumn>::immutable_ptr<DB::IColumn> > > >&, bool) @ 0x176a5d0f in /usr/bin/clickhouse
7. DB::MergeTreeReaderWide::readRows(unsigned long, unsigned long, bool, unsigned long, std::__1::vector<COW<DB::IColumn>::immutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::immutable_ptr<DB::IColumn> > >&) @ 0x176a4cb8 in /usr/bin/clickhouse
8. DB::MergeTreeRangeReader::DelayedStream::finalize(std::__1::vector<COW<DB::IColumn>::immutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::immutable_ptr<DB::IColumn> > >&) @ 0x17f1db4f in /usr/bin/clickhouse
9. DB::MergeTreeRangeReader::startReadingChain(unsigned long, std::__1::deque<DB::MarkRange, std::__1::allocator<DB::MarkRange> >&) @ 0x17f23bab in /usr/bin/clickhouse
10. DB::MergeTreeRangeReader::read(unsigned long, std::__1::deque<DB::MarkRange, std::__1::allocator<DB::MarkRange> >&) @ 0x17f2176c in /usr/bin/clickhouse
11. DB::MergeTreeBaseSelectProcessor::readFromPartImpl() @ 0x17f1418f in /usr/bin/clickhouse
12. DB::MergeTreeBaseSelectProcessor::readFromPart() @ 0x17f14ccd in /usr/bin/clickhouse
13. DB::MergeTreeBaseSelectProcessor::generate() @ 0x17f12fff in /usr/bin/clickhouse
14. DB::ISource::tryGenerate() @ 0x17b8fb95 in /usr/bin/clickhouse
15. DB::ISource::work() @ 0x17b8f6e6 in /usr/bin/clickhouse
16. DB::ExecutionThreadContext::executeTask() @ 0x17babf0a in /usr/bin/clickhouse
17. DB::PipelineExecutor::executeStepImpl(unsigned long, std::__1::atomic<bool>*) @ 0x17ba0df0 in /usr/bin/clickhouse
18. ? @ 0x17ba25c1 in /usr/bin/clickhouse
19. ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0xbb046a8 in /usr/bin/clickhouse
20. ? @ 0xbb07a3d in /usr/bin/clickhouse
21. ? @ 0x7f6efe21878d in ?
22. __clone @ 0x7f6efe2998e4 in ?

Downgrade to 22.4.5.9 is OK

Felixoid commented on 2020-08-19 21:12 (UTC)

After the long discussion in dev-group of Telegram, the most straight forward way to use clickhouse is the usage of the official build.

digital commented on 2019-07-24 06:58 (UTC)

curl: (22) The requested URL returned error: 404 Not Found
==> ERROR: Failure while downloading https://github.com/apache/arrow/archive/87ac6fd.tar.gz
    Aborting...
Error downloading sources: clickhouse

Felixoid commented on 2019-04-23 12:14 (UTC)

I confirm that the package building is broken now. And the decision to replace libraries with *-static is strange as well

ProFfeSsoRr commented on 2019-04-19 06:47 (UTC) (edited on 2019-04-19 07:15 (UTC) by ProFfeSsoRr)

Can't build with llvm7 too: fatal error: llvm/Support/VirtualFileSystem.h: No such file or directory

P.S. Understand - need clang-7 too.

trolley813 commented on 2019-04-02 06:44 (UTC)

However, llvm dependency must be replaced with llvm7 since it does not build with LLVM 8 (currrent) for some reason

BlueMacaw commented on 2019-03-27 08:49 (UTC) (edited on 2019-03-27 08:52 (UTC) by BlueMacaw)

After a week of attempts I happened to build it without arrow and lousy breaking the whole system [whatever]z[whatever]-static packages

# $Id: $
# Maintainer: Dmitry Bilunov <kmeaw@yandex-team.ru>

pkgname=ch
pkgver=19.4.0.49
pkgrel=1
pkgdesc='An open-source column-oriented database management system that allows generating analytical data reports in real time'
arch=('i686' 'x86_64')
url='https://clickhouse.yandex/'
license=('Apache')
depends=('poco' 'boost' 'jemalloc' 'xxhash' 'thrift' 're2' 'double-conversion' 'unixodbc' 'openssl' 'icu' 'llvm' 'gtest' 'gsasl' 'zstd' 'zlib' 'lz4' 'libxml2' 'brotli'  'lld' 'clang' 'libdaemon')
makedepends=('cmake' 'patchelf')
source=(
    https://github.com/yandex/ClickHouse/archive/v$pkgver-stable.tar.gz
    https://github.com/google/cctz/archive/4f9776a.tar.gz
    https://github.com/edenhill/librdkafka/archive/363dcad.tar.gz
    https://github.com/mfontanini/cppkafka/archive/860c90e.tar.gz
    https://github.com/aklomp/base64/archive/a27c565.tar.gz
    https://github.com/ClickHouse-Extras/libhdfs3/archive/bd6505c.tar.gz
    https://github.com/ClickHouse-Extras/protobuf/archive/1273537.tar.gz
    libunwind.patch
)
md5sums=(
    'eb7be28304b18fe3c5aaf5871bea598f'
    '5323f7ba2565a84a80a93edde95eb4fe'
    '858f1e9d37c064a1e5ce99f24ed9cf95'
    '40d91626049ab15bf3bbe75fa00bf52d'
    'e98c6b94f39d6947c83eb554aeb618e2'
    '2fa16f04d0d533cbb5797bfd45b058fd'
    'd63e8036385a27113365a40eb6bfe75e'
    'f3f60b75abf8d6f21de74db6e88e1e7b'
)
backup=('etc/clickhouse-client/config.xml' 'etc/clickhouse-server/config.xml' 'etc/clickhouse-server/users.xml')
install=$pkgname.install

prepare() {
  cd ClickHouse-$pkgver-stable
  sed -e 's/mysqlxx common\(.*\) \(\${Z_LIB}\)/mysqlxx \2 common\1/' -i libs/libmysqlxx/CMakeLists.txt

  sed -e 's/mysqlxx common\(.*\) \(\${Z_LIB}\)/mysqlxx \2 common\1/' -i libs/libmysqlxx/CMakeLists.txt
  patch -p1 < ../libunwind.patch
  mkdir -p contrib/cctz contrib/librdkafka contrib/cppkafka contrib/base64 contrib/libhdfs3 contrib/protobuf
  rm -rf contrib/{cctz,librdkafka,cppkafka,base64,libhdfs3,protobuf}/*
  mkdir -p contrib/boost/boost

  mv ../librdkafka-363dcad*/* contrib/librdkafka/
  mv ../cppkafka-860c90e*/* contrib/cppkafka/
  mv ../cctz-4f9776a*/* contrib/cctz/
  mv ../base64-a27c565*/* contrib/base64/
  mv ../libhdfs3-bd6505c*/* contrib/libhdfs3/
  mv ../protobuf-1273537*/* contrib/protobuf/
  for dir in contrib/*/; do
    rmdir $dir &> /dev/null || true
  done
  mkdir -p build
}

build() {
    cd ClickHouse-$pkgver-stable/build
    cmake -D CMAKE_BUILD_TYPE:STRING=Release -D USE_STATIC_LIBRARIES:BOOL=False -D ENABLE_TESTS:BOOL=False -D USE_INTERNAL_POCO_LIBRARY:BOOL=False -D USE_INTERNAL_BOOST_LIBRARY:BOOL=False -D ENABLE_JEMALLOC:BOOL=True -D USE_INTERNAL_JEMALLOC_LIBRARY:BOOL=False -D ENABLE_MYSQL:BOOL=True -D USE_INTERNAL_MYSQL_LIBRARY:BOOL=False -D USE_INTERNAL_THRIFT_LIBRARY:BOOL=False -D USE_INTERNAL_LIBUNWIND_LIBRARY:BOOL=False -D USE_INTERNAL_ZSTD_LIBRARY:BOOL=False -D USE_INTERNAL_LZ4_LIBRARY:BOOL=False -D USE_INTERNAL_RE2_LIBRARY:BOOL=False -D USE_INTERNAL_DOUBLE_CONVERSION_LIBRARY:BOOL=False -D DOUBLE_CONVERSION_ROOT_DIR=/usr -D USE_INTERNAL_UNIXODBC_LIBRARY:BOOL=False -D USE_INTERNAL_GTEST_LIBRARY:BOOL=False -D USE_INTERNAL_CAPNP_LIBRARY:BOOL=False -D USE_INTERNAL_ZLIB_LIBRARY:BOOL=False -D USE_INTERNAL_LLVM_LIBRARY:BOOL=False -D USE_INTERNAL_SSL_LIBRARY:BOOL=False -D USE_INTERNAL_LIBGSASL_LIBRARY:BOOL=False -D USE_INTERNAL_LIBXML2_LIBRARY:BOOL=False -D USE_INTERNAL_BROTLI_LIBRARY:BOOL=False -D USE_INTERNAL_PROTOBUF_LIBRARY:BOOL=True -DCMAKE_CXX_FLAGS=-D__GLIBCXX_USE_CXX11_ABI=0 -D SPLIT_SHARED_LIBRARIES:BOOL=True .. 

    cmake --build . --target clickhouse
}

package() {
    cd ClickHouse-$pkgver-stable/build
  mkdir -p $pkgdir/etc/clickhouse-server/ $pkgdir/etc/clickhouse-client/
  mkdir -p $pkgdir/usr/bin/
  mkdir -p $pkgdir/usr/lib/systemd/system
  cp dbms/programs/clickhouse $pkgdir/usr/bin/clickhouse-client
  cp ../dbms/programs/server/config.xml ../dbms/programs/server/users.xml $pkgdir/etc/clickhouse-server/
  ln -s /usr/bin/clickhouse-client $pkgdir/usr/bin/clickhouse-server
  patchelf --remove-rpath $pkgdir/usr/bin/clickhouse-client
  cp ../dbms/programs/client/clickhouse-client.xml $pkgdir/etc/clickhouse-client/config.xml
  for lib in libclickhouse{-{benchmark,{clien,forma,performance-tes}t,{co{mp{ile,resso},pie},obfuscato,serve}r,extract-from-config,local}-lib,{_{aggregat,tabl}e,}_functions,_{com{mon_{config,io,zookeeper},pression},dictionaries{,_embedded},parsers,storage{_kafka,s_system}}}.so; do
    libsrc=$(find dbms/ -name "$lib")
    libdst=$lib.$pkgver
    cp ${libsrc:?$lib not found} $pkgdir/usr/lib/$libdst
    patchelf --remove-rpath $pkgdir/usr/lib/$libdst
    patchelf --replace-needed $lib $libdst $pkgdir/usr/bin/clickhouse-client
  done
  for lib in lib{base64,c{ctz,ommon,ppkafka},daemon,{dbm,string_util}s,mysqlxx,pocoext}.so; do
    libsrc=$(find contrib/ libs/ dbms/ -name "$lib")
    libdst=libclickhouse-${lib#lib}.$pkgver
    cp ${libsrc:?$lib not found} $pkgdir/usr/lib/$libdst
    patchelf --remove-rpath $pkgdir/usr/lib/$libdst
    patchelf --replace-needed $lib $libdst $pkgdir/usr/bin/clickhouse-client
  done
  sed -e 's:/opt/clickhouse:/var/lib/clickhouse:g' -i $pkgdir/etc/clickhouse-server/config.xml
  sed -e '/listen_host/s%::<%::1<%' -i $pkgdir/etc/clickhouse-server/config.xml
  cp ../debian/clickhouse-server.service $pkgdir/usr/lib/systemd/system
}

BlueMacaw commented on 2019-03-18 09:02 (UTC)

It tries to build arrow package, which is very strange - replaces half of the system packages to aur versions of them (like zlib-statc) and doesn't even compile. Does this one really need it?

lisu_ml commented on 2019-02-24 20:32 (UTC)

19.3.5-1 doesn't build:

tmp/tmp.JefkzNrImZ/clickhouse/clickhouse/src/ClickHouse-19.3.5-stable/dbms/programs/clang/Compiler-7.0.1/driver.cpp:15:10: fatal error: clang/Driver/Driver.h: No such file or directory
 #include "clang/Driver/Driver.h"