json - MongoDB - db does not show any collection after mongoimport -


I'm actually searching for MongoDB and Maps, promote inside, but I have a problem. The establishment of Mongodb was successful. After that, I tried to import json file to type these 2 commands before calling a Mongo in Terminal (I am working on Ubuntu 12.04 LTS):

< Pre> $ wget http: /media.mongodb.org/zips.json $ mongoimport - db mapreduce --collection zips --file zips.json

then I call I have received these alerts:

  Mongodabi shell version: 2.6.5 connects to:   : The test server has startup warnings: 2014-11-04 04 20: 15: 12.280 + 0100 [initandlisten] 2014-11-04 T-20: 15: 12.280 + 0100 [initandlisten] ** Note: This is a 32-bit MongoDB binary 2014-11-04 T 20:15:15 12.280 + 0100 [Initandlisten] ** 32 bit builds are limited to 2 GB data (or at least -General). 2014-11-04 T20: 15: 12.280 + 0100 [initandlisten] ** Note that journaling is deferred for 32 bit and is currently closed 2014-11-04T20: 15: 12.280 + 0100 [initandlisten] ** See http://dochub.mongodb.org/core/32bit 2014-11-04T20: 15: 12.280 + 0100 [initandlisten]  

And now when I want to show the archive, I Normally I type:

Show archive

but it does not show any archive << P>

and when I type

show dbs

< / Blockquote>

I got the terminal: < / P>

  Administrator (empty) Local 0.078GB MapperData 0.078 GB Test (empty) ZIP (empty)  

This means that the database ZIP is empty, but when I Open it, there are so many documents.

Can anyone help me? thank you in advanced.

  Mongoimport - db mappedred - colonation zip - file zip json  < / Pre> 

This command imports data in the zips.json file from the zips name store mapread database.

And now when I want to show the archive, I normally type: Show the collection but it does not show any collections. Like this:

By default, when you open a new mango client, then use this test database I.e. i.e. without switched all tasks will be done on the database test database.

Since the mongoimport command is executed on the mapread database, and the default test is not in the database, you will have test No collection is visible in the database

When you do show DBS , it lists all the existing databases. You can see the new Mapreads database to be listed here. zips which you see here is a database that you accidentally created, and is not a collection in which you imported the data.

Which means the database zip is empty, but when I open it, there are so many documents.

Yes, the database named zip is empty; what you are looking for is zip Archive . Therefore, you need to issue commands: use mapreads; , first to switch to the MapRad database, when you release the show archive , you will see the zips < / Code> archive.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -