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
Go to the password.db tab.
Log on to the EMR console. In the left-side navigation pane, click EMR on ACK.
On the EMR on ACK page, find the desired cluster and click Configure in the Actions column.
On the Configure tab, move the pointer over the icon and select password.db.
Modify the configuration item.
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 thehtpasswd
command to generate a password. For Ubuntu, you can run theapt-get install apache2-utils
command to install httpd and then run thehtpasswd
command to generate a password.NoteThe 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.
Click Save.
In the dialog box that appears, configure the Execution Reason parameter and click Save.
Restart Presto.
Click the Service Details tab.
In the Components section, find TrinoCoordinator and click Restart in the Actions column.
In the dialog box that appears, configure the Execution Reason parameter and click OK.
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.