This repository has been archived by the owner on Mar 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from seanorama/master
./platforms/hdp now supports re-use of persistent disks across deployments
- Loading branch information
Showing
9 changed files
with
178 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,93 @@ | ||
### Prep | ||
## Prep | ||
|
||
``` | ||
CONFIGBUCKET=hdp-play-00 | ||
PROJECT=hdp-play-00 | ||
CONFIGBUCKET=hdp-00 | ||
PROJECT=hdp-00 | ||
switches="-b ${CONFIGBUCKET} -p ${PROJECT}" | ||
switches="-b ${CONFIGBUCKET} -p ${PROJECT} | ||
# add this to make it a smaller test than the defaults | ||
switches+=" | ||
--master_attached_pd_size_gb 100 | ||
--worker_attached_pds_size_gb 100 | ||
-n 4 | ||
-n 1 | ||
-m n1-standard-2" | ||
bdutil="./bdutil ${switches}" | ||
``` | ||
|
||
### Test ambari_env.sh | ||
## Test ambari_env.sh | ||
|
||
``` | ||
environment=platforms/hdp/ambari_env.sh | ||
${bdutil} -e ${environment} deploy | ||
bdutil="${bdutil} -e ${environment}" | ||
## deploy | ||
${bdutil} deploy | ||
## test | ||
${bdutil} shell < ./hadoop-validate-setup.sh | ||
${bdutil} shell < ./hadoop-validate-gcs.sh | ||
${bdutil} shell < ./extensions/querytools/hive-validate-setup.sh | ||
${bdutil} shell < ./extensions/querytools/pig-validate-setup.sh | ||
#${bdutil} shell < ./extensions/spark/spark-validate-setup.sh | ||
${bdutil} -e ${environment} delete | ||
## delete | ||
${bdutil} delete | ||
``` | ||
|
||
|
||
# Test ambari_manual_env.sh | ||
## Test ambari_manual_env.sh | ||
|
||
``` | ||
environment=platforms/hdp/ambari_manual_env.sh | ||
${bdutil} -e ${environment} deploy | ||
bdutil="${bdutil} -e ${environment}" | ||
## deploy | ||
${bdutil} deploy | ||
## test | ||
# need to add an automated test here: | ||
${bdutil} shell # do something here like check the appropriate number of hosts in /api/v1/hosts | ||
${bdutil} -e ${environment} delete | ||
## delete | ||
${bdutil} delete | ||
``` | ||
|
||
## Test re-using disks across multiple deployments of same instance count | ||
|
||
``` | ||
environment=platforms/hdp/ambari_env.sh | ||
bdutil="${bdutil} -e ${environment}" | ||
unset CREATE_ATTACHED_PDS_ON_DEPLOY | ||
unset DELETE_ATTACHED_PDS_ON_DELETE | ||
## create | ||
export CREATE_ATTACHED_PDS_ON_DEPLOY=true | ||
${bdutil} deploy | ||
## generate some data onto HDFS, and dont’ delete it | ||
echo "hadoop fs -mkdir redeploy-validation.tmp" | ${bdutil} shell | ||
## if you want more data than that: | ||
#${bdutil} -u hadoop-validate-setup.sh run_command -- \ | ||
# sudo -u "$(whoami)" TERA_CLEANUP_SKIP=true TERA_GEN_NUM_RECORDS=100000 ./hadoop-validate-setup.sh | ||
## check that the ‘validate_...’ dir is there | ||
echo "hadoop fs -ls" | ${bdutil} shell | ||
## delete the cluster but keep disks | ||
export DELETE_ATTACHED_PDS_ON_DELETE=false | ||
${bdutil} delete | ||
## create with existing disks | ||
export CREATE_ATTACHED_PDS_ON_DEPLOY=false | ||
${bdutil} deploy | ||
## check that the ‘validate_...’ dir is there | ||
echo "hadoop fs -ls" | ${bdutil} shell | ||
## delete everything to cleanup this testing | ||
export DELETE_ATTACHED_PDS_ON_DELETE=true | ||
${bdutil} delete | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters