2

我的数据有时间戳,如mm/dd/yyyy hh:mm:ss. 我正在使用以下规范进行索引:

 "timestampSpec" : {
            "format" : "mm/dd/yyyy",
            "column" : "createddate"
          }

它给出了错误Caused by: com.metamx.common.parsers.ParseException: Unparseable timestamp found!

我们如何处理这种数据?

4

2 回答 2

2

Druid 时间戳规范可以是 iso、millis、posix、auto 或任何 Joda 时间格式。这是 Joda 时间模式/样式的链接

参考 - http://druid.io/docs/latest/ingestion/ingestion-spec.html

于 2018-08-27T17:03:07.060 回答
0

使用以下任何一种:“timestampSpec”:{“format”:“iso”,“column”:“createddate”}

或者

“timestampSpec”:{“格式”:“自动”,“列”:“创建日期”}

于 2019-12-19T14:50:59.413 回答