Configuring a SQuirreL SQL Client for MapD Core¶
SQuirreL SQL Client is a graphical Java program that lets you perform common tasks such as viewing the structure of a JDBC-compliant database, browsing data in tables, and issuing SQL commands. For more information on SQuirreL SQL, see http://squirrel-sql.sourceforge.net.
This topic describes how to install and configure SQuirreL SQL for use with MapD Core.
Prerequisites¶
Download the MapD JDBC Driver¶
You can find the MapD JDBC Driver in the MapD distribution: for example, in $MAPD_PATH/bin/mapd-1.0-SNAPSHOT-jar-with-dependencies.jar
. Alternatively, you can download the latest JDBC driver from https://s3-us-west-2.amazonaws.com/mapd-artifact/mapd-1.0-SNAPSHOT-jar-with-dependencies.jar.
Verify that Java is Installed on Your Client Machine¶
To verify the Java version installed on your machine:
- On Windows, look in Control Panel > Programs > Programs and Features.
- On OSX, open System Preferences > Java and click About....
Download SQuirreL SQL¶
Download the version of SQuirreL SQL for your platform from http://squirrel-sql.sourceforge.net.
Follow the instructions on the website to install SQuirreL SQL.
Configure SQuirreL SQL for the MapD JDBC Driver¶
These are the steps to configure SQuirreL for use with MapD Core.
Configure the MapD Driver¶
- Open SQuirreL SQL.
- Click Drivers.
- Click + to add a new driver.
- Enter the Name for your driver. The name is an alias within SQuirreL for this driver.
- Enter the Example URL. For MapD, the required components are “jdbc”, “mapd”, a valid DNS name for a machine running MapD, the MapD port number, and the name of the MapD database. For example, jdbc:mapd:machine:9091:dbname. If you are not sure of these values, contact your system administrator.
- Enter the Website URL.
- Enter the Class Name,
com.mapd.jdbc.MapDDriver
. - Click the Extra Class Path tab.
- Click Add and navigate to the directory where mapd-1.0-SNAPSHOT-jar-with-dependencies.jar is stored.
- Click Open.
- Click OK.
Configure the MapD Alias¶
- Click Aliases.
- Click + to add a new Alias.
- Give the Alias a Name.
- Choose MapD as the Driver.
- Update the example URL with the specific URL for your MapD instance.
- Enter your User Name and Password.
- Optionally set Auto Logon.
- Optionally set Connect at Startup.
- Click Test to verify the connection.
- Click OK.