- Home
- Unravel 4.5 Documentation
- Advanced topics
- Configurations
- Connecting to the Hive Metastore
- Configuring Microsoft JDBC to connect to Hive Metastore
Configuring Microsoft JDBC to connect to Hive Metastore
Download Microsoft JDBC Driver 7.0 for SQL Server JAR from Microsoft here to Unravel node.
Extract the downloaded file.
tar -xvzf sqljdbc_
version
_enu.tar.gzCreate the following directories if they do not exist.
mkdir -p /usr/local/unravel/share/java
Copy mssql-jdbc-7.0.0.jre8.jar to the following locations.
sudo cp sqljdbc_7.0/enu/mssql-jdbc-7.0.0.jre8.jar /usr/local/unravel/share/java
In
/usr/local/unravel/etc/unravel.properties
, edit the following properties:Property/Description
Set by user
Unit
Default
javax.jdo.option.ConnectionDriverName
JDBC Driver class name for the data store containing the metadata.
Examples:
MySQL:
com.mysql.jdbc.Driver
Oracle:
oracle.jdbc.driver.OracleDriver
Microsoft:
com.microsoft.sqlserver.jdbc.SQLServerDriver
Required
string
-
javax.jdo.option.ConnectionPassword
Password used to access the data store.
Required
string
-
javax.jdo.option.ConnectionUserName
Username used to access the data store.
Required
string
-
javax.jdo.option.ConnectionURL
JDBC connection string for the data store containing the metadata of the form: jdbc:
DB_Driver
://HOST
:PORT
/hiveExample:
Oracle:
jdbc:oracle:thin:@prodHost:1521:ORCL
Microsoft:
jdbc:sqlserver://
jdbc_url
Requited
string
(URL)
-
Tip
To locate the values for the above properties see Obtaining Hive Metastore details.
For example,
javax.jdo.option.ConnectionURL=jdbc:sqlserver://
jdbc_url
javax.jdo.option.ConnectionDriverName=com.microsoft.sqlserver.jdbc.SQLServerDriver javax.jdo.option.ConnectionPassword=hive-metastore-database-password
javax.jdo.option.ConnectionUserName=hive-metastore-database-user
Restart Unravel Server.
sudo /etc/init.d/unravel_all.sh restart