NVIDIA/presto-mapd-connector

Name: presto-mapd-connector

Owner: NVIDIA Corporation

Description: A Presto to MapD connector, enabling MapD queries via Presto

Created: 2017-12-20 16:42:13.0

Updated: 2018-03-03 22:11:25.0

Pushed: 2018-01-27 00:34:30.0

Homepage: null

Size: 13

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

@author rohit-kulkarni

Presto-MapD-Connector

Presto-MapD-Connector makes it possible to query MapD via Presto.

Installation

Requirements
Setup
  1. Clone this repository and cd into it

    clone git@github.com:NVIDIA/presto-mapd-connector.git
    resto-mapd-connector
    
  2. Create a lib directory and copy the mapd jdbc jar into it (mapdjdbc-1.0-SNAPSHOT-jar-with-dependencies.jar)

    r lib
    MAPD_HOME/mapdjdbc-1.0-SNAPSHOT-jar-with-dependencies.jar lib/
    
  3. Build/package the project

    package
    
  4. Copy the jar to your presto plugin directory

    r $PRESTO_HOME/plugin/mapdjdbc
    resto-mapd-jdbc-1.0-jar-with-dependencies.jar $PRESTO_HOME/plugin/mapdjdbc
    
  5. Make a mapdjdbc.properties file

    r -p $PRESTO_HOME/etc/catalog && touch $PRESTO_HOME/etc/catalog/mapdjdbc.properties
    
  6. In the properties file, enter your credentials to connect to mapd…

    ector.name=mapdjdbc
    ection-url=jdbc:mapd:localhost:9091:mapd
    ection-user=<username>
    ection-password=<password>
    
  7. You can now start mapd and presto with the ability to query mapd from presto!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.