4. Setting up RDBMS for Use with Hive Metastore

Hive supports multiple databases. This section uses Oracle as an example. To use OracleDB as the Hive Metastore database, you must have already installed HDP and Hive.

To use OracleDB as the Hive Metastore database, you must have already installed HDP and Hive.

To set up Oracle for use with Hive:

  1. On the Hive Metastore host, install the appropriate JDBC .jar file.

  2. Create a user for Hive and grant it permissions using SQL*Plus, the Oracle database admin utility:

    # sqlplus sys/root as sysdba
    CREATE USER $HIVEUSER IDENTIFIED BY $HIVEPASSWORD; 
    GRANT SELECT_CATALOG_ROLE TO $HIVEUSER;
    GRANT CONNECT, RESOURCE TO $HIVEUSER; 
    QUIT;

    Where $HIVEUSER is the Hive user name and $HIVEPASSWORD is the Hive user password.


loading table of contents...