There are several configuration files that need to be set up for Hive/HCatalog.
From the file you downloaded in Download Companion Files,
extract the files in configuration_files -> hive
to a temporary
directory.
In the temporary directory, locate the following file and modify the properties based on your
environment. Search for TODO
in the files for the properties to replace.
Table 6.1. hive-site.xml
Property | Example | Description |
---|---|---|
javax.jdo.option.ConnectionURL |
For MySQL database:
For Oracle database:
|
Enter your JDBC connection string. |
javax.jdo.option.ConnectionDriverName |
For MySQL database:
For Oracle database:
| JDBC Connection Driver Name. |
javax.jdo.option.ConnectionUserName |
|
Enter your MySQL/Oracle user credentials from Database Requirements. |
javax.jdo.option.ConnectionPassword |
| |
hive.metastore.uris |
|
URI for client to contact metastore server. To enable HiveServer2, leave the property value empty. |
On all Hive hosts replace the installed Hive configs with the modified configuration files and set appropriate permissions:
rm -rf $HIVE_CONF_DIR mkdir -p $HIVE_CONF_DIR
<Copy all the modified configuration files in hive to
$HIVE_CONF_DIR
on all the nodes>
chown -R $HIVE_USER:$HADOOP_GROUP $HIVE_CONF_DIR/../ chmod -R 755 $HIVE_CONF_DIR/../