The Hive ODBC Driver enables client applications such as Excel PowerPivot to access a Hive data warehouse running on Windows Azure. This driver requires the ODBC Server Port to be opened on the Hadoop Services on Azure ( portal. This walkthrough provides the following steps that describe how to access Hive on Windows Azure from Excel PowerPivot in detail.

  1. Open ODBC Server Port on Hadoop on Azure portal.
  2. Download and install Hive ODBC Driver.
  3. Create an ODBC DSN pointing to Hive on Azure using the ODBC Driver.
  4. Configure Excel PowerPivot

Alternatively, you can watch the following video posted to youtube that demonstrates these steps.

See Also

 Open ODBC Server Port on Hadoop on Azure Portal.

  1. Log in to (Hadoop Services on Azure) portal.
    The Open Ports tile on the portal should indicate whether the ODBC Server Port is locked.
  2. If it is locked, click the Open Ports tile. Use the slider to enable ODBC Server Port (port number: 10000).
    When you navigate back to portal home page, the Open Ports tile now should indicate that the ODBC Server Port is unlocked. 

Download and Install the Hive ODBC Driver

  1. Click Downloads tile on the Hadoop Services on Azure portal.
  2. Select either 32-bit/64-bit version of the Hive ODBC Driver installation file depending on the version of Excel 2010 you have on your computer.
    Installing the Hive ODBC Driver is pretty straight forward.

Create an ODBC DSN Pointing to Hive on Windows Azure

  1. Launch ODBC Data Source Administrator from Administrative Tools.
  2. Click Add to create a new DSN.
  3. Select HIVE from the list of ODBC drivers.
  4. In the ODBC Hive Setup dialog box, do the following:
    1. Specify a friendly name for the DSN. For example: Hive on Azure.
    2. Specify a description for the DSN.
    3. Type the host name, which you can get from the Hadoop Services On Azure portal after you sign-in.
    4. Keep the default ODBC Port number: 10000.
    5. Select Username/Password option.
    6. Type the name of the user that you specified when requesting for the Hadoop cluster to be created on Azure.
    7. Click OK to close the ODBC Hive Setup dialog box.

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

 Configure Excel PowerPivot to Access Hive on Azure

  1. Launch Excel 2010, switch to PowerPivot tab, and click PowerPivot Window on the ribbon to launch PowerPivot.Click From Other Sources button on the ribbon to launch the Table Import Wizard.
  2. Select Others (OLEDB/ODBC) since we will be using the ODBC Driver for Hive to access Hive on Azure, and click Next.
  3. Type a friendly name for the connection. Click Build to build the connection string.
  4. In the Data Link Properties dialog box, switch to the Provider tab, select Microsoft OLEDB Provider for ODBC Drivers, and click Next.
  5. Select Use Connection String, and click Build.
  6. Switch to the Machine Data Sources tab, select Hive on Azure DSN that you had created earlier using the ODBC Data Source Administrator, and click OK.
  7. Enter the password for the Hadoop user in the ODBC Hive Setup dialog box and click OK to close it.
  8. Select the Allow Saving Password option to save the password in the connection string. Click OK to close the Data Link Properties dialog box.
  9. Click Test Connection in the Table Import Wizard to test the connection.
  10. Click Next. You see two options to import the data. The first one lets you choose from a list of tables and views from which you want to import the data and the second one lets you specify a HiveQL query that you want to run against your Hive data warehouse to retrieve the data.
  11. In this walkthrough, you select the first option, and click Next.
  12. Select a table from the list and click Preview & Filter to preview and filter the data.
  13. Click Finish to start importing the data from Hive into PowerPivot.
  14. Click Close to see the data in the PowerPivot.