Hi guys.. last question(s)then I'll be finished with my setup!!! So sorry for spamming the forum. I have two Scenario's
Scenario 1. timestamp filed comes in to the system in a random format and I need to make sure it's in a standard format. I have the following, but it does not seem to format the datetime to a Joda format.
"firehose":{
"type": "kafka-0.8"
"consumerProps": {
...
...
},
"feed": "testdata",
"parser": {
"timestampSpec": {
"column": "timestamp",
"format": "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
},
Scenario 2. There will be no timestamp field given to us. How can this be set up to take in the current datetime as a default/auto. I was thinking of doing something like:
"firehose":{
"type": "kafka-0.8"
"consumerProps": {
...
...
},
"feed": "testdata",
"parser": {
"timestampSpec": {
"column": auto,
"format": "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
},
Thanks guys!