Sign inSign up

taozex/doris

By taozex

Updated almost 4 years ago

doris 1.1.1

Image
3

2.1K

taozex/doris repository overview

This container build on doris 1.1.1 version.Start learning Doris with one click based on Docker!

1.Run Doris container

docker run -p 9030:9030 -p 8030:8030 -p 8040:8040 --privileged=true -d --name doris taozex/doris:tagname

2.Access Doris using mysql client

mysql -uroot -h127.0.0.1 -P 9030

3.Run following sql to test container

CREATE DATABASE TEST;

USE TEST;

CREATE TABLE `doris_test` (
 `c0` int(11) NULL COMMENT "",
 `c1` date NULL COMMENT "",
 `c2` datetime NULL COMMENT "",
 `c3` varchar(65533) NULL COMMENT ""
) ENGINE=OLAP 
DUPLICATE KEY(`c0`)
DISTRIBUTED BY HASH(`c0`) BUCKETS 1 
PROPERTIES (
"replication_num" = "1",
"in_memory" = "false",
"storage_format" = "DEFAULT"
);


insert into doris_test values (1, '2022-02-01', '2022-02-01 10:47:57', '111');
insert into doris_test values (2, '2022-02-02', '2022-02-02 10:47:57', '222');
insert into doris_test values (3, '2022-02-03', '2022-02-03 10:47:57', '333');


select * from doris_test where c1 >= '2022-02-02';

Tag summary

Content type

Image

Digest

sha256:1c3a2ae85

Size

1.1 GB

Last updated

almost 4 years ago

docker pull taozex/doris:v1.1.1