Ready to get started?

Download a free trial of the Email Driver to get started:

 Download Now

Learn more:

Email Icon Email JDBC Driver

Rapidly create and deploy powerful Java applications that integrate powerful Email send and receive capabilities. Send & Receive Email through POP3, IMAP, and SMTP, Verify Addresses, and more!

Connect to Email Data in as an External Source in Dremio



Use the CData JDBC Driver to connect to Email as an External Source in Dremio.

The CData JDBC Driver for Email implements JDBC Standards and allows various applications, including Dremio, to work with live Email data. Dremio is a data lakehouse platform designed to empower self-service, interactive analytics on the data lake. With the CData JDBC Driver, you can include live Email data as a part of your enterprise data lake. This article describes how to connect to Email data from Dremio as an External Source.

The CData JDBC Driver enables high-speed access to live Email data in Dremio. Once you install the driver, authenticate with Email and gain immediate access to Email data within your data lake. By surfacing Email data using native data types and handling complex filters, aggregations, & other operations automatically, the CData JDBC Driver grants seamless access to Email data.

Build the ARP Connector

To use the CData JDBC Driver in Dremio, you need to build an Advanced Relation Pushdown (ARP) Connector. You can view the source code for the Connector on GitHub or download the ZIP file (GitHub.com) directly. Once you copy or extract the files, run the following command from the root directory of the connector (the directory containing the pom.xml file) to build the connector.

mvn clean install

Once the JAR file for the connector is built (in the target directory), you are ready to copy the ARP connector and JDBC Driver to your Dremio instance.

Installing the Connector and JDBC Driver

Install the ARP Connector to %DREMIO_HOME%/jars/ and the JDBC Driver for Email to %DREMIO_HOME%/jars/3rdparty. You can use commands similar to the following:

ARP Connector

docker cp PATH\TO\dremio-email-plugin-20.0.0.jar dremio_image_name:/opt/dremio/jars/

JDBC Driver for Email

docker cp PATH\TO\cdata.jdbc.email.jar dremio_image_name:/opt/dremio/jars/3rdparty/

Connecting to Email

Email will now appear as an External Source option in Dremio. The ARP Connector built uses a JDBC URL to connect to Email data. The JDBC Driver has a built-in connection string designer that you can use (see below).

Built-in Connection String Designer

For assistance in constructing the JDBC URL, use the connection string designer built into the Email JDBC Driver. Double-click the JAR file or execute the jar file from the command line.

java -jar cdata.jdbc.email.jar

Fill in the connection properties and copy the connection string to the clipboard.

The User and Password properties, under the Authentication section, must be set to valid credentials. The Server must be specified to retrieve emails and the SMTPServer must be specified to send emails.

NOTE: To use the JDBC Driver in Dremio, you will need a license (full or trial) and a Runtime Key (RTK). For more information on obtaining this license (or a trial), contact our sales team.

Add the Runtime Key (RTK) to the JDBC URL. You will end up with a JDBC URL similar to the following:

jdbc:email:RTK=5246...;User=username@gmail.com;Password=password;Server=imap.gmail.com;Port=993;SMTP Server=smtp.gmail.com;SMTP Port=465;SSL Mode=EXPLICIT;Protocol=IMAP;Mailbox=Inbox;

Access Email as an External Source

To add Email as an External Source, click to add a new source and select Email. Copy the JDBC URL and paste it into the New Email Source wizard.

Save the connection and you are ready to query live Email data in Dremio, easily incorporating Email data into your data lake.

More Information & Free Trial

Using the CData JDBC Driver for Email in Dremio, you can incorporate live Email data into your data lake. Check out our CData JDBC Driver for Email page for more information about connecting to Email. Download a free, 30 day trial of the CData JDBC Driver for Email and get started today.