You can use this Docker image to start the Tez UI and Application Timeline Server and view the Tez UI locally.
- Install Docker
You can either build this Docker image yourself, or use the public image here: ghcr.io/aws-samples/emr-serverless-tez-ui:latest
- Download the files in the
tez-ui
directory from the GitHub repository. - Login to ECR if not already done.
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 755674844232.dkr.ecr.us-east-1.amazonaws.com
- Build the image
cd $SOURCE_ROOT/utilities/tez-ui
docker build -t emr/tez-ui .
You can use a pair of AWS access key and secret key, or temporary AWS credentials.
- Set a few environment variables relevant to your job.
export S3_LOG_URI=s3://${S3_BUCKET}/logs
export APPLICATION_ID=001122334455
export JOB_RUN_ID=667788990011
- Set your AWS access key and secret key, and optionally session token.
export AWS_ACCESS_KEY_ID="ASIAxxxxxxxxxxxx"
export AWS_SECRET_ACCESS_KEY="yyyyyyyyyyyyyyy"
export AWS_SESSION_TOKEN="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
- Run the Docker image
./start-ui.sh <S3-Bucket> <ApplicationId> <jobid>
- Access the Tez UI via http://localhost:8088