generated from kbase/kbase-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add YARN as a resource / job manager
Uses YARN by default, but can use spark standalone optionally for now. Tested by importing and querying the Fast Genomics Gene table.
- Loading branch information
1 parent
8b09cda
commit 302645a
Showing
8 changed files
with
133 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ cdr/cdm/jupyter/ | |
build | ||
/.project | ||
/.pydevproject* | ||
/.pytest_cache/ | ||
/.settings/ |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Action": [ | ||
"s3:*" | ||
], | ||
"Resource": [ | ||
"arn:aws:s3:::yarn", | ||
"arn:aws:s3:::yarn/*" | ||
] | ||
}, | ||
{ | ||
"Effect": "Deny", | ||
"Action": [ | ||
"s3:CreateBucket", | ||
"s3:DeleteBucket", | ||
"s3:ForceDeleteBucket", | ||
"s3:ListAllMyBuckets" | ||
], | ||
"Resource": [ | ||
"arn:aws:s3:::yarn", | ||
"arn:aws:s3:::yarn/*" | ||
] | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
mc alias set minio http://minio:9002 minio minio123 | ||
|
||
# make deltalake bucket | ||
if ! mc ls minio/cdm-lake 2>/dev/null; then | ||
mc mb minio/cdm-lake && echo 'Bucket cdm-lake created' | ||
else | ||
echo 'bucket cdm-lake already exists' | ||
fi | ||
|
||
# make yarn bucket | ||
if ! mc ls minio/yarn 2>/dev/null; then | ||
mc mb minio/yarn && echo 'Bucket yarn created' | ||
else | ||
echo 'bucket yarn already exists' | ||
fi | ||
|
||
# create policies | ||
mc admin policy create minio yarn-write-policy /config/yarn-write-policy.json | ||
mc admin policy create minio cdm-lake-read-only-policy /config/cdm-lake-read-only-policy.json | ||
|
||
# make read only user for user notebook w/ yarn write privs | ||
mc admin user add minio minio-readonly minio123 | ||
mc admin policy attach minio cdm-lake-read-only-policy --user=minio-readonly | ||
mc admin policy attach minio yarn-write-policy --user=minio-readonly | ||
echo 'CDM Read-only user and policy set' | ||
|
||
# make yarn user | ||
mc admin user add minio yarnuser yarnpass | ||
mc admin policy attach minio yarn-write-policy --user=yarnuser | ||
echo 'YARN user and policy set' |
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