childe / gohangout

使用 golang 模仿的 Logstash。用于消费 Kafka 数据,处理后写入 ES、Clickhouse 等。
MIT License
1.03k stars 238 forks source link

clickhouse ping error: could not load time location: unknown time zone Asia/Shanghai and no available host #148

Closed david-zh-cn closed 1 year ago

david-zh-cn commented 3 years ago

image E0812 13:42:08.686204 1 clickhouse_output.go:308] clickhouse ping error: could not load time location: unknown time zone Asia/Shanghai F0812 13:42:08.686397 1 clickhouse_output.go:321] no available host

Could you tell me how to solve it?

childe commented 3 years ago

配置文件没有正确的host,都链接失败了 建议看一下 ck 服务端日志

发自我的iPhone

------------------ Original ------------------ From: david-zh-cn @.> Date: Thu,Aug 12,2021 9:47 PM To: childe/gohangout @.> Cc: Subscribed @.***> Subject: Re: [childe/gohangout] clickhouse ping error: could not load time location: unknown time zone Asia/Shanghai and no available host (#148)

david-zh-cn commented 3 years ago

I have solved it,but I have another problem. image

david-zh-cn commented 3 years ago

image

childe commented 3 years ago

https://github.com/childe/gohangout/commit/55971ab68c5e88cc029268ae53b2b5a4f0e7afaa

这个 Commit 添加了一下对 Datetime64类型的默认值的处理。 试一下?可以自己编译吗?

childe commented 1 year ago

Since this issue has been inactive for a while, I will be closing it. If there is any new information or further discussion needed, please feel free to reopen this issue.