mirror of
https://github.com/openobserve/goflow2.git
synced 2025-10-23 07:11:57 +00:00
Fixing clickhouse startup after restart
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user