Hey There,

You need to create a new storage plugin instance rather than trying to
embed two in the same plugin instance.  Go back to the
http://<hostname>:8047/storage
path and then type a new name for your second mongo database.  Maybe
mongodev and then add the configuration for that one.  Node that you'll
then need to query that data using the select * from
mongodev.[db].[collection] pattern.

J

On Mon, Jun 8, 2015 at 10:47 AM, Manoharan Rangaswamy <
[email protected]> wrote:

> I have a mongo plugin configured to connect to an instance through the
> Drill UI as below
>
> {
>   "type": "mongo",
>   "connection": "mongodb://host1:27017/",
>   "enabled": true
> }
>
> Is it possible to setup mongo plugin to connect to multiple mongo
> instances? If so, can you please point me to the documentation or example
> on how to configure it. I tried to duplicate as below and as soon as I
> click "Update", it took only 1 instance.
>
> {
>   "type": "mongo",
>   "connection": "mongodb://host1:27017/",
>   "enabled": true
> },
> {
>   "type": "mongo",
>   "connection": "mongodb://host2:27017/",
>   "enabled": true
> }
>
> Thanks,
> Mano
>

Reply via email to