Hi,
After I went through the realtime example as on the wiki, I'm trying to make realtime ingestion working on tsv, however, it kept failing upon starting.
I guess that my syntax was wrong? have anyone seen this before?
Here is my realtime.spec:
[{
"schema" : { "dataSource":"real-1",
"aggregators":[ {"type":"count", "name":"impressions"} ],
"indexGranularity":"hour",
"shardSpec" : { "type": "none" } },
"config" : { "maxRowsInMemory" : 500000,
"intermediatePersistPeriod" : "PT10m" },
"firehose" : { "type" : "kafka-0.7.2",
"consumerProps" : { "zk.connect" : "caaa-l13:2181",
"
zk.connectiontimeout.ms" : "15000",
"
zk.sessiontimeout.ms" : "15000",
"
zk.synctime.ms" : "5000",
"groupid" : "topic-pixel-local",
"fetch.size" : "1048586",
"autooffset.reset" : "largest",
"autocommit.enable" : "false" },
"feed" : "real-1",
"parser" : { "timestampSpec" : { "column" : "ts", "format" : "iso" },
"data" : { "format" : "tsv" },
"columns": ["ts", "adtype", "mkt_op", "xpi", "pai", "psi", "padu", "api", "acc", "aline", "icrid", "size", "ctype" ],
"dimensions": [ "adtype", "mkt_op", "xpi", "pai", "psi", "padu", "api", "acc", "aline", "icrid", "size", "ctype" ]
},
"plumber" : { "type" : "realtime",
"windowPeriod" : "PT10m",
"segmentGranularity":"hour",
"basePersistDirectory" : "/var/druid/realtime/basePersist",
"rejectionPolicy": {"type": "messageTime"} }
}]
The error message when I start the realtime daemon is:
2013-11-19 01:08:26,746 INFO [main] com.metamx.druid.realtime.RealtimeMain - Throwable caught at startup, committing seppuku
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
...
Caused by: java.lang.RuntimeException: com.fasterxml.jackson.databind.JsonMappingException: Instantiation of [simple type, class com.metamx.druid.indexer.data.DelimitedDataSpec] value failed: null
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at com.metamx.druid.realtime.RealtimeNode.initializeFireDepartments(RealtimeNode.java:219)
...
Caused by: java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
at com.metamx.druid.indexer.data.DelimitedDataSpec.<init>(DelimitedDataSpec.java:49)
I checked the code and seems it needs to have a delimiter defined? However I don't see this anywhere in the documentation. Could someone help? :-)
Thanks!
Rui