I'm trying to install mongodb on Raspbian or Ubuntu Mate, but i have troubles finding de package on the repository to install it. The only one that is available is 2.4, but i'm having problems with this version because i need to import some data to a database to do some testing, but i'm getting this error:
"exception: BSON representation of supplied JSON array is too large: code FailedToParse: Date expecting integer milliseconds: offset:909"
I'm using this structure for the data that i'm importing:
{"_id":{"$oid":"5daa12bc95f4f6288c93727b"},"names":["frecuency","VLine1","VLine2","VLine3","ILine1","ILine2","ILine3","ITotal","PTotal","QTotal","STotal","TotalPower","actImpEnergy","actExpEnergy","indEnergy","capEnergy","apEnergy"],"values":[{"$numberDouble":"59.9462890625"},{"$numberDouble":"128.0234375"},{"$numberDouble":"127.263671875"},{"$numberDouble":"128.37890625"},{"$numberDouble":"272.2890625"},{"$numberInt":"280"},{"$numberDouble":"261.0390625"},{"$numberDouble":"813.328125"},{"$numberInt":"68934"},{"$numberInt":"-76578"},{"$numberInt":"104006"},{"$numberDouble":"-0.709518432617"},{"$numberInt":"114735486"},{"$numberInt":"14946131"},{"$numberInt":"1181895"},{"$numberInt":"128541205"},{"$numberInt":"192981465"}],"units":["Hz","V","V","V","A","A","A","A","W","VAr","VA","cos(phi)","Wh","Wh","VArh-ind","VArh-cap","VAh"],"codDispo":{"$numberInt":"1"},"time":{"$date":{"$numberLong":"1571409000305"}}}
And this is how i'm importing the data:
mongoimport --db dbName --collection collectionName --file fileName.json --jsonArray
I've searched the error and it seems to be fixed when you upgrade mongodb version at least to 2.6.
But the issue is that i need at least 3.4 version because i'm using it on windows and i need to use it on Raspberry for the company needs.
Hope you know something. Thank you.