databricks how to install additional java packages

 

To create to a mongodb atlas, you need to have the proper library and have your compute instance setup already. 

Select Libraries tab and click on "install new".




Then select maven and click on search packages. You will see a whole list of packages available. 




You can select from Maven central or spark packages. We are just going to search for "mongo-spark" and then select this package. 



If you're getting similiar error messages as shown here, then try to provision your compute as a single personal instance. 

"Jars and Maven Libraries on Shared Clusters must be on the allowlist. Failed Libraries: org.mongodb.spark:mongo-spark-connector_2.12:3.0.1: PERMISSION_DENIED: 'org.mongodb.spark:mongo-spark-connector_2.12:3.0.1' is not in the artifact allowlist"














Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm