Created
December 22, 2019 13:26
-
-
Save agrawalreetika/d622e01e6e9cbecaacb34a2c9cd34b34 to your computer and use it in GitHub Desktop.
Cloud-init script
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
#cloud-config | |
runcmd: | |
- sudo UUID=`uuidgen` | |
- sudo nodeId=`grep node.id= /usr/lib/presto/etc/node.properties` | |
- sudo sed -i "s|$nodeId|node.id=$UUID|" /usr/lib/presto/etc/node.properties | |
- /usr/lib/presto/bin/launcher start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment