druid字段级_druid 添加数据时候,数据没有时间戳字段怎么

3

2017-05-15 17:59:04 +08:00

@arsgm

```json

{

"type" : "index",

"spec" : {

"dataSchema" : {

"dataSource" : "order",

"parser" : {

"type" : "string",

"parseSpec" : {

"format" : "csv",

"columns":["time","user_id","r","f","m"],

"dimensionsSpec" : {

"dimensions" : [{"type":"long","name":"user_id"}

]

},

"timestampSpec" : {

"format" : "auto",

"column" : "time"

}

}

},

"metricsSpec" : [

{ "type" : "count", "name" : "count", "type" : "count" },

{ "type" : "longSum", "name" : "r", "fieldName" : "r" },

{ "type" : "longSum", "name" : "f", "fieldName" : "f" },

{ "type" : "longSum", "name" : "m", "fieldName" : "m" }

],

"granularitySpec" : {

"type" : "uniform",

"segmentGranularity" : "day",

"queryGranularity" : "none",

"intervals": ["2015-09-01/2015-09-02"]

}

},

"ioConfig" : {

"type" : "index",

"firehose" : {

"type" : "local",

"baseDir" : "quickstart/",

"filter" : "rfm_data_after.csv"

},

"appendToExisting" : false

},

"tuningConfig" : {

"type" : "index",

"targetPartitionSize" : 5000000,

"maxRowsInMemory" : 25000,

"forceExtendableShardSpecs" : true

}

}

}

```

数据示例:

```

2015-09-01T01:30:00Z6,40,51,78.84019607843138

2015-09-01T01:30:00Z12,20,28,48.86678571428571

2015-09-01T01:30:00Z18,335,1,19.9

2015-09-01T01:30:00Z30,2,2,114.2

```

URL:

```

curl -X 'POST' -H 'Content-Type:application/json' -d @order-task.json localhost:8090/druid/indexer/v1/task

```

导入不进去数据是怎么回事????

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值