1
0
mirror of https://github.com/netsampler/goflow2.git synced 2024-05-06 15:54:52 +00:00

Fixing clickhouse startup after restart

This commit is contained in:
Sergei Chekanov
2021-08-02 15:33:41 +03:00
parent 6465eeb200
commit 3384a90a29

View File

@ -3,9 +3,9 @@ set -e
clickhouse client -n <<-EOSQL
CREATE DATABASE dictionaries;
CREATE DATABASE IF NOT EXISTS dictionaries;
CREATE DICTIONARY dictionaries.protocols (
CREATE DICTIONARY IF NOT EXISTS dictionaries.protocols (
proto UInt8,
name String,
description String
@ -122,4 +122,4 @@ clickhouse client -n <<-EOSQL
FROM flows_raw
GROUP BY Date, Timeslot, SrcAS, DstAS, \`ETypeMap.EType\`;
EOSQL
EOSQL