Apache Druid安装部署

Scroll Down

1.简介

Apache Druid 是一个集时间序列数据库、数据仓库和全文检索系统特点于一体的分析性数据平台。
Apache Druid 适用于对实时数据提取,高性能查询和高可用要求较高的场景。因此,Druid 通常被作为一个具有丰富 GUI 的分析系统,或者作为一个需要快速聚合的高并发 API 的后台。Druid 更适合面向事件数据。

官网:https://druid.apache.org/

2.下载

下载地址:https://dlcdn.apache.org/druid/0.22.1/apache-druid-0.22.1-bin.tar.gz

wget --no-check-certificate  https://dlcdn.apache.org/druid/0.22.1/apache-druid-0.22.1-bin.tar.gz

3.部署安装(单机模式)

3.1解压

tar -xvf apache-druid-0.22.1-bin.tar.gz

后台启动

cd apache-druid-0.22.1
nohup ./bin/start-nano-quickstart &

多种规格启动:

Nano-Quickstart

资源要求:1 CPU, 4GiB RAM
启动脚本:bin/start-nano-quickstart
配置文件:conf/druid/single-server/nano-quickstart

Micro-Quickstart

资源要求:4 CPU, 16GiB RAM
启动脚本:bin/start-micro-quickstart
配置文件:conf/druid/single-server/micro-quickstart

Small

资源要求:8 CPU, 64GiB RAM (~i3.2xlarge)
启动脚本:bin/start-small
配置文件:conf/druid/single-server/small

Medium

资源要求:16 CPU, 128GiB RAM (~i3.4xlarge)
启动脚本:bin/start-medium
配置文件:conf/druid/single-server/medium

Large

资源要求:CPU, 256GiB RAM (~i3.8xlarge)
启动脚本:bin/start-large
配置文件:conf/druid/single-server/large

X-Large

资源要求:64 CPU, 512GiB RAM (~i3.16xlarge)
启动脚本:bin/start-xlarge
配置文件:conf/druid/single-server/xlarge

开启端口

firewall-cmd --add-port=8888/tcp --permanent
firewall-cmd --add-port=8082/tcp --permanent
firewall-cmd --reload

4.访问

控制台地址:http://localhost:8888
后台服务端口:8082