OVERVIEW
This section describes how to create the demo that was shown on BrightTalk (demo starts around 32 mins 10 seconds).
- The concepts demonstrated in this project are not suitable for production environments.
- This project is for frequently creating and tearing down demo/trial environments.
- This project is not for creating and managing long-living demo/trial environments.
- Please read the project license before using this project.
The following installed locally:
- Terraform - installation instructions|downloads
- AWS CLI - installation instructions
This project has been tested on Linux and OSX client machines - Windows is unlikely to work.
# If you haven't already configured the aws CLI with your credentials, run the following:
aws configure
# clone this project
git clone https://github.com/hpe-container-platform-community/df-edge-demo-terraform
cd df-edge-demo-terraform
# create a copy
cp ./etc/bluedata_infra.tfvars_example ./etc/bluedata_infra.tfvars
# edit to reflect your requirements - read the comments in the file!
vi ./etc/bluedata_infra.tfvars
# initialise terraform
terraform init
./bin/terraform_apply.sh # answer yes when prompted
./scripts/mapr_install_clusters_parallel.sh
./scripts/mapr_verify_install.sh
./scripts/mapr_setup_cross_cluster_security.sh
If you hit errors such as the following, restart the cluster and retry again:
Security is not enabled on the cluster: edge1.enterprise.org. Running maprlogin will not login. If you think security should be enabled - please check your cluster configuration.
You can restart the cluster with:
./bin/ec2_stop_all_instances.sh
./bin/ec2_start_all_instances.sh
- This requires an account on https://mapr.com/user - create one if you don't have one already.
./scripts/register_license.sh
-
Enter mapr.com credentials when prompted
-
Verify the license with (ensure the expiry date is set and has not passed):
./scripts/verify_license.sh
- if this step fails, manually register the license in the MCS UI - you can retrieve the MCS UI with
./bin/mapr_edge_demo_urls.sh
(mapr/mapr)
./scripts/setup_edge_demo.sh
- Open a New terminal, then run
./bin/mapr_edge_demo_start.sh
An error similar to the following indicates the enterprise license has not been applied to the clusters:
ERROR (95) - Failed to add replica for table: /apps/pipeline/data/replicatedStream DirectCopyInfo DC_NOT_SUPPORTED 2021-01-22 09:58:35,5813 ERROR Client fc/dbclient.cc:716 Thread: 2411 AddTableReplica failed, error Function not implemented(38)
- Open a New terminal, then run
./bin/mapr_edge_demo_poststartup.sh
./bin/mapr_edge_demo_urls.sh
You should see the EDGE dashboard reporting the replication status as 'ESTABLISHED':
- After requesting assets on the Edge dashboard, restart mirroring with
./bin/mapr_edge_demo_restart_vol_mirror.sh
- Monitor DC files
Open a new terminal and run:
./bin/mapr_edge_demo_watch_mirror.sh
Stop ...
./bin/ec2_stop_all_instances.sh
Start ...
./bin/ec2_start_all_instances.sh
After starting the instances you need to repeat the steps to run the demo.
./bin/ec2_instance_status.sh
./bin/ssh_mapr_cluster_1_host_0.sh
./bin/ssh_mapr_cluster_1_host_1.sh
./bin/ssh_mapr_cluster_1_host_2.sh
./bin/ssh_mapr_cluster_2_host_0.sh
./bin/ssh_mapr_cluster_2_host_1.sh
./bin/ssh_mapr_cluster_2_host_2.sh
./bin/terraform_destroy.sh # answer yes when prompted