I'm trying to import my json file to a db using the following command:
mongoimport --db db_name --collection collection_name file.json --jsonArray
But it's not working, and I'm getting this error:
Tue Oct 21 15:42:20.176 check 0 0
Tue Oct 21 15:42:20.176 imported 0 objects
Tue Oct 21 15:42:20.176 ERROR: encountered 1 error(s)
I'm using MongoDB 2.4.9. Any help? Thanks.
EDIT: adding -vvvv to the command results in the following:
Tue Oct 21 16:02:48.582 creating new connection to:127.0.0.1:27017
Tue Oct 21 16:02:48.583 BackgroundJob starting: ConnectBG
Tue Oct 21 16:02:48.584 connected connection!
connected to: 127.0.0.1
Tue Oct 21 16:02:48.584 ns: ip.ip_data
Tue Oct 21 16:02:48.585 filesize: 3526
Tue Oct 21 16:02:48.585 User Assertion: 13293:BSON representation of supplied JSON array is too large: code FailedToParse: FailedToParse: Date expecting integer milliseconds: offset:211
-vvvvvto the commandline to see if gives some more information. - Martin--jsonArray? - wdberkeley