docs/interpreter/mongodb.md
{% include JB/setup %}
MongoDB is a general purpose, document-based, distributed database built for modern application developers and for the cloud era.
This interpreter use mongo shell to execute scripts
Use mongo-shell JavaScript to analyze data as you need.
First, you need to install mongo shell with Zeppelin in the same machine. If you use mac with brew, follow this instructions.
brew tap mongodb/brew
brew install mongodb/brew/mongodb-community-shell
Or you can follow this mongo shell Second, create mongodb interpreter in Zeppelin.
<table class="table-configuration"> <tr> <th>Name</th> <th>Default Value</th> <th>Description</th> </tr> <tr> <td>mongo.shell.path</td> <td>mongosh</td> <td>MongoDB shell local path. Use `which mongosh` to get local path in linux or mac. (For below [version 5.0](https://www.mongodb.com/docs/manual/release-notes/5.0/#shell-changes), check `mongo`)</td> </tr> <tr> <td>mongo.shell.command.table.limit</td> <td>1000</td> <td>Limit of documents displayed in a table. Use table function when get data from mongodb</td> </tr> <tr> <td>mongo.shell.command.timeout</td> <td>60000</td> <td>MongoDB shell command timeout in millisecond</td> </tr> <tr> <td>mongo.server.host</td> <td>localhost</td> <td>MongoDB server host to connect to</td> </tr> <tr> <td>mongo.server.port</td> <td>27017</td> <td>MongoDB server port to connect to</td> </tr> <tr> <td>mongo.server.database</td> <td>test</td> <td>MongoDB database name</td> </tr> <tr> <td>mongo.server.authentdatabase</td> <td></td> <td>MongoDB database name for authentication</td> </tr> <tr> <td>mongo.server.username</td> <td></td> <td>Username for authentication</td> </tr> <tr> <td>mongo.server.password</td> <td></td> <td>Password for authentication</td> </tr> <tr> <td>mongo.interpreter.concurrency.max</td> <td>10</td> <td>Max count of scheduler concurrency</td> </tr> </table> ## Examples The following example demonstrates the basic usage of MongoDB in a Zeppelin notebook.  Or you can monitor stats of mongodb collections. 