-
Notifications
You must be signed in to change notification settings - Fork 6
/
README.template
30 lines (20 loc) · 1.06 KB
/
README.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# bootstrap-functions
This repository holds common functions that can be used in Qubole node bootstraps
## How to use
Source the required script in your bootstrap script. For example, to mount an EFS volume with the bootstrap, you may do the following:
```
source /usr/lib/qubole/bootstrap-functions/misc/mount_nfs.sh
mount_nfs fs-7abd2444.efs.us-east-1.amazonaws.com:/ /mnt/efs
```
## Available functions
The following set of functions are available at present:
## Contributing
Please raise a pull request for any modifications or additions you would like to make. There may be a delay between when you want to start using a method and when it might be available via Qubole's AMI. To work around this, it is recommended to put a placeholder `source` line in your bootstrap script. For example
```
function mysparkfunction() {
# ... do some stuff
}
source /usr/lib/qubole/bootstrap-functions/spark/mysparkfunction.sh
mysparkfunction arg1 arg2 ...
```
This way, when the function makes it to the AMI, you will automatically use the copy in the bootstrap-functions library.