Installing HDP Manually
Also available as:
PDF
loading table of contents...

Setting Up RDBMS for Use with the 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 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.