Connecting Presto with Mongo 4.2

Posted on by By admin, in Databases | 0

This blog would explain how to connect Presto with Mongo 4.2

Prerequisites:

  1. Mongo 4.2
  2. Presto 0.226

To create a connection between Presto and Mongo, follow below process:

Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.

Get your 30 Days Trail Version

  1. We need to create a mongodb connector in Presto.
  2. For that, create a catalog property file i.e. mongodb.properties in presto server
  3. Location : etc/catalog/mongodb.properties

  4. Below are the basic contents to be placed in the file
  5. connector.name=mongodb
    mongodb.seeds=host:port
    

    connector

  6. Restart Presto server

To connect to Mongo which is SSL enabled, below changes are to be made:

  1. Add another configuration property in catalog property file
  2. mongodb.ssl.enabled=true
    
  3. Create a separate keystore in server for SSL certificate.
  4. Import SSL certificate into the keystore created using below command
  5. keytool -import -file “/home/ec2-user/Mongo_SSL.cer” -alias Mongo_SSL -keystore /home/ec2-user/mongoStore -storepass changeit -noprompt

  6. To make Presto access this keystore, we need to add mongostore location in jvm of Presto server.
  7. Add below properties in jvm.config file in Presto server.
  8. Location : etc/jvm.config
    Djavax.net.ssl.trustStore=/home/ec2-user/mongoStore
    Djavax.net.ssl.trustStorePassword=changeit
    

    jvm

  9. Restart Presto server.

In case if you have any queries please get us at support@helicaltech.com

Thank You
Mounika Pulimamidi
BI Developer
Helical IT Solutions Pvt Ltd

logo

Best Open Source Business Intelligence Software Helical Insight Here

logo

A Business Intelligence Framework


logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments