<!--DEBUG:--><!--DEBUG:dc3-united-states-software-in-english-pdf-2--><!--DEBUG:--><!--DEBUG:dc3-united-states-software-in-english-pdf-2--><!--DEBUG-spv-->{"id":1995054,"date":"2021-09-23T04:37:00","date_gmt":"2021-09-23T02:37:00","guid":{"rendered":"http:\/\/nhub.news\/?p=1995054"},"modified":"2021-09-23T05:03:24","modified_gmt":"2021-09-23T03:03:24","slug":"hands-on-presto-tutorial-presto-102","status":"publish","type":"post","link":"http:\/\/nhub.news\/fr\/2021\/09\/hands-on-presto-tutorial-presto-102\/","title":{"rendered":"Hands-On Presto Tutorial: Presto 102"},"content":{"rendered":"<p style=\"text-align: justify;\"><b>This tutorial will show you how to get a three node Presto cluster up and running on your local machine with a Docker sandbox.<\/b><br \/>\nJoin the DZone community and get the full member experience. This guide was developed using a laptop running Windows OS and docker on it. This guide was developed using a laptop running Windows OS and docker on it. Create a docker network namespace, so that containers could communicate with each other using the network namespace. Ahana has developed a sandbox for PrestoDB which can be downloaded from docker hub, use the below command to download PrestoDB sandbox, which comes with all packages needed to run PrestoDB. Start the instance of the PrestoDB sandbox and name it as coordinator. Check cluster UI on the status, by default the Ahana PrestoDB sandbox comes with one worker and a coordinator. If only the coordinator needs to be running without the worker node then edit the config.properties file and set the node-scheduler.include-cooridinator to false. Now the PrestoDB UI will show the Active worker count to 0. Start another instance of PrestoDB sandbox which will run as worker node Since sandbox comes with coordinator it needs to be disabled for the second instance and run it as worker node, to do that click on the terminal window on the docker container\/apps UI and edit etc\/config.properties file to set coordinator to false and set http port to be different from coordinator. Restart the worker1 container check PrestoDB UI, now the active worker count will be set to either 1 if coordinator runs without a worker node or 2 if the coordinator also runs a worker node. Repeat steps 5 to 7 to add a third worker node. Check cluster status, which should reflect the third worker node as part of the PrestoDB cluster. Verify the PrestoDB environment by running the PrestoDB CLI with a simple tpch query PrestoDB cluster installation is simplified with Ahana PrestoDB sandbox. It\u2019s now ready to be used for any functional validation. Published at DZone with permission of Praburam Upendran. See the original article here. Opinions expressed by DZone contributors are their own.<\/p>\n<script>jQuery(function(){jQuery(\".vc_icon_element-icon\").css(\"top\", \"0px\");});<\/script><script>jQuery(function(){jQuery(\"#td_post_ranks\").css(\"height\", \"10px\");});<\/script><script>jQuery(function(){jQuery(\".td-post-content\").find(\"p\").find(\"img\").hide();});<\/script>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to get a three node Presto cluster up and running on your local machine with a Docker sandbox. Join the DZone community and get the full member experience. This guide was developed using a laptop running Windows OS and docker on it. This guide was developed using a laptop [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1995053,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[93],"tags":[],"_links":{"self":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts\/1995054"}],"collection":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/comments?post=1995054"}],"version-history":[{"count":1,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts\/1995054\/revisions"}],"predecessor-version":[{"id":1995055,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts\/1995054\/revisions\/1995055"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/media\/1995053"}],"wp:attachment":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/media?parent=1995054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/categories?post=1995054"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/tags?post=1995054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}