This repository aims to provide a Alluxio Cluster for tests by docker-compose. This Alluxio Cluster is configured to mount a s3 bucket.
- Must have an aws credentials file configured in the user's path. (e.g: /home/${USER)/.aws/credentials)
- Export the profile configured in your aws credentials file using AWS_PROFILE enviroment, e.g:
export AWS_PROFILE=anyprofile
It's necessary to export the ip of your local host so that external clients to the docker network can access workers nodes.
export EXTERNAL_IP=$(ipconfig getifaddr en0)
export EXTERNAL_IP=$(hostname -I | awk '{print $1}')
Reference: https://docs.alluxio.io/os/user/stable/en/ufs/S3.html#identity-and-access-control-of-s3-objects
Find and export aws canonical id
export AWS_CANONICAL_ID=$(aws s3api list-buckets --query "Owner.ID" | sed "s/\"//g")
Export local user
export CLIENT_USER=${USER}
docker exec alluxio-master bash -c "./bin/alluxio fs mount --readonly alluxio://alluxio-master:19998/{INNER MNT PATH ALLUXIO} s3://{YOUR BUCKET S3} --shared"