[DOCS-1303] Cannot export data json from MongoDB Created: 27/Mar/13 Updated: 03/Nov/17 Resolved: 18/Apr/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | auto | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
XUbuntu Location: http://docs.mongodb.org/manual/ |
||
| Participants: | |
| Days since reply: | 10 years, 43 weeks, 6 days ago |
| Description |
|
sudo mongoexport --db twitter_db_v1 --collection all_stream_data --query ' {"lang": 'en'}' --out /home/phant/db/test.json ' --dbpath /home/phant/db ' --file /home/phant/db/test.json |
| Comments |
| Comment by Kay Kim (Inactive) [ 18/Apr/13 ] |
|
Should have --out option instead of --file Also, the query syntax needs to be fixed since the document is enclosed in single quote but also include single quotes ' {"lang": 'en'}' should be ' {"lang": "en"}' |