Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

$numberlong format for dates when pulling from getMongo Processor

Solved Go to solution

$numberlong format for dates when pulling from getMongo Processor

New Contributor

Hi,

We are using the getMongo processor to pull data from mongodb. Everything works fine but all dates are coming in the following format:

"$numberLong" : "1542271444000"

How can I get the date as a string or date.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: $numberlong format for dates when pulling from getMongo Processor

New Contributor

In GetMongo configuration, go to properties and change the value of JSON Type to Standard JSON.

1 REPLY 1

Re: $numberlong format for dates when pulling from getMongo Processor

New Contributor

In GetMongo configuration, go to properties and change the value of JSON Type to Standard JSON.

Don't have an account?
Coming from Hortonworks? Activate your account here