You can use this Docker image to start the Tez UI and Application Timeline Server and view the Tez UI locally.
- Install Docker
- Clone this repository and change into the
utilities/tez-ui
directory.
git clone https://github.com/aws-samples/emr-serverless-samples.git
cd emr-serverless-samples/utilities/tez-ui/
- Build the image
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}/hive-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
docker run --rm -it \
-p 8088:8088 -p 8188:8188 -p 9999:9999 \
-e AWS_REGION=us-east-1 -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN \
-e S3_LOG_URI -e JOB_RUN_ID -e APPLICATION_ID \
emr/tez-ui
- Access the Tez UI via http://localhost:9999/tez-ui/