安装databend

安装databend

依赖minio

事先安装好minio

安装ubuntu

由于databend依赖GLIBC_2.29,所有选择ubuntu最新版

docker run -itd \
	-p 13307:3307 \
	-p 18000:8000 \
	-p 19000:9000 \
	--name databend \
	ubuntu

进入ubuntu

docker exec -it databend bash

下载databend

https://repo.databend.rs/databend/v1.0.26-nightly/databend-v1.0.26-nightly-x86_64-unknown-linux-gnu.tar.gz

解压到/opt/databend

tar -zxf databend-v1.0.26-nightly-x86_64-unknown-linux-gnu.tar.gz

配置ubuntu

apt-agt update
apt-agt install vim

配置configs/databend-query.toml

[storage]
type = "s3"

[storage.s3]
bucket = "databend"
endpoint_url = "http://192.168.0.111:9000"
access_key_id = "minioadmin"
secret_access_key = "minioadmin"
enable_virtual_host_style = false

启动

scripts/start.sh

测试

链接或者使用ui工具链接databend
mysql -uroot -h0.0.0.0 -P3307

create database shop;

create table t1(a int);

insert into t1 values(1);

select * from t1;

你可能感兴趣的:(Databend,大数据)