'How to run documentDb (mongoDb) in Zeppelin using AWS EMR?

I am using Zeppelin inside an AWS EMR. Then i created a DocumentDb instance and tried to run it through Zeppelin

but when I try to run the code it gives the error as there isn't any MongoDB Java Driver dependency.

<console>:25: error: object mongodb is not a member of package org
       import org.mongodb.scala._
                  ^
<console>:26: error: object bson is not a member of package org
       import org.bson._
                  ^

Is there any way to add maven dependency through which I can run mongo in Zeppelin?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source