I am using Mongo Version 2.6.12 on CestOS6.7. It is non-clustered i.e. installed only on one server.
My project requires final output to be stored in MongoDB. The files are CSVs stored on Linux and HDFS. Can someone please guide me how to import CSV files into mongo DB from Linux/HDFS.
Mongoimport does not work as it takes by default input as JSON files. I tried this in mongo-shell, it failed
mongoimport news-output-20170125.csv --type csv
2017-01-30T19:18:25.275-0600 SyntaxError: Unexpected identifier