ClickHouse RPM packages installation from packagecloud.io
Table of Contents
Introduction
All instructions in this manual were tested on Centos 6.9 and CentOS 7.3. In order to install ClickHouse RPM packages from packagecloud.io repository, we need to register it (repo) with our yum, making yum avare of additional packages installable from packagecloud.io.
In general, repositories are listed in /etc/yum.repos.d folder, so we need to add packagecloud.io repository description in there.
This can be done either manually or via script, provided by packagecloud.io. In any case, as a result, we'll have ClickHouse packages available for installation via yum.
Let's start with script-based installation, since this approach looks like more user-friendly.
Script-based installation
For our convenience, packagecloud.io provides nice and user-friendly way to add repos with their script. We'll need to download and run packagecloud's bash script, which will do all required steps.
Install script
Ensure curl is installed on the system
sudo yum install -y curl
Let's download and run installation shell-script, provided by packagecloud.io
curl -s https://packagecloud.io/install/repositories/altinity/clickhouse/script.rpm.sh | sudo bash
Install packages after script
First of all, ensure we have ClickHouse packages available for installation
sudo yum list 'clickhouse*'
ClickHouse packages should be listed as available, something like this:
Available Packages
clickhouse-client.x86_64 1.1.54276-3.el7 altinity_clickhouse
clickhouse-compressor.x86_64 1.1.54276-3.el7 altinity_clickhouse
clickhouse-debuginfo.x86_64 1.1.54276-3.el7 altinity_clickhouse
clickhouse-server.x86_64 1.1.54276-3.el7 altinity_clickhouse
clickhouse-server-common.x86_64 1.1.54276-3.el7 altinity_clickhouse
Now let's install ClickHouse
sudo yum install -y 'clickhouse*'
and verify it is listed as installed
sudo yum list installed 'clickhouse*'
ClickHouse packages should be listed as installed, something like this:
Installed Packages
clickhouse-client.x86_64 1.1.54276-3.el7 @altinity_clickhouse
clickhouse-compressor.x86_64 1.1.54276-3.el7 @altinity_clickhouse
clickhouse-debuginfo.x86_64 1.1.54276-3.el7 @altinity_clickhouse
clickhouse-server.x86_64 1.1.54276-3.el7 @altinity_clickhouse
clickhouse-server-common.x86_64 1.1.54276-3.el7 @altinity_clickhouse
Ensure ClicKhouse server is running
sudo /etc/init.d/clickhouse-server restart
And connect to it with clickhouse-client
clickhouse-client ClickHouse client version 1.1.54276.
Connecting to localhost:9000.
Connected to ClickHouse server version 1.1.54276. :)
Well, all looks fine and ClickHouse installed from RPM packages!
We are all done!
Manual installation
Let's add packagecloud.io repo manually
Install required packages
We'll need two packages installed beforehands:
- pygpgme - helps handling gpg-signatures
- yum-utils - contains tools for handling source RPMs
sudo yum install -y pygpgme yum-utils
Create required files
Now let's create yum's repository configuration file: /etc/yum.repos.d/altinity_clickhouse.repo Depending on what CentOS version you are running you may need files for EL 6 or 7 version
EL6 repo file
For EL6 copy+paste into /etc/yum.repos.d/altinity_clickhouse.repo
[altinity_clickhouse]
name=altinity_clickhouse
baseurl=https://packagecloud.io/altinity/clickhouse/el/6/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/altinity/clickhouse/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300 [altinity_clickhouse-source]
name=altinity_clickhouse-source
baseurl=https://packagecloud.io/altinity/clickhouse/el/6/SRPMS
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/altinity/clickhouse/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
EL7 repo file
For EL7 copy+paste into /etc/yum.repos.d/altinity_clickhouse.repo
[altinity_clickhouse]
name=altinity_clickhouse
baseurl=https://packagecloud.io/altinity/clickhouse/el/7/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/altinity/clickhouse/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300 [altinity_clickhouse-source]
name=altinity_clickhouse-source
baseurl=https://packagecloud.io/altinity/clickhouse/el/7/SRPMS
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/altinity/clickhouse/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
Update cache
After repo files created, let's update yum's cache with packges from newly added altinity_clickhouse repo
sudo yum -q makecache -y --disablerepo='*' --enablerepo='altinity_clickhouse'
Install packages manually
Packages can be installed the same way as in section Install packages after script
Conclusion
Now we have ClickHouse RPM packages available for easy installation.
原文: https://github.com/Altinity/clickhouse-rpm-install
ClickHouse RPM packages installation from packagecloud.io的更多相关文章
- Ubuntu无法安装rpm包,ubuntu RPM should not be used directly install RPM packages, use Alien instead!
Ubuntu无法安装rpm包,ubuntu RPM should not be used directly install RPM packages, use Alien instead! 简单来说, ...
- Download RPM packages from a YUM repo without installing
This how-to will explain how to download rpm packages from a yum repository without installing them. ...
- Linux(centos7)安装ClickHouse
Clickhouse 仅支持Linux 且必须支持SSE4.2 指令集 grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 suppo ...
- edgedb 集成timescaledb
timescaledb 是一个强大的pg 扩展,可以让我们的pg 数据库支持时序数据库的能力,以下测试下与edgedb 集成 预备 因为edgedb 当前是基于pg11 开发的,所以需要使用pg11 ...
- intel webrtc 部署
org link conference server Configure the MCU server 1. set the maximum numbers of open files, runnin ...
- 001-rabbitmq和haproxy结合
rabbitmq集群搭建 防火墙添加并重启 -A INPUT -p tcp -m multiport --dports 4369,25672,5672,15672 -j ACCEPT 安装 cd /u ...
- rpm安装Clickhouse
1. 下载相关安装包 在opt目录下创建clickhouse目录,方便下载文件 Cd /opt/clickhouse 一次执行一下命令 ① wget --content-disposition ht ...
- clickhouse在Linux上的安装部署
$ sudo apt-get install clustershell #输入你的管理员密码 $ cd /etc/clustershell $ sudo gedit groups #在文件中添加如下内 ...
- Linux系统:Centos7下搭建ClickHouse列式存储数据库
本文源码:GitHub·点这里 || GitEE·点这里 一.ClickHouse简介 1.基础简介 Yandex开源的数据分析的数据库,名字叫做ClickHouse,适合流式或批次入库的时序数据.C ...
随机推荐
- server2008服务器IIS7 +PHP5.3出现500错误的排错方法
Windows7 IIS 500 – 内部服务器错误解决方案 1.解决方法:打开IIS,在全局功能视图中找到“错误页”,双击进去后,看最右边的“操作”下的“编辑功能设置…”,将“错误响应”下的“详细错 ...
- 实战Nginx负载均衡高冗余高可用WEB架构
最近公司主力网站之一改版完成终于上线了,牵扯了我大半年的时间,现在终于有时间坐下来写点东西,总结沉淀一下自己的技术心得.此次,根据服务器的数量和质量,我采用负载均衡高冗余的架构,考虑单点故障,W ...
- springboot文件上传下载,转载的
Spring Boot入门——文件上传与下载 原文来自:https://www.cnblogs.com/studyDetail/articles/7003253.html 1.在pom.xml文件中添 ...
- makefile之findstring函数
#$(findstring <find>,<in> ) #功能:在字串<in>中查找<find>字串. #返回:如果找到,那么返回<find> ...
- PL/SQL Developer导入、导出表结构和表数据
在表的所有者不能改变的情况下,可以使用导入导出表结构和表数据的方法,将表移动到你想要的所有者下(注:特别是建立表的时候如果以sysdba的身份登录的话,所有表的所有者都为sys,此时会对你用c#访问数 ...
- deepin linux 15.3安装完eclipse启动报错An error has occurred.
原因是系统中安装了jdk9 导致的. 卸载jdk9就可以了 $ java -version Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings ...
- CSRF学习笔记之CSRF的攻击与防御以及审计【00x2 】
Medium完整代码: <?php if (isset($_GET['Change'])) { // Checks the http referer header if ( eregi ( &q ...
- Java 编程
1,Java实体如果复写构造方法,一定要显式指定默认构造方法 2,集合初始化下面这种方法不可取 因为双括号初始化(DBI)创建了一个匿名类,该类引用了拥有对象的实例,如果匿名内部类被其他对象返回并持有 ...
- The Definitive Guide To Django 2 学习笔记(八) 第四章 模板 (四)基本的模板标签和过滤器
标签 下面的部分概述了常见的Django标签. if/else {%if%} 标签 对一个变量值进行测试,如果结果为true,系统将会显示在{%if%} 和 {%endif%}之间的一切,看个例子: ...
- 使用SWT技术的跨平台移动应用开发库Tabris
1. http://developer.eclipsesource.com/tabris/ 2. 多平台.原生程序级别的性能 3. 开源/教育性的项目免费,意思就是商业项目收费 4. 目标,让懂jav ...