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 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, proto UInt8,
name String, name String,
description String description String
@@ -122,4 +122,4 @@ clickhouse client -n <<-EOSQL
FROM flows_raw FROM flows_raw
GROUP BY Date, Timeslot, SrcAS, DstAS, \`ETypeMap.EType\`; GROUP BY Date, Timeslot, SrcAS, DstAS, \`ETypeMap.EType\`;
EOSQL EOSQL