mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 12:01:58 +00:00
16 lines
557 B
Bash
16 lines
557 B
Bash
#!/bin/bash
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y docker.io
|
|
|
|
sudo docker run --name vertica -p 5433:5433 -p 5444:5444 --mount type=volume,source=vertica-data,target=/data --name vertica_ce vertica/vertica-ce
|
|
|
|
sudo docker exec vertica /opt/vertica/bin/vsql -U dbadmin -c "$(cat create.sql)"
|
|
|
|
wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz'
|
|
gzip -d hits.tsv.gz
|
|
|
|
sudo docker cp hits.tsv vertica:/hits.tsv
|
|
|
|
time sudo docker exec 4e9120959a41 /opt/vertica/bin/vsql -U dbadmin -c "COPY hits FROM '/hits.tsv' DELIMITER E'\\t'"
|