Skip to content

Commit

Permalink
adding steps to create virtual environment (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanathanSabapathy1 authored Mar 14, 2024
1 parent 6969e63 commit 7a1a1ee
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,20 @@ yum install git
cd redshift-test-drive/
export REDSHIFT_TEST_DRIVE_ROOT=$(pwd)
```
02. Execute the following command from the root directory to install all the required packages:
02. Create a virtual environment inside the redshift-test-drive directory
```
python3 -m venv testDriveEnv
source testDriveEnv/bin/activate
```
03. Execute the following command from the root directory to install all the required packages:
```
cd $REDSHIFT_TEST_DRIVE_ROOT && make setup
```
03. Refer to the Table of Content which will point out the different tools and README links of your interest.

04. Refer to the Table of Content which will point out the different tools and README links of your interest.
05. Finally after using the utility to run different benchmarks to deactivate virtual environment, run the following
```
deactivate
```

<br>

Expand Down
18 changes: 13 additions & 5 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,33 @@ It may take around three hours for the audit logs to be delivered to S3.
cd redshift-test-drive/
export REDSHIFT_TEST_DRIVE_ROOT=$(pwd)
```
4. Create a virtual environment inside the redshift-test-drive directory
```
python3 -m venv testDriveEnv
source testDriveEnv/bin/activate
```
4. Install necessary Python libraries. In the root directory (`<directory you cloned the git repository into>/`), you will find the file requirements.txt. Run the following command
5. Install necessary Python libraries. In the root directory (`<directory you cloned the git repository into>/`), you will find the file requirements.txt. Run the following command
```
cd $REDSHIFT_TEST_DRIVE_ROOT && make setup
```
5. Follow the steps provided by the [documentation](https://docs.aws.amazon.com/redshift/latest/mgmt/configure-odbc-connection.html) and install ODBC Driver for Linux
6. Follow the steps provided by the [documentation](https://docs.aws.amazon.com/redshift/latest/mgmt/configure-odbc-connection.html) and install ODBC Driver for Linux
6. Check if AWS CLI is configured in the machine. If it’s not configured, follow the steps in [installation guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html)
7. Check if AWS CLI is configured in the machine. If it’s not configured, follow the steps in [installation guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html)
7. Configure AWS CLI:
8. Configure AWS CLI:
* Provided IAM user should have Redshift and S3 permissions. If temporary IAM credentials are being used, ensure they do not expire before the replay ends.
* The IAM user needs to have permission to read the Audit logs S3 bucket configured in Step 1. This is required for the Extraction step of Workload Replicator.
* The IAM user needs to have Redshift::GetClusterCredentials and redshift:DescribeLoggingStatus This is required for the Replay step of Workload Replicator
* **IMPORTANT**: Default Region needs to be configured as well - use the region you intend to run the workload replicator against
```
aws configure
```
9. Finally after using the utility to run different benchmarks to deactivate virtual environment, run the following
```
deactivate
```
### Step 3 - COPY and UNLOAD setup
Expand Down

0 comments on commit 7a1a1ee

Please sign in to comment.