Adding Query Processor service to a cluster
The Query Processor service indexes Hive and Tez events and provides APIs to access them. It is required if you want to view the Queries tab (query history and query details) on the Hue Job Browser. You must install the Query Processor service on your CDP Private Cloud Base clusters manually.
This task assumes that you already have a PostgreSQL database installed on a host in your cluster.
Next, you need to create a database for the Query Processor service with the required
roles. To create the Query Processor database:
- SSH into your database host as a root user.
- Start the psql terminal by entering the following command:
sudo -u postgres psql
- Run the following statement while specifying the username, password, and a
database name for the Query Processor:
CREATE ROLE [***QP-USER***] WITH LOGIN PASSWORD '[***QP-PASSWORD***]'; ALTER ROLE [***QP-USER***] CREATEDB; CREATE DATABASE [***QP-DATABASE***]; GRANT ALL PRIVILEGES ON DATABASE [***QP-DATABASE***] TO [***QP-USER***];