{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/zalando/spark-appliance/pulls/9","id":48197004,"html_url":"https://github.com/zalando/spark-appliance/pull/9","diff_url":"https://github.com/zalando/spark-appliance/pull/9.diff","patch_url":"https://github.com/zalando/spark-appliance/pull/9.patch","issue_url":"https://api.github.com/repos/zalando/spark-appliance/issues/9","number":9,"state":"closed","locked":false,"title":"REST API send_query in WebApp to run Spark SQL queries","user":{"login":"chutium","id":3455989,"avatar_url":"https://avatars.githubusercontent.com/u/3455989?v=3","gravatar_id":"","url":"https://api.github.com/users/chutium","html_url":"https://github.com/chutium","followers_url":"https://api.github.com/users/chutium/followers","following_url":"https://api.github.com/users/chutium/following{/other_user}","gists_url":"https://api.github.com/users/chutium/gists{/gist_id}","starred_url":"https://api.github.com/users/chutium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chutium/subscriptions","organizations_url":"https://api.github.com/users/chutium/orgs","repos_url":"https://api.github.com/users/chutium/repos","events_url":"https://api.github.com/users/chutium/events{/privacy}","received_events_url":"https://api.github.com/users/chutium/received_events","type":"User","site_admin":false},"body":"REST API call like:\r\n```\r\noauth_token=xxxxx-xxx-xxx-xxx-xxxxx\r\nhost=172.31.xxx.xxx\r\njob_id=$(curl --insecure --request POST --header \"Authorization: Bearer $oauth_token\" -F file=@count.sql http://$host:8000/send_query)\r\ncurl --insecure --request GET --header \"Authorization: Bearer $oauth_token\" http://$host:8000/get_job_status/$job_id\r\ncurl --insecure --request GET --header \"Authorization: Bearer $oauth_token\" http://$host:8000/get_job_output/$job_id\r\n```","created_at":"2015-10-20T13:01:00Z","updated_at":"2015-10-20T13:01:23Z","closed_at":"2015-10-20T13:01:23Z","merged_at":"2015-10-20T13:01:23Z","merge_commit_sha":"38d550dfd8f1631fc4dbe3d94c29a6a45477582a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zalando/spark-appliance/pulls/9/commits","review_comments_url":"https://api.github.com/repos/zalando/spark-appliance/pulls/9/comments","review_comment_url":"https://api.github.com/repos/zalando/spark-appliance/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando/spark-appliance/issues/9/comments","statuses_url":"https://api.github.com/repos/zalando/spark-appliance/statuses/ae70b69a20ee4d9e6433bacd3810e218e7157c37","head":{"label":"chutium:master","ref":"master","sha":"ae70b69a20ee4d9e6433bacd3810e218e7157c37","user":{"login":"chutium","id":3455989,"avatar_url":"https://avatars.githubusercontent.com/u/3455989?v=3","gravatar_id":"","url":"https://api.github.com/users/chutium","html_url":"https://github.com/chutium","followers_url":"https://api.github.com/users/chutium/followers","following_url":"https://api.github.com/users/chutium/following{/other_user}","gists_url":"https://api.github.com/users/chutium/gists{/gist_id}","starred_url":"https://api.github.com/users/chutium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chutium/subscriptions","organizations_url":"https://api.github.com/users/chutium/orgs","repos_url":"https://api.github.com/users/chutium/repos","events_url":"https://api.github.com/users/chutium/events{/privacy}","received_events_url":"https://api.github.com/users/chutium/received_events","type":"User","site_admin":false},"repo":{"id":43302976,"name":"spark-appliance","full_name":"chutium/spark-appliance","owner":{"login":"chutium","id":3455989,"avatar_url":"https://avatars.githubusercontent.com/u/3455989?v=3","gravatar_id":"","url":"https://api.github.com/users/chutium","html_url":"https://github.com/chutium","followers_url":"https://api.github.com/users/chutium/followers","following_url":"https://api.github.com/users/chutium/following{/other_user}","gists_url":"https://api.github.com/users/chutium/gists{/gist_id}","starred_url":"https://api.github.com/users/chutium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chutium/subscriptions","organizations_url":"https://api.github.com/users/chutium/orgs","repos_url":"https://api.github.com/users/chutium/repos","events_url":"https://api.github.com/users/chutium/events{/privacy}","received_events_url":"https://api.github.com/users/chutium/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chutium/spark-appliance","description":"Distributed Spark standalone cluster appliance for AWS/STUPS environment","fork":true,"url":"https://api.github.com/repos/chutium/spark-appliance","forks_url":"https://api.github.com/repos/chutium/spark-appliance/forks","keys_url":"https://api.github.com/repos/chutium/spark-appliance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chutium/spark-appliance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chutium/spark-appliance/teams","hooks_url":"https://api.github.com/repos/chutium/spark-appliance/hooks","issue_events_url":"https://api.github.com/repos/chutium/spark-appliance/issues/events{/number}","events_url":"https://api.github.com/repos/chutium/spark-appliance/events","assignees_url":"https://api.github.com/repos/chutium/spark-appliance/assignees{/user}","branches_url":"https://api.github.com/repos/chutium/spark-appliance/branches{/branch}","tags_url":"https://api.github.com/repos/chutium/spark-appliance/tags","blobs_url":"https://api.github.com/repos/chutium/spark-appliance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chutium/spark-appliance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chutium/spark-appliance/git/refs{/sha}","trees_url":"https://api.github.com/repos/chutium/spark-appliance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chutium/spark-appliance/statuses/{sha}","languages_url":"https://api.github.com/repos/chutium/spark-appliance/languages","stargazers_url":"https://api.github.com/repos/chutium/spark-appliance/stargazers","contributors_url":"https://api.github.com/repos/chutium/spark-appliance/contributors","subscribers_url":"https://api.github.com/repos/chutium/spark-appliance/subscribers","subscription_url":"https://api.github.com/repos/chutium/spark-appliance/subscription","commits_url":"https://api.github.com/repos/chutium/spark-appliance/commits{/sha}","git_commits_url":"https://api.github.com/repos/chutium/spark-appliance/git/commits{/sha}","comments_url":"https://api.github.com/repos/chutium/spark-appliance/comments{/number}","issue_comment_url":"https://api.github.com/repos/chutium/spark-appliance/issues/comments{/number}","contents_url":"https://api.github.com/repos/chutium/spark-appliance/contents/{+path}","compare_url":"https://api.github.com/repos/chutium/spark-appliance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chutium/spark-appliance/merges","archive_url":"https://api.github.com/repos/chutium/spark-appliance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chutium/spark-appliance/downloads","issues_url":"https://api.github.com/repos/chutium/spark-appliance/issues{/number}","pulls_url":"https://api.github.com/repos/chutium/spark-appliance/pulls{/number}","milestones_url":"https://api.github.com/repos/chutium/spark-appliance/milestones{/number}","notifications_url":"https://api.github.com/repos/chutium/spark-appliance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chutium/spark-appliance/labels{/name}","releases_url":"https://api.github.com/repos/chutium/spark-appliance/releases{/id}","created_at":"2015-09-28T13:35:43Z","updated_at":"2015-09-28T13:35:44Z","pushed_at":"2015-10-20T12:58:48Z","git_url":"git://github.com/chutium/spark-appliance.git","ssh_url":"git@github.com:chutium/spark-appliance.git","clone_url":"https://github.com/chutium/spark-appliance.git","svn_url":"https://github.com/chutium/spark-appliance","homepage":null,"size":144,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zalando:master","ref":"master","sha":"43f05000ddde91c9c1be647545dfb2de18691a18","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":42521749,"name":"spark-appliance","full_name":"zalando/spark-appliance","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/spark-appliance","description":"Distributed Spark standalone cluster appliance for AWS/STUPS environment","fork":false,"url":"https://api.github.com/repos/zalando/spark-appliance","forks_url":"https://api.github.com/repos/zalando/spark-appliance/forks","keys_url":"https://api.github.com/repos/zalando/spark-appliance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/spark-appliance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/spark-appliance/teams","hooks_url":"https://api.github.com/repos/zalando/spark-appliance/hooks","issue_events_url":"https://api.github.com/repos/zalando/spark-appliance/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/spark-appliance/events","assignees_url":"https://api.github.com/repos/zalando/spark-appliance/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/spark-appliance/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/spark-appliance/tags","blobs_url":"https://api.github.com/repos/zalando/spark-appliance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/spark-appliance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/spark-appliance/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/spark-appliance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/spark-appliance/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/spark-appliance/languages","stargazers_url":"https://api.github.com/repos/zalando/spark-appliance/stargazers","contributors_url":"https://api.github.com/repos/zalando/spark-appliance/contributors","subscribers_url":"https://api.github.com/repos/zalando/spark-appliance/subscribers","subscription_url":"https://api.github.com/repos/zalando/spark-appliance/subscription","commits_url":"https://api.github.com/repos/zalando/spark-appliance/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/spark-appliance/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/spark-appliance/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/spark-appliance/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/spark-appliance/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/spark-appliance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/spark-appliance/merges","archive_url":"https://api.github.com/repos/zalando/spark-appliance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/spark-appliance/downloads","issues_url":"https://api.github.com/repos/zalando/spark-appliance/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/spark-appliance/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/spark-appliance/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/spark-appliance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/spark-appliance/labels{/name}","releases_url":"https://api.github.com/repos/zalando/spark-appliance/releases{/id}","created_at":"2015-09-15T13:39:53Z","updated_at":"2015-10-13T06:21:56Z","pushed_at":"2015-10-20T13:01:23Z","git_url":"git://github.com/zalando/spark-appliance.git","ssh_url":"git@github.com:zalando/spark-appliance.git","clone_url":"https://github.com/zalando/spark-appliance.git","svn_url":"https://github.com/zalando/spark-appliance","homepage":null,"size":313,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando/spark-appliance/pulls/9"},"html":{"href":"https://github.com/zalando/spark-appliance/pull/9"},"issue":{"href":"https://api.github.com/repos/zalando/spark-appliance/issues/9"},"comments":{"href":"https://api.github.com/repos/zalando/spark-appliance/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando/spark-appliance/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando/spark-appliance/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando/spark-appliance/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/zalando/spark-appliance/statuses/ae70b69a20ee4d9e6433bacd3810e218e7157c37"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"chutium","id":3455989,"avatar_url":"https://avatars.githubusercontent.com/u/3455989?v=3","gravatar_id":"","url":"https://api.github.com/users/chutium","html_url":"https://github.com/chutium","followers_url":"https://api.github.com/users/chutium/followers","following_url":"https://api.github.com/users/chutium/following{/other_user}","gists_url":"https://api.github.com/users/chutium/gists{/gist_id}","starred_url":"https://api.github.com/users/chutium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chutium/subscriptions","organizations_url":"https://api.github.com/users/chutium/orgs","repos_url":"https://api.github.com/users/chutium/repos","events_url":"https://api.github.com/users/chutium/events{/privacy}","received_events_url":"https://api.github.com/users/chutium/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":114,"deletions":5,"changed_files":3}}