3.3. Using Oozie with PostgreSQL

To set up PostgreSQL for use with Oozie:

  1. Create a user for Oozie and grant it permissions.

    • Using the PostgreSQL database admin utility:

      echo "CREATE DATABASE $OOZIEDATABASE;" | psql -U postgres
      echo "CREATE USER $OOZIEUSER WITH PASSWORD '$OOZIEPASSWORD';" | psql -U postgres
      echo "GRANT ALL PRIVILEGES ON DATABASE $OOZIEDATABASE TO $OOZIEUSER;" | psql -U postgres
    • Where $OOZIEUSER is the Oozie user name, $OOZIEPASSWORD is the Oozie user password and $OOZIEDATABASE is the Hive database name.


loading table of contents...