As with most BI tools, QlikView can use Apache Hive (via ODBC connection) as the SQL access to data in Hadoop. Here we are going to talk about qlikview how to connect Hortonworks Hive via ODBC.
1.Those are versions of each component we installed in Hortonworks
|Hue||HDP||Hadoop||Hive-Hcatalog||Ambari||HBase||Hortonworks ODBC Driver|
2.We need to make sure HiveServer2 started.
3.Here are the configuration for hive server2. Please note the authentication is NONE.
Configure ODBC connection
1.Install the 64 bits Hortonworks Hive ODBC Driver, you can download ODBC Driver from here.
2.Configure ODBC connection
Open Control Panel, search for ODBC and open ODBC Data Source Administrator, in System DSN tab click Add, configure the data source as below, click OK.
Choosing a Global Software Development Partner to Accelerate Your Digital Strategy
To be successful and outpace the competition, you need a software development partner that excels in exactly the type of digital projects you are now faced with accelerating, and in the most cost effective and optimized way possible.
Connect to ODBC data source
1.Open QlikView 11 client, (close the Wizard if it appears), click File -> Edit Script, in Data tab choose ODBC as Database and click Connect, select the Data Source you created in previous step and type the User ID/Password:
2.The ODBC connection code are generated automatically in scripts
3.Click File -> Reload to load data
Tips for Hive ODBC Connection Issue
The ODBC connection might failed for some reasons. Here are some tips for trouble shooting.
1.Make sure hive server2 started.
a) You can verify that port 10000 is in use once you start hiveserver2.
sudo netstat -tulpn | grep 10000
b) HiveServer2 supports a new command shell Beeline that works with HiveServer2. It’s a JDBC client that is based on the SQLLine CLI.
2.Make sure authentication mechanism of hive server2 is proper. You should select mechanism base on hive configuration file. Here we set ‘NONE’ in configuration file. But when mechanism ‘No Authentication’ is selected, the test results always are timeout, and when ‘username’ selected, any value entered in username input box, test result is successfully. It’s weird.