Define user in hue on EMR provisioning
Environment
EMR cluster (I tested on 5.20.0 and 5.29.0)
Problem
Every time the new EMR cluster is provisioned during the first login to HUE I was forced to provide user name and password. To be sure that the password is the same, so the whole team can use it, I automated the user setup during EMR provisioning.
##Solution
create a script file setup-default-user.sh and upload it to s3. The script below create a user hadoop
with password Pa$$word123
.
After EMR cluster is provisioned add a step. As we provision an EMR cluster via terraform, the script looks like:
ClusterId is defined as an output of the terraform script