10
HP Vertica® 6.1.x Connecting to HP Vertica 6.1.x with QlikView 11.2 Copyright© 2006-2013 Vertica, an HP Company Date of Publication: 6 May, 2013

Connecting to HP Vertica 6.1.x with QlikView 11my.vertica.com/docs/6.1.x/Ecosystem/HP_Vertica_with_QlikView.pdf · Connecting to the HP Vertica 6.1.x Analytic Database with QlikView

Embed Size (px)

Citation preview

Page 1: Connecting to HP Vertica 6.1.x with QlikView 11my.vertica.com/docs/6.1.x/Ecosystem/HP_Vertica_with_QlikView.pdf · Connecting to the HP Vertica 6.1.x Analytic Database with QlikView

HP Vertica® 6.1.x

Connecting to HP Vertica 6.1.x with

QlikView 11.2

Copyright© 2006-2013 Vertica, an HP Company

Date of Publication: 6 May, 2013

Page 2: Connecting to HP Vertica 6.1.x with QlikView 11my.vertica.com/docs/6.1.x/Ecosystem/HP_Vertica_with_QlikView.pdf · Connecting to the HP Vertica 6.1.x Analytic Database with QlikView

1

Connecting to the HP Vertica 6.1.x Analytic Database with QlikView 11.2

This document discusses connecting HP Vertica Release 6.1.x to QlikView Business Discovery 11.2.

QlikView Business Discovery is a Business Intelligence (BI) tool that, once connected to the HP Vertica Analytics Platform, allows you to access and analyze your data, and create visualizations.

Before using QlikView with HP Vertica, download and install QlikView from the QlikView web site. Launch the executable and follow the prompts for installation.

A general note on HP Vertica’s ecosystem documents: HP Vertica creates ecosystem documents using one specific version of the ecosystem product with one specific version of HP Vertica. In creating each document, HP Vertica makes connections from the ecosystem product using one specific connection type. Versions used are noted within the documents. Other versions of the ecosystem product may work with HP Vertica, but HP Vertica may not have tested other versions.

What This Doc Includes…

Before Connecting QlikView to HP Vertica ................................................................................................ 1 Configuring an ODBC Data Source .................................................................................................. 1 Disabling the QlikView Wizard ........................................................................................................ 3

Connecting to the HP Vertica Database ....................................................................................................... 4 Editing a Script ............................................................................................................................................. 6 Copyright Notice .......................................................................................................................................... 9

Before Connecting QlikView to HP Vertica Before you use QlikView with HP Vertica:

If you do not have the ODBC driver installed, download and install the driver. You can find the ODBC driver available for download on my.vertica.com, on the Download tab. You can download and install the specific HP Vertica ODBC driver alone or an HP Vertica client package that includes the driver.

Note: General information on driver and server compatibility appears in the standard HP Vertica documentation. Refer to the Programmer’s Guide, Client Driver and Server Version Compatibility.

Configure your ODBC data source.

Disable the QlikView wizard. (You do not need the wizard because it works with Excel files only.

Note: QlikView runs on the Windows OS.

Configuring an ODBC Data Source

Configure a data source by setting up a DSN. (Note that the examples that follow specify User DSN; alternatively, you could specify System DSN.)

1. From your Windows desktop, open the ODBC Data Source Administrator.

2. Under the User DSN tab, click Add to create a new data source.

3. On the Create New Data Source dialog, locate and select the Vertica driver.

Page 3: Connecting to HP Vertica 6.1.x with QlikView 11my.vertica.com/docs/6.1.x/Ecosystem/HP_Vertica_with_QlikView.pdf · Connecting to the HP Vertica 6.1.x Analytic Database with QlikView

2

4. Click Finish.

5. Enter your specific data source information in the Vertica ODBC Data Source Configuration dialog.

6. Click Test Connection, and OK when the Connection Succeeded message appears.

The User DSN tab now lists the Vertica driver under User Data Sources.

Page 4: Connecting to HP Vertica 6.1.x with QlikView 11my.vertica.com/docs/6.1.x/Ecosystem/HP_Vertica_with_QlikView.pdf · Connecting to the HP Vertica 6.1.x Analytic Database with QlikView

3

7. Click OK to close the ODBC Data Source Administrator.

Note: There is more complete information on DSNs in the Programmer’s Guide, in the section, Creating an ODBC DSN for Windows Clients.

Disabling the QlikView Wizard

The QlikView wizard does not work with HP Vertica. Follow these steps to disable it.

1. Launch QlikView.

2. From the QlikView start page, choose Settings > User Preferences.

3. From the General tab under User Preferences, uncheck Show “Getting Started Wizard” when creating new document.

4. Click OK.

Page 5: Connecting to HP Vertica 6.1.x with QlikView 11my.vertica.com/docs/6.1.x/Ecosystem/HP_Vertica_with_QlikView.pdf · Connecting to the HP Vertica 6.1.x Analytic Database with QlikView

4

Connecting to the HP Vertica Database Follow these steps to connect to the HP Vertica database through QlikView.

1. From the QlikView Start Page, select the Edit Script icon.

The Edit Script dialog appears.

2. Under the Database dropdown, ensure that ODBC is selected.

3. Click Connect. The Connect to Data Source dialog appears. (The following example uses the Vertica data source we created earlier.)

4. Check Show User DSNs.

Page 6: Connecting to HP Vertica 6.1.x with QlikView 11my.vertica.com/docs/6.1.x/Ecosystem/HP_Vertica_with_QlikView.pdf · Connecting to the HP Vertica 6.1.x Analytic Database with QlikView

5

5. Click Test Connection. (Note that we entered our User ID and Password earlier when we created the data source.)

6. Click OK when you receive the Connection Test Succeeded message.

7. Click OK on the Connect to Data Source dialog.

Note that a line is added to the Edit Script screen, ODBC CONNECT TO Vertica.

Page 7: Connecting to HP Vertica 6.1.x with QlikView 11my.vertica.com/docs/6.1.x/Ecosystem/HP_Vertica_with_QlikView.pdf · Connecting to the HP Vertica 6.1.x Analytic Database with QlikView

6

8. Leave the Edit Script screen up, and continue with the next procedure.

Editing a Script To query the HP Vertica database, you can create SELECT statements through the QlikView

interface by choosing database tables and fields in the Create Select Statement dialog;

QlikView then adds the statements to a script that, when executed, queries and collects information from your Vertica database. You can then include the information in reports and charts in QlikView.

Follow these steps to create SELECT statements and add them to your script.

1. From the Edit Script dialog, click Select.

The Create Select Statement dialog appears with a listing of your database tables.

Page 8: Connecting to HP Vertica 6.1.x with QlikView 11my.vertica.com/docs/6.1.x/Ecosystem/HP_Vertica_with_QlikView.pdf · Connecting to the HP Vertica 6.1.x Analytic Database with QlikView

7

2. Select tables and fields. As you select, click Add; QlikView adds them to the Script tab. When you are done, click OK.

Notice the SELECT statements have been added to the Edit Script dialog.

3. Click OK to accept the Edit Script page as it appears. Note that you can also edit your script manually on this page.

The Main page (QlikView’s “sheet”) appears. See the QlikView documentation for complete information.

Page 9: Connecting to HP Vertica 6.1.x with QlikView 11my.vertica.com/docs/6.1.x/Ecosystem/HP_Vertica_with_QlikView.pdf · Connecting to the HP Vertica 6.1.x Analytic Database with QlikView

8

4. Execute the script by clicking reload.

Save the document if you are prompted to do so.

Your script executes.

Refer to the QlikView documentation for complete information on editing and executing scripts, and defining and displaying objects and charts within QlikView.

Page 10: Connecting to HP Vertica 6.1.x with QlikView 11my.vertica.com/docs/6.1.x/Ecosystem/HP_Vertica_with_QlikView.pdf · Connecting to the HP Vertica 6.1.x Analytic Database with QlikView

9

Copyright Notice

Copyright© 2006-2013 Vertica, an HP Company, and its licensors. All rights reserved.

Vertica, an HP Company

150 CambridgePark Drive

Cambridge, MA 02140

Phone: +1 617 386 4400

E-Mail: [email protected]

Web site: http://www.vertica.com (http://www.vertica.com)

The software described in this copyright notice is furnished under a license and may be used or copied only in accordance with the terms of such license. Vertica, an HP Company software contains proprietary information, as well as trade secrets of Vertica, an HP Company, and is protected under international copyright law. Reproduction, adaptation, or translation, in whole or in part, by any means — graphic, electronic or mechanical, including photocopying, recording, taping, or storage in an information retrieval system — of any part of this work covered by copyright is prohibited without prior written permission of the copyright owner, except as allowed under the copyright laws.

This product or products depicted herein may be protected by one or more U.S. or international patents or pending patents.

Trademarks

Vertica™, the Vertica® Enterprise Edition™, and FlexStore™ are trademarks of Vertica, an HP Company.

Adobe®, Acrobat®, and Acrobat® Reader® are registered trademarks of Adobe Systems Incorporated.

AMD™ is a trademark of Advanced Micro Devices, Inc., in the United States and other countries.

DataDirect® and DataDirect Connect® are registered trademarks of Progress Software Corporation in the U.S. and other countries.

Fedora™ is a trademark of Red Hat, Inc.

Intel® is a registered trademark of Intel.

Linux® is a registered trademark of Linus Torvalds.

Microsoft® is a registered trademark of Microsoft Corporation.

Novell® is a registered trademark and SUSE™ is a trademark of Novell, Inc., in the United States and other countries.

Oracle® is a registered trademark of Oracle Corporation.

Red Hat® is a registered trademark of Red Hat, Inc.

VMware® is a registered trademark or trademark of VMware, Inc., in the United States and/or other jurisdictions.

Other products mentioned may be trademarks or registered trademarks of their respective companies.