EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB440824: How to add the MapD Connector


Community Admin

• Strategy


MapD is a GPU-accelerated SQL database and data visualization platform that leverages GPUs for interactive analytics on big data.

Why MapD?
During last 8 to 10 years, there has been an exponential growth of business data in organizations worldwide, but the computing power of the CPU has not increased at the same pace. Yet users expect sub-second response times to queries into the datasets saved on a CPU. Massively parallel processing frameworks have tried solve this problem: Hadoop and other big data technologies (SparkSQL, Hive, Drill) try to bridge this gap by distributing the computation among commodity hardware, and this works fine for batch jobs. However, these frameworks usually cannot achieve sub-second response times in interactive queries due to inter-node communication and synchronization. MapD tries to bridge the gap between the large data to be processed and the lack of computing resources to process it quickly enough by performing database computations on  a GPU. A GPU is a massively parallel computing systems optimized for numerical computations.
MapD would sit on top of the persistent storage such as relational DB, hadoop based DB, then bring a subset of the database for fast interactive analytics. Also, MapD supports ingesting data on real time through kafka. In order to visualize the data you can connect through Strategy following steps found later in this document.
When should you use MapD?
For query response time optimization, MapD performs best when its dataset is loaded in GPU RAM (VRAM). Once the dataset is loaded GPU RAM MapD, MapD has the fastest response times according to independent benchmarks (check benchmark section).
MapD connector will be shipped out of the box in Strategy 11.1 (excluding the JDBC driver). And for versions before that, please follow below steps to connect to MapD:
Steps:

  1. Download the "database_mapd.pds", "dtmapping_mapd.xsl", "dbproperties_mapd.xsl", and "AddConnector.jar" in the "MapDfiles.zip" file attached to this page below.
  2. Place all files above in same folder.
  3. Find the DATABASE.PDS file from Strategy Intelligence Server installation:
    1. Windows default installation: "C:\program files (x86)\Common Files\MicroStrategy\DATABASE.PDS"
    2. Linux: $MSTR_HOME/install/DATABASE.PDS
  4. Find the DTMAPPING.PDS file from Strategy Intelligence Server installation:
    1. Windows default installation: "C:\program files (x86)\Common Files\MicroStrategy\DTMAPPING.PDS"
    2. Linux: $MSTR_HOME/install/DTMAPPING.PDS
  5. Find the DBProperties.xml file from Strategy Web Server installation folder:
    1. If "MSTR_WEB_HOME" is the Strategy web server home folder, then MSTR_WEB_HOME/WEB-INF/xml/DBProperties.xml
  6. Place the DATABASE.PDS, DTMAPPING.PDS and DBProperties.xml in the same folder with the files from the attached zip file below and run the following commands:



$java -jar AddConnector.jar --file dtmapping_mapd.xsl --target DTMAPPING.PDS
The file DTMAPPING.PDS has been updated.
$java -jar AddConnector.jar --file dbproperties_mapd.xsl --target DBProperties.xml
The file DBProperties.xml has been updated.

  1. Open "database_mapd.pds" and copy the  <DEFINE > tag then edit "DATABASE.PDS" file and add the entry after the last "<DEFINE " tag. Just like in below image:
ka04W000000ObCdQAK_0EM44000000WNeH.png
  1. Open "database_mapd.pds" and copy the  <DSSOBJECT > tag then edit "DATABASE.PDS" file and add the entry after  the last "<DSSOBJECT " tag. Just like in below image:
ka04W000000ObCdQAK_0EM44000000WNeM.png
  1. Save the DATABASE.PDS file.
  2. Replace the DATABASE.PDS, DTMAPPING.PDS and DBProperties.xml in their original locations (specified in steps 4-6 above).
  3. Update the metadata in the IntelligenceServer box, restart the Intelligence Server.
  4. Also, find the file ConnstrMapping.json.
    1. Linux: $MSTR_HOME\install\ConnstrMapping.json
    2. Windows: C:\Program files (x86) \ Common Files \ Strategy \ ConnstrMapping.json
  5. Add the following line at the end of the section "JarToJdbcDriver"



"mapdjdbc-1.0-SNAPSHOT-jar-with-dependencies.jar": "com.mapd.jdbc.MapDDriver"

  1. Restart the web server
  2. Place MapD driver file "mapdjdbc-1.0-SNAPSHOT-jar-with-dependencies.jar" in the IntelligenceServer box:
    1. Windows: C:\Program Files(x86)\Common Files\MicroStrategy\JDBC
    2. Linux: $MSTR_HOME\install\JDBC\
  3. See the MapD connector available in Strategy web data import page!:
ka04W000000ObCdQAK_0EM44000000WNeW.png
  1. To connect, please specify the connection like: host:port:database. Not like host:port/database as suggested by the GUI, this is a bug.
ka04W000000ObCdQAK_0EM44000000WNeb.png
ka04W000000ObCdQAK_0EM44000000WNeg.png

Comment

0 comments

Details

Knowledge Article

Published:

May 18, 2018

Last Updated:

December 28, 2018