373 questions
Score of 0
1 answer
46 views
mongoimport cant recoginze UUID function
Is it possible to import document like this?
{"item_id": UUID("1efaf16f-9c65-6d08-b431-e33e95e34a5e"), name: "yyy"}
I got next error
Failed: error processing document #1:...
Score of 0
0 answers
37 views
CSV mongoimiport with merge option not updating existing data
I have an requirement to update existing mongo db document after reading some relevant data from hdfs saved as csv
Steps I am taking care of
Created a view on mongo collection to convert _id to it ...
Score of 0
1 answer
46 views
mongoimport getting error trying to import json file witn date field
I have created collection "mycollection" with the following mongoschema
db.createCollection("testing",{
validator: {
$jsonSchema: {
bsonType: "object&...
Score of 0
2 answers
202 views
Mongoimport json object with 1 document as an array of documents
I have alot of JSON objects which seem to be exports of collections exported as one document which contains an array of the documents in the collection.
I am having a problem importing it to Mongodb ...
Score of 0
1 answer
87 views
MongoDB bulk loading 36000 files
I am newbie to mongoDB. Currently I have a dataframe with the full path to 36000 json files. I downloaded the mongoimport and placed it in my install bin directory. I would like to create a loop of ...
Score of 0
1 answer
652 views
How to import csv files into Mongo?
I want to import csv files into MongoDB.
I found that there is a command "mongoimport" to import files.
Based on mongoimport documentation I have installed the Database Tools for Windows:
I ...
Score of 0
0 answers
79 views
How can I use mongoimport on a python container to upload a file to a mongodb on another container
I am looking into how to use mongoimport on my container running a python program to send a file on that python container over to another container on the same docker network.Currently I am using the ...
Score of 0
1 answer
133 views
MongoImport Throwing "Unsupported OP_Query" Error
I am trying to use mongoimport to upload a CSV file into my MongoAtlas DB. The URI connection string it gave me to use is mongoimport --uri "mongodb+srv://[user]:[password]@testing-database.nz31d....
Score of 0
0 answers
87 views
mongoimport to remote host always throws connection error
So, to start of, I have 2 machines; 1 with the file that is to be imported, and the other hosting a MongoDB instance.
The MongoDB instance is native and running on port 27017. There is no clustering, ...
Score of 0
1 answer
355 views
dockerfile - CMD mongoimport
FROM mongo
COPY . /data/db2/
# Expose the MongoDB port
EXPOSE 27017
CMD mongoimport --db test --collection data --file /data/db2/data.json
The copy command copy data.json file
when Im trying to put ...
Score of 0
0 answers
62 views
mongoimport error inserting documents: unknown operator: $id
I need to fix an old system that has an API built in Symfony and has packages mananged with composer. Basically it has an export routine and an import routine that was working and doesn't work anymore....
Score of 1
1 answer
1867 views
How do I import data as an array from a .csv file into a mongodb collection in Atlas?
I want to import data into a mongodb collection in an Atlas instance with some data stored in an array. The data is initially is stored in a table in a .csv file like this:
name
age
interests.0
...
Score of 0
2 answers
571 views
MONGOIMPORT : no such file or directory for JSON file
I am trying to run this mongo import command, and this was working fine until yesterday, but now all I get is no such file or directory, I keep on copying the absolute path and it still doesn't work ...
Score of 0
1 answer
259 views
Fastest way to import a JSON (1 GB) into in MongoDB
I want to import this json file in upsert mode in mongoDB.
File: http://bulk.openweathermap.org/sample/daily_16.json.gz
This file is almost 1GB (the compressed version is 90MB as you can see in the ...
Score of 0
0 answers
453 views
Failed: error processing document #1: invalid character '_' looking for beginning of value
I have been to trying to import a csv file in Mongo DB server using 'mongoimport' cmd. The error was "invalid character '_' looking for beginning of value ".
When I opened the csv file, ...