{"action":"opened","number":309,"pull_request":{"url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/309","id":50275496,"html_url":"https://github.com/spark-jobserver/spark-jobserver/pull/309","diff_url":"https://github.com/spark-jobserver/spark-jobserver/pull/309.diff","patch_url":"https://github.com/spark-jobserver/spark-jobserver/pull/309.patch","issue_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/309","number":309,"state":"open","locked":false,"title":"Fix shell problem, change processbuilder to scala style api","user":{"login":"wlsailor","id":2751515,"avatar_url":"https://avatars.githubusercontent.com/u/2751515?v=3","gravatar_id":"","url":"https://api.github.com/users/wlsailor","html_url":"https://github.com/wlsailor","followers_url":"https://api.github.com/users/wlsailor/followers","following_url":"https://api.github.com/users/wlsailor/following{/other_user}","gists_url":"https://api.github.com/users/wlsailor/gists{/gist_id}","starred_url":"https://api.github.com/users/wlsailor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlsailor/subscriptions","organizations_url":"https://api.github.com/users/wlsailor/orgs","repos_url":"https://api.github.com/users/wlsailor/repos","events_url":"https://api.github.com/users/wlsailor/events{/privacy}","received_events_url":"https://api.github.com/users/wlsailor/received_events","type":"User","site_admin":false},"body":"We have deployed the feature/context-per-jvm , but found some problem:\r\n* manager_start.sh and server_start.sh start use $appdir without initial\r\n* AkkaClusterSupervisorActor blocked when creating new persist context at process.waitFor api by unread inputstream and outputstream from sub process stdin/stdout/stderr to the main process, so the main thread block and no result return to the POST /context/name request, cause timeout. So I try to add some processIO handler to consume stdin/stderr stream and also redirect manager_start.sh command to /dev/null, I am not quite sure about which really fix the block problem, but finally it works, and scala process api looks better than the native java api.\r\n\r\nWe have test deploy/create context/run job with the context, all works but restart job-server itself do not cause jobmanager and spark driver jvm process to restart , and the former context disappear but context jvm still running. Need to fix this in the future. ","created_at":"2015-11-10T16:25:56Z","updated_at":"2015-11-10T16:25:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/309/commits","review_comments_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/309/comments","review_comment_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/309/comments","statuses_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/statuses/3cfafeaff84bbdb2cc8512dfe15a17eb5acf2a21","head":{"label":"wlsailor:context-per-jvm","ref":"context-per-jvm","sha":"3cfafeaff84bbdb2cc8512dfe15a17eb5acf2a21","user":{"login":"wlsailor","id":2751515,"avatar_url":"https://avatars.githubusercontent.com/u/2751515?v=3","gravatar_id":"","url":"https://api.github.com/users/wlsailor","html_url":"https://github.com/wlsailor","followers_url":"https://api.github.com/users/wlsailor/followers","following_url":"https://api.github.com/users/wlsailor/following{/other_user}","gists_url":"https://api.github.com/users/wlsailor/gists{/gist_id}","starred_url":"https://api.github.com/users/wlsailor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlsailor/subscriptions","organizations_url":"https://api.github.com/users/wlsailor/orgs","repos_url":"https://api.github.com/users/wlsailor/repos","events_url":"https://api.github.com/users/wlsailor/events{/privacy}","received_events_url":"https://api.github.com/users/wlsailor/received_events","type":"User","site_admin":false},"repo":{"id":45668689,"name":"spark-jobserver","full_name":"wlsailor/spark-jobserver","owner":{"login":"wlsailor","id":2751515,"avatar_url":"https://avatars.githubusercontent.com/u/2751515?v=3","gravatar_id":"","url":"https://api.github.com/users/wlsailor","html_url":"https://github.com/wlsailor","followers_url":"https://api.github.com/users/wlsailor/followers","following_url":"https://api.github.com/users/wlsailor/following{/other_user}","gists_url":"https://api.github.com/users/wlsailor/gists{/gist_id}","starred_url":"https://api.github.com/users/wlsailor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlsailor/subscriptions","organizations_url":"https://api.github.com/users/wlsailor/orgs","repos_url":"https://api.github.com/users/wlsailor/repos","events_url":"https://api.github.com/users/wlsailor/events{/privacy}","received_events_url":"https://api.github.com/users/wlsailor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wlsailor/spark-jobserver","description":"REST job server for Apache Spark","fork":true,"url":"https://api.github.com/repos/wlsailor/spark-jobserver","forks_url":"https://api.github.com/repos/wlsailor/spark-jobserver/forks","keys_url":"https://api.github.com/repos/wlsailor/spark-jobserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wlsailor/spark-jobserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wlsailor/spark-jobserver/teams","hooks_url":"https://api.github.com/repos/wlsailor/spark-jobserver/hooks","issue_events_url":"https://api.github.com/repos/wlsailor/spark-jobserver/issues/events{/number}","events_url":"https://api.github.com/repos/wlsailor/spark-jobserver/events","assignees_url":"https://api.github.com/repos/wlsailor/spark-jobserver/assignees{/user}","branches_url":"https://api.github.com/repos/wlsailor/spark-jobserver/branches{/branch}","tags_url":"https://api.github.com/repos/wlsailor/spark-jobserver/tags","blobs_url":"https://api.github.com/repos/wlsailor/spark-jobserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wlsailor/spark-jobserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wlsailor/spark-jobserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/wlsailor/spark-jobserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wlsailor/spark-jobserver/statuses/{sha}","languages_url":"https://api.github.com/repos/wlsailor/spark-jobserver/languages","stargazers_url":"https://api.github.com/repos/wlsailor/spark-jobserver/stargazers","contributors_url":"https://api.github.com/repos/wlsailor/spark-jobserver/contributors","subscribers_url":"https://api.github.com/repos/wlsailor/spark-jobserver/subscribers","subscription_url":"https://api.github.com/repos/wlsailor/spark-jobserver/subscription","commits_url":"https://api.github.com/repos/wlsailor/spark-jobserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/wlsailor/spark-jobserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/wlsailor/spark-jobserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/wlsailor/spark-jobserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/wlsailor/spark-jobserver/contents/{+path}","compare_url":"https://api.github.com/repos/wlsailor/spark-jobserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wlsailor/spark-jobserver/merges","archive_url":"https://api.github.com/repos/wlsailor/spark-jobserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wlsailor/spark-jobserver/downloads","issues_url":"https://api.github.com/repos/wlsailor/spark-jobserver/issues{/number}","pulls_url":"https://api.github.com/repos/wlsailor/spark-jobserver/pulls{/number}","milestones_url":"https://api.github.com/repos/wlsailor/spark-jobserver/milestones{/number}","notifications_url":"https://api.github.com/repos/wlsailor/spark-jobserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wlsailor/spark-jobserver/labels{/name}","releases_url":"https://api.github.com/repos/wlsailor/spark-jobserver/releases{/id}","created_at":"2015-11-06T08:16:54Z","updated_at":"2015-11-06T08:16:55Z","pushed_at":"2015-11-10T16:07:50Z","git_url":"git://github.com/wlsailor/spark-jobserver.git","ssh_url":"git@github.com:wlsailor/spark-jobserver.git","clone_url":"https://github.com/wlsailor/spark-jobserver.git","svn_url":"https://github.com/wlsailor/spark-jobserver","homepage":"","size":3810,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"spark-jobserver:feature/context-per-jvm","ref":"feature/context-per-jvm","sha":"e791f44ac47fd3572bf38a1474045cf9e39d432f","user":{"login":"spark-jobserver","id":8494302,"avatar_url":"https://avatars.githubusercontent.com/u/8494302?v=3","gravatar_id":"","url":"https://api.github.com/users/spark-jobserver","html_url":"https://github.com/spark-jobserver","followers_url":"https://api.github.com/users/spark-jobserver/followers","following_url":"https://api.github.com/users/spark-jobserver/following{/other_user}","gists_url":"https://api.github.com/users/spark-jobserver/gists{/gist_id}","starred_url":"https://api.github.com/users/spark-jobserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spark-jobserver/subscriptions","organizations_url":"https://api.github.com/users/spark-jobserver/orgs","repos_url":"https://api.github.com/users/spark-jobserver/repos","events_url":"https://api.github.com/users/spark-jobserver/events{/privacy}","received_events_url":"https://api.github.com/users/spark-jobserver/received_events","type":"Organization","site_admin":false},"repo":{"id":23205911,"name":"spark-jobserver","full_name":"spark-jobserver/spark-jobserver","owner":{"login":"spark-jobserver","id":8494302,"avatar_url":"https://avatars.githubusercontent.com/u/8494302?v=3","gravatar_id":"","url":"https://api.github.com/users/spark-jobserver","html_url":"https://github.com/spark-jobserver","followers_url":"https://api.github.com/users/spark-jobserver/followers","following_url":"https://api.github.com/users/spark-jobserver/following{/other_user}","gists_url":"https://api.github.com/users/spark-jobserver/gists{/gist_id}","starred_url":"https://api.github.com/users/spark-jobserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spark-jobserver/subscriptions","organizations_url":"https://api.github.com/users/spark-jobserver/orgs","repos_url":"https://api.github.com/users/spark-jobserver/repos","events_url":"https://api.github.com/users/spark-jobserver/events{/privacy}","received_events_url":"https://api.github.com/users/spark-jobserver/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spark-jobserver/spark-jobserver","description":"REST job server for Apache Spark","fork":false,"url":"https://api.github.com/repos/spark-jobserver/spark-jobserver","forks_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/forks","keys_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/teams","hooks_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/hooks","issue_events_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/events{/number}","events_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/events","assignees_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/assignees{/user}","branches_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/branches{/branch}","tags_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/tags","blobs_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/statuses/{sha}","languages_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/languages","stargazers_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/stargazers","contributors_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/contributors","subscribers_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/subscribers","subscription_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/subscription","commits_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/contents/{+path}","compare_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/merges","archive_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/downloads","issues_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues{/number}","pulls_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls{/number}","milestones_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/milestones{/number}","notifications_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/labels{/name}","releases_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/releases{/id}","created_at":"2014-08-21T23:07:47Z","updated_at":"2015-11-10T15:39:50Z","pushed_at":"2015-11-09T07:00:05Z","git_url":"git://github.com/spark-jobserver/spark-jobserver.git","ssh_url":"git@github.com:spark-jobserver/spark-jobserver.git","clone_url":"https://github.com/spark-jobserver/spark-jobserver.git","svn_url":"https://github.com/spark-jobserver/spark-jobserver","homepage":"","size":3810,"stargazers_count":673,"watchers_count":673,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":264,"mirror_url":null,"open_issues_count":66,"forks":264,"open_issues":66,"watchers":673,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/309"},"html":{"href":"https://github.com/spark-jobserver/spark-jobserver/pull/309"},"issue":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/309"},"comments":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/309/comments"},"review_comments":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/309/comments"},"review_comment":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/309/commits"},"statuses":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/statuses/3cfafeaff84bbdb2cc8512dfe15a17eb5acf2a21"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":27,"deletions":8,"changed_files":3}}