Configuring a Hive Metastore
In order for the Reports > Data Insights tab to populate correctly you must configure the Hive Metastore Access parameters. You also have the option to configure the JDBC parameters managing JDBC pooling.
Download the right JDBC connector JAR for your database:
If you're using MySQL as the Hive Metastore database, download the MySQL JDBC connector JAR from MySQL Download ConnectorJ.
If you're using Oracle as the Hive Metastore database, download the Oracle JDBC connector JARs
ojdbc7.jar
andojdbc6.jar
from Oracle Database 12c Release 1 JDBC Driver Downloads.Note
Make sure the
unravel
account has read permission.
In
/usr/local/unravel/etc/unravel.properties
, edit the following properties:In other words,
javax.jdo.option.ConnectionURL=jdbc:
drivertype
://hive-metastore-database-host
/hive javax.jdo.option.ConnectionDriverName=driverclass
javax.jdo.option.ConnectionPassword=hive-metastore-database-password
javax.jdo.option.ConnectionUserName=hive-metastore-database-user
For example,
javax.jdo.option.ConnectionURL=jdbc:mysql://congo.unraveldata.com/hive javax.jdo.option.ConnectionDriverName=com.mysql.jdbc.Driver javax.jdo.option.ConnectionUserName=hive javax.jdo.option.ConnectionPassword=hadoop
Restart Unravel Server.
sudo /etc/init.d/unravel_all.sh restart
In Unravel UI's Applications | Applications window, confirm that Hive queries are displayed.