All Products
Search
Document Center

E-MapReduce:Configure the administrator password of a Presto cluster

Last Updated:Dec 09, 2023

Before you access the web UI of Presto and submit Presto jobs, you must configure the administrator password of your Presto cluster. This topic describes how to configure the administrator password of a Presto cluster in the E-MapReduce (EMR) console.

Procedure

  1. Go to the password.db tab.

    1. Log on to the EMR console. In the left-side navigation pane, click EMR on ACK.

    2. On the EMR on ACK page, find the desired cluster and click Configure in the Actions column.

    3. On the Configure tab, move the pointer over the more icon and select password.db.

  2. Modify the configuration item.

    1. On the password.db tab, change the value of admin to a password that is generated by running the htpasswd command.

      For example, you can change the value of admin to a password that is generated by running the htpasswd -nBC 10 admin command.

      For macOS, you can run the htpasswd command to generate a password.

      For CentOS, you can run the yum install httpd command to install httpd and then run the htpasswd command to generate a password. For Ubuntu, you can run the apt-get install apache2-utils command to install httpd and then run the htpasswd command to generate a password.

      Note

      The usage of commands and software packages vary based on the system version and configurations. We recommend that you use commands and software packages based on your business requirements.

    2. Click Save.

    3. In the dialog box that appears, configure the Execution Reason parameter and click Save.

  3. Restart Presto.

    1. Click the Service Details tab.

    2. In the Components section, find TrinoCoordinator and click Restart in the Actions column.

    3. In the dialog box that appears, configure the Execution Reason parameter and click OK.

    4. In the Confirm message, click OK.

      After Presto is restarted, you can use the new password to access the web UI of Presto and submit Presto jobs.