{"action":"created","comment":{"url":"https://api.github.com/repos/Teradata/presto/pulls/comments/57975432","id":57975432,"diff_hunk":"@@ -0,0 +1,126 @@\n+=============\n+Presto on EMR\n+=============\n+\n+We support deploying Presto on EMR version 4.3.0 or greater. For instructions\n+on how to run and install presto-admin on EMR refer to the EMR specific notes\n+in the installation and configuration sections of the presto-admin\n+:doc:`/installation/presto-admin/quick-start-guide`.\n+\n+Resizing an EMR cluster using presto-admin\n+==========================================\n+\n+Only the number of EMR core (slave) nodes can be resized. Migration of the\n+Presto coordinator to a different EMR master node is not supported. The\n+steps below assume a working installation of presto-admin.\n+\n+Adding a node\n+-------------\n+\n+1. Using the AWS console or the AWS CLI tool, resize your EMR cluster by\n+adding a core node. The AWS documentation on this can be found\n+`here <http://docs.aws.amazon.com/ElasticMapReduce/latest/ManagementGuide/emr-manage-resize.html>`_.\n+\n+2. Add the FQDN of the new node to the presto-admin topology file.\n+By default this file is located at ``/etc/opt/prestoadmin/config.json``.\n+\n+3. To install Presto on the new node, run the following two presto-admin\n+commands. The first one is only needed if Java 8 is not already installed on your\n+new node:\n+\n+.. code-block:: bash\n+\n+    sudo /path/to/presto-admin -i /path/to/your.pem package install -H new_node_fqdn /path/to/jdk8.rpm\n+    sudo /path/to/presto-admin -i /path/to/your.pem server install -H new_node_fqdn /path/to/presto-server.rpm\n+\n+4. In order to take advantage of the extra resources of the new node, you\n+may need to edit some of the Presto memory settings (for example\n+``query.max.memory``). For more information on configuring Presto using\n+presto-admin please refer to the Configuration section of the presto-admin\n+:doc:`/installation/presto-admin/quick-start-guide`.\n+\n+5. If you made configuration changes, make sure to deploy those changes to\n+all nodes:\n+\n+.. code-block:: bash\n+\n+    sudo /path/to/presto-admin -i /path/to/your.pem configuration deploy\n+\n+6. If you did not make any configuration changes in step 4 then just start\n+Presto on the new node:\n+\n+.. code-block:: bash\n+\n+    sudo /path/to/presto-admin -i /path/to/your.pem server start -H new_node_fqdn\n+\n+If you did make configuration changes in step 4 then all nodes need to be restarted\n+(note that you don't need to also start the new node because it is now part\n+of the topology and it will be started as part of the restart):\n+\n+.. code-block:: bash\n+\n+    sudo /path/to/presto-admin -i /path/to/your.pem server restart\n+\n+7. To verify that the new node was correctly started run:\n+\n+.. code-block:: bash\n+\n+    sudo /path/to/presto-admin -i /path/to/your.pem server status\n+\n+Removing a node\n+---------------\n+\n+1. Stop Presto on the worker node you would like to remove:\n+\n+.. code-block:: bash\n+\n+    sudo /path/to/presto-admin -i /path/to/your.pem server stop -H node_to_remove_fqdn\n+\n+2. Uninstall Presto from the worker node:\n+\n+.. code-block:: bash\n+\n+    sudo /path/to/presto-admin -i /path/to/your.pem server uninstall -H node_to_remove_fqdn\n+\n+3. Remove the FQDN of the node you would like to remove from the presto-admin\n+topology file. By default this file is located at ``/etc/opt/prestoadmin/\n+config.json``.\n+\n+4. To adjust your Presto installation to the decrease in resources you\n+may need to edit some of the Presto memory settings (for example\n+``query.max.memory``). For more information on configuring Presto using\n+presto-admin please refer to the Configuration section of the presto-admin\n+:doc:`/installation/presto-admin/quick-start-guide`.\n+\n+5. If you made configuration changes, make sure to deploy those changes to\n+all nodes and then restarting them by running:\n+\n+.. code-block:: bash\n+\n+    sudo /path/to/presto-admin -i /path/to/your.pem configuration deploy\n+    sudo /path/to/presto-admin -i /path/to/your.pem server restart\n+\n+6. Terminate the node using the AWS console or the AWS CLI tool.\n+\n+Troubleshooting\n+===============\n+\n+* If you are using the RPM for installing Presto, make sure you use the RPM built for RPM Package Manager version > 4.6. If you are using an RPM which is not compatible with an EMR node, you may get the following error during installation:","path":"presto-docs/src/main/sphinx/aws/emr.rst","position":108,"original_position":108,"commit_id":"ff585638c69f0a2f377bdc933bef756f94d7169b","original_commit_id":"ff585638c69f0a2f377bdc933bef756f94d7169b","user":{"login":"petroav","id":665991,"avatar_url":"https://avatars.githubusercontent.com/u/665991?v=3","gravatar_id":"","url":"https://api.github.com/users/petroav","html_url":"https://github.com/petroav","followers_url":"https://api.github.com/users/petroav/followers","following_url":"https://api.github.com/users/petroav/following{/other_user}","gists_url":"https://api.github.com/users/petroav/gists{/gist_id}","starred_url":"https://api.github.com/users/petroav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petroav/subscriptions","organizations_url":"https://api.github.com/users/petroav/orgs","repos_url":"https://api.github.com/users/petroav/repos","events_url":"https://api.github.com/users/petroav/events{/privacy}","received_events_url":"https://api.github.com/users/petroav/received_events","type":"User","site_admin":false},"body":"In my section of the docs I manually wrap lines to 80 characters except for long commands that can't be broken. Can you do that in this part as well?","created_at":"2016-03-30T22:33:32Z","updated_at":"2016-03-30T22:33:32Z","html_url":"https://github.com/Teradata/presto/pull/175#discussion_r57975432","pull_request_url":"https://api.github.com/repos/Teradata/presto/pulls/175","_links":{"self":{"href":"https://api.github.com/repos/Teradata/presto/pulls/comments/57975432"},"html":{"href":"https://github.com/Teradata/presto/pull/175#discussion_r57975432"},"pull_request":{"href":"https://api.github.com/repos/Teradata/presto/pulls/175"}}},"pull_request":{"url":"https://api.github.com/repos/Teradata/presto/pulls/175","id":64704395,"html_url":"https://github.com/Teradata/presto/pull/175","diff_url":"https://github.com/Teradata/presto/pull/175.diff","patch_url":"https://github.com/Teradata/presto/pull/175.patch","issue_url":"https://api.github.com/repos/Teradata/presto/issues/175","number":175,"state":"open","locked":false,"title":"docs: Add EMR docs","user":{"login":"anusudarsan","id":10963707,"avatar_url":"https://avatars.githubusercontent.com/u/10963707?v=3","gravatar_id":"","url":"https://api.github.com/users/anusudarsan","html_url":"https://github.com/anusudarsan","followers_url":"https://api.github.com/users/anusudarsan/followers","following_url":"https://api.github.com/users/anusudarsan/following{/other_user}","gists_url":"https://api.github.com/users/anusudarsan/gists{/gist_id}","starred_url":"https://api.github.com/users/anusudarsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anusudarsan/subscriptions","organizations_url":"https://api.github.com/users/anusudarsan/orgs","repos_url":"https://api.github.com/users/anusudarsan/repos","events_url":"https://api.github.com/users/anusudarsan/events{/privacy}","received_events_url":"https://api.github.com/users/anusudarsan/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-30T21:58:59Z","updated_at":"2016-03-30T22:33:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"189a25f7ebc20e5cbbd7c023c4b4774e97a34f18","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Teradata/presto/pulls/175/commits","review_comments_url":"https://api.github.com/repos/Teradata/presto/pulls/175/comments","review_comment_url":"https://api.github.com/repos/Teradata/presto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Teradata/presto/issues/175/comments","statuses_url":"https://api.github.com/repos/Teradata/presto/statuses/ff585638c69f0a2f377bdc933bef756f94d7169b","head":{"label":"Teradata:troubleshooting-emr","ref":"troubleshooting-emr","sha":"ff585638c69f0a2f377bdc933bef756f94d7169b","user":{"login":"Teradata","id":1615979,"avatar_url":"https://avatars.githubusercontent.com/u/1615979?v=3","gravatar_id":"","url":"https://api.github.com/users/Teradata","html_url":"https://github.com/Teradata","followers_url":"https://api.github.com/users/Teradata/followers","following_url":"https://api.github.com/users/Teradata/following{/other_user}","gists_url":"https://api.github.com/users/Teradata/gists{/gist_id}","starred_url":"https://api.github.com/users/Teradata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teradata/subscriptions","organizations_url":"https://api.github.com/users/Teradata/orgs","repos_url":"https://api.github.com/users/Teradata/repos","events_url":"https://api.github.com/users/Teradata/events{/privacy}","received_events_url":"https://api.github.com/users/Teradata/received_events","type":"Organization","site_admin":false},"repo":{"id":36903368,"name":"presto","full_name":"Teradata/presto","owner":{"login":"Teradata","id":1615979,"avatar_url":"https://avatars.githubusercontent.com/u/1615979?v=3","gravatar_id":"","url":"https://api.github.com/users/Teradata","html_url":"https://github.com/Teradata","followers_url":"https://api.github.com/users/Teradata/followers","following_url":"https://api.github.com/users/Teradata/following{/other_user}","gists_url":"https://api.github.com/users/Teradata/gists{/gist_id}","starred_url":"https://api.github.com/users/Teradata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teradata/subscriptions","organizations_url":"https://api.github.com/users/Teradata/orgs","repos_url":"https://api.github.com/users/Teradata/repos","events_url":"https://api.github.com/users/Teradata/events{/privacy}","received_events_url":"https://api.github.com/users/Teradata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Teradata/presto","description":"Teradata's Certified Version of Presto -- A Distributed SQL Query Engine for Big Data","fork":true,"url":"https://api.github.com/repos/Teradata/presto","forks_url":"https://api.github.com/repos/Teradata/presto/forks","keys_url":"https://api.github.com/repos/Teradata/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Teradata/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Teradata/presto/teams","hooks_url":"https://api.github.com/repos/Teradata/presto/hooks","issue_events_url":"https://api.github.com/repos/Teradata/presto/issues/events{/number}","events_url":"https://api.github.com/repos/Teradata/presto/events","assignees_url":"https://api.github.com/repos/Teradata/presto/assignees{/user}","branches_url":"https://api.github.com/repos/Teradata/presto/branches{/branch}","tags_url":"https://api.github.com/repos/Teradata/presto/tags","blobs_url":"https://api.github.com/repos/Teradata/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Teradata/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Teradata/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/Teradata/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Teradata/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/Teradata/presto/languages","stargazers_url":"https://api.github.com/repos/Teradata/presto/stargazers","contributors_url":"https://api.github.com/repos/Teradata/presto/contributors","subscribers_url":"https://api.github.com/repos/Teradata/presto/subscribers","subscription_url":"https://api.github.com/repos/Teradata/presto/subscription","commits_url":"https://api.github.com/repos/Teradata/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/Teradata/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/Teradata/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/Teradata/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/Teradata/presto/contents/{+path}","compare_url":"https://api.github.com/repos/Teradata/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Teradata/presto/merges","archive_url":"https://api.github.com/repos/Teradata/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Teradata/presto/downloads","issues_url":"https://api.github.com/repos/Teradata/presto/issues{/number}","pulls_url":"https://api.github.com/repos/Teradata/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/Teradata/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/Teradata/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Teradata/presto/labels{/name}","releases_url":"https://api.github.com/repos/Teradata/presto/releases{/id}","deployments_url":"https://api.github.com/repos/Teradata/presto/deployments","created_at":"2015-06-05T00:38:37Z","updated_at":"2016-03-28T20:46:44Z","pushed_at":"2016-03-30T22:29:44Z","git_url":"git://github.com/Teradata/presto.git","ssh_url":"git@github.com:Teradata/presto.git","clone_url":"https://github.com/Teradata/presto.git","svn_url":"https://github.com/Teradata/presto","homepage":"http://www.teradata.com/presto","size":127921,"stargazers_count":45,"watchers_count":45,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":16,"forks":7,"open_issues":16,"watchers":45,"default_branch":"master"}},"base":{"label":"Teradata:teradata-docs","ref":"teradata-docs","sha":"8917266e1fcd4b728f48dc71c2c62996cefd963c","user":{"login":"Teradata","id":1615979,"avatar_url":"https://avatars.githubusercontent.com/u/1615979?v=3","gravatar_id":"","url":"https://api.github.com/users/Teradata","html_url":"https://github.com/Teradata","followers_url":"https://api.github.com/users/Teradata/followers","following_url":"https://api.github.com/users/Teradata/following{/other_user}","gists_url":"https://api.github.com/users/Teradata/gists{/gist_id}","starred_url":"https://api.github.com/users/Teradata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teradata/subscriptions","organizations_url":"https://api.github.com/users/Teradata/orgs","repos_url":"https://api.github.com/users/Teradata/repos","events_url":"https://api.github.com/users/Teradata/events{/privacy}","received_events_url":"https://api.github.com/users/Teradata/received_events","type":"Organization","site_admin":false},"repo":{"id":36903368,"name":"presto","full_name":"Teradata/presto","owner":{"login":"Teradata","id":1615979,"avatar_url":"https://avatars.githubusercontent.com/u/1615979?v=3","gravatar_id":"","url":"https://api.github.com/users/Teradata","html_url":"https://github.com/Teradata","followers_url":"https://api.github.com/users/Teradata/followers","following_url":"https://api.github.com/users/Teradata/following{/other_user}","gists_url":"https://api.github.com/users/Teradata/gists{/gist_id}","starred_url":"https://api.github.com/users/Teradata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teradata/subscriptions","organizations_url":"https://api.github.com/users/Teradata/orgs","repos_url":"https://api.github.com/users/Teradata/repos","events_url":"https://api.github.com/users/Teradata/events{/privacy}","received_events_url":"https://api.github.com/users/Teradata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Teradata/presto","description":"Teradata's Certified Version of Presto -- A Distributed SQL Query Engine for Big Data","fork":true,"url":"https://api.github.com/repos/Teradata/presto","forks_url":"https://api.github.com/repos/Teradata/presto/forks","keys_url":"https://api.github.com/repos/Teradata/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Teradata/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Teradata/presto/teams","hooks_url":"https://api.github.com/repos/Teradata/presto/hooks","issue_events_url":"https://api.github.com/repos/Teradata/presto/issues/events{/number}","events_url":"https://api.github.com/repos/Teradata/presto/events","assignees_url":"https://api.github.com/repos/Teradata/presto/assignees{/user}","branches_url":"https://api.github.com/repos/Teradata/presto/branches{/branch}","tags_url":"https://api.github.com/repos/Teradata/presto/tags","blobs_url":"https://api.github.com/repos/Teradata/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Teradata/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Teradata/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/Teradata/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Teradata/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/Teradata/presto/languages","stargazers_url":"https://api.github.com/repos/Teradata/presto/stargazers","contributors_url":"https://api.github.com/repos/Teradata/presto/contributors","subscribers_url":"https://api.github.com/repos/Teradata/presto/subscribers","subscription_url":"https://api.github.com/repos/Teradata/presto/subscription","commits_url":"https://api.github.com/repos/Teradata/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/Teradata/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/Teradata/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/Teradata/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/Teradata/presto/contents/{+path}","compare_url":"https://api.github.com/repos/Teradata/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Teradata/presto/merges","archive_url":"https://api.github.com/repos/Teradata/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Teradata/presto/downloads","issues_url":"https://api.github.com/repos/Teradata/presto/issues{/number}","pulls_url":"https://api.github.com/repos/Teradata/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/Teradata/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/Teradata/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Teradata/presto/labels{/name}","releases_url":"https://api.github.com/repos/Teradata/presto/releases{/id}","deployments_url":"https://api.github.com/repos/Teradata/presto/deployments","created_at":"2015-06-05T00:38:37Z","updated_at":"2016-03-28T20:46:44Z","pushed_at":"2016-03-30T22:29:44Z","git_url":"git://github.com/Teradata/presto.git","ssh_url":"git@github.com:Teradata/presto.git","clone_url":"https://github.com/Teradata/presto.git","svn_url":"https://github.com/Teradata/presto","homepage":"http://www.teradata.com/presto","size":127921,"stargazers_count":45,"watchers_count":45,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":16,"forks":7,"open_issues":16,"watchers":45,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Teradata/presto/pulls/175"},"html":{"href":"https://github.com/Teradata/presto/pull/175"},"issue":{"href":"https://api.github.com/repos/Teradata/presto/issues/175"},"comments":{"href":"https://api.github.com/repos/Teradata/presto/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/Teradata/presto/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/Teradata/presto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Teradata/presto/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/Teradata/presto/statuses/ff585638c69f0a2f377bdc933bef756f94d7169b"}}}}