clickhouse for centos7安裝和使用初探
clickhouse介紹:
戰鬥民族開發的 olap 資料庫,屬於NoSQL,適用於渠道漏斗分析、app 點選行為路徑分析等業務場景
安裝:
按照官方文件推薦,用yum方式安裝最方便
#yum install yum-utils -y
# rpm --import
# yum-config-manager --add-repo
Loaded plugins: fastestmirror
adding repo from:
[repo.yandex.ru_clickhouse_rpm_stable_x86_64]
name=added from:
baseurl=
enabled=1
# yum install clickhouse-server clickhouse-client -y (此步時間有點長,多等會)
啟動clickhouse:
# service clickhouse-server start
Start clickhouse-server service: Path to data directory in /etc/clickhouse-server/config.xml: /var/lib/clickhouse/
DONE
連線和使用測試:
# clickhouse-client
ClickHouse client version 19.15.3.6 (official build).
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 19.15.3 revision 54426.
test-110-81 :)
test-110-81 :)
test-110-81 :)
test-110-81 :) select 1
SELECT 1
┌─1─┐
│ 1 │
└───┘
1 rows in set. Elapsed: 0.002 sec.
test-110-81 :) CREATE TABLE wikistat(date Date,time DateTime,project String,subproject String,path String,hits UInt64,size UInt64) ENGINE = MergeTree(date, (path, time), 8192);
CREATE TABLE wikistat
(
`date` Date,
`time` DateTime,
`project` String,
`subproject` String,
`path` String,
`hits` UInt64,
`size` UInt64
)
ENGINE = MergeTree(date, (path, time), 8192)
Ok.
0 rows in set. Elapsed: 0.032 sec.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15498/viewspace-2659408/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SSDB安裝和使用初探
- ClickHouse(03)ClickHouse怎麼安裝和部署
- clickhouse下載和安裝
- CentOS7上安裝和使用DockerCentOSDocker
- clickhouse學習(1)-clickhouse安裝解除安裝
- centos7中使用yum安裝NGINX安裝CentOSNginx
- RabbitMQ Centos7 安裝以及使用MQCentOS
- windows和CentOS7安裝wkhtmltopdfWindowsCentOSHTML
- 鯤鵬920 安裝clickhouse,
- centos7 解除安裝和重新安裝yumCentOS
- redis資料備份和遷移工具redis-dump安裝和使用初探Redis
- clickhouse-backup(RPM方式安裝)
- CentOS7使用Docker安裝STF安卓裝置管理平臺CentOSDocker安卓
- centos7安裝mysql5.7 使用yumCentOSMySql
- centos7使用yum安裝lnmp環境CentOSLNMP
- Centos7安裝maven3.5.0和gitCentOSMavenGit
- centos7上keepalived的安裝和配置CentOS
- CentOS7 下 Nginx 的安裝和配置CentOSNginx
- Centos7安裝安裝部署dockerCentOSDocker
- CentOS7安裝php、安裝MySqlCentOSPHPMySql
- 技術分享 | ClickHouse-Keeper 初探
- Centos7安裝ffmpeg和使用youtube-dl下載Youtube視訊CentOS
- 初識ClickHouse——安裝與入門
- Mysql安裝和遠端登入--Centos7MySqlCentOS
- Hadoop CDH版本安裝和啟動(CentOS7)HadoopCentOS
- CentOS7編譯和安裝GCC7.5CentOS編譯GC
- centos7 安裝pipCentOS
- CentOS7 安裝 MySQLCentOSMySql
- centos7安裝protobufCentOS
- 4.1 CentOS7安裝CentOS
- CentOS7安裝wpsCentOS
- VirtualBox安裝Centos7CentOS
- CentOS7 安裝NginxCentOSNginx
- CentOS7安裝OpenvswitchCentOS
- centos7 安裝rocketmqCentOSMQ
- CentOS7 安裝 dockerCentOSDocker
- centos7安裝dockerCentOSDocker
- CentOS7 安裝 memcacheCentOS