From 7a1a1eec319e4ba981b86fa9cf0d548e094c3cbb Mon Sep 17 00:00:00 2001
From: Devanathan Sabapathy
<123671658+DevanathanSabapathy1@users.noreply.github.com>
Date: Thu, 14 Mar 2024 12:00:56 -0700
Subject: [PATCH] adding steps to create virtual environment (#142)
---
README.md | 14 +++++++++++---
core/README.md | 18 +++++++++++++-----
2 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 3cb28263..7bcea78e 100644
--- a/README.md
+++ b/README.md
@@ -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
+ ```
diff --git a/core/README.md b/core/README.md
index f66c8970..5e140499 100755
--- a/core/README.md
+++ b/core/README.md
@@ -47,17 +47,22 @@ 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 (`/`), you will find the file requirements.txt. Run the following command
+ 5. Install necessary Python libraries. In the root directory (`/`), 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
@@ -65,7 +70,10 @@ It may take around three hours for the audit logs to be delivered to S3.
```
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