{"action":"created","comment":{"url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/comments/41451794","id":41451794,"diff_hunk":"@@ -220,4 +230,23 @@ public String toString() {\n         + _progressMethod + '\\'' + \", _javaObject=\" + _javaObject + \", props=\"\n         + getJobProps() + '}';\n   }\n+\n+  /**\n+   * This cancel method, in addition to the default canceling behavior, also\n+   * kills the MR jobs launched by this job on Hadoop\n+   */\n+  @Override\n+  public void cancel() throws InterruptedException {\n+    super.cancel();\n+\n+    info(\"Cancel called.  Killing the launched MR jobs on the cluster\");\n+\n+    String azExecId = jobProps.getString(\"azkaban.flow.execid\");\n+    final String logFilePath =\n+        String.format(\"%s/_job.%s.%s.log\", getWorkingDirectory(), azExecId,","path":"plugins/jobtype/src/azkaban/jobtype/HadoopJavaJob.java","position":113,"original_position":113,"commit_id":"fdb32fa4475e2249708daaadf02c7994b51f1419","original_commit_id":"fdb32fa4475e2249708daaadf02c7994b51f1419","user":{"login":"johnyu0520","id":12088335,"avatar_url":"https://avatars.githubusercontent.com/u/12088335?v=3","gravatar_id":"","url":"https://api.github.com/users/johnyu0520","html_url":"https://github.com/johnyu0520","followers_url":"https://api.github.com/users/johnyu0520/followers","following_url":"https://api.github.com/users/johnyu0520/following{/other_user}","gists_url":"https://api.github.com/users/johnyu0520/gists{/gist_id}","starred_url":"https://api.github.com/users/johnyu0520/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnyu0520/subscriptions","organizations_url":"https://api.github.com/users/johnyu0520/orgs","repos_url":"https://api.github.com/users/johnyu0520/repos","events_url":"https://api.github.com/users/johnyu0520/events{/privacy}","received_events_url":"https://api.github.com/users/johnyu0520/received_events","type":"User","site_admin":false},"body":"Ideally getLogFilePath() should be in ProcessJob or AbstractProcessJob.  However, that's all in azkaban-common.  \r\n\r\nShould I go ahead and raise a pull request for this method in AbstractProcessJob?","created_at":"2015-10-07T21:44:16Z","updated_at":"2015-10-07T21:44:16Z","html_url":"https://github.com/azkaban/azkaban-plugins/pull/201#discussion_r41451794","pull_request_url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/201","_links":{"self":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/comments/41451794"},"html":{"href":"https://github.com/azkaban/azkaban-plugins/pull/201#discussion_r41451794"},"pull_request":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/201"}}},"pull_request":{"url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/201","id":45612465,"html_url":"https://github.com/azkaban/azkaban-plugins/pull/201","diff_url":"https://github.com/azkaban/azkaban-plugins/pull/201.diff","patch_url":"https://github.com/azkaban/azkaban-plugins/pull/201.patch","issue_url":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/201","number":201,"state":"open","locked":false,"title":"adding the cancel method for Hive, HadoopJava, Pig","user":{"login":"johnyu0520","id":12088335,"avatar_url":"https://avatars.githubusercontent.com/u/12088335?v=3","gravatar_id":"","url":"https://api.github.com/users/johnyu0520","html_url":"https://github.com/johnyu0520","followers_url":"https://api.github.com/users/johnyu0520/followers","following_url":"https://api.github.com/users/johnyu0520/following{/other_user}","gists_url":"https://api.github.com/users/johnyu0520/gists{/gist_id}","starred_url":"https://api.github.com/users/johnyu0520/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnyu0520/subscriptions","organizations_url":"https://api.github.com/users/johnyu0520/orgs","repos_url":"https://api.github.com/users/johnyu0520/repos","events_url":"https://api.github.com/users/johnyu0520/events{/privacy}","received_events_url":"https://api.github.com/users/johnyu0520/received_events","type":"User","site_admin":false},"body":"so that it kills the hadoop job that it launches","created_at":"2015-09-21T23:22:00Z","updated_at":"2015-10-07T21:44:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d597c263dc2d6464170345c405fce6897bf92495","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/201/commits","review_comments_url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/201/comments","review_comment_url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/201/comments","statuses_url":"https://api.github.com/repos/azkaban/azkaban-plugins/statuses/fdb32fa4475e2249708daaadf02c7994b51f1419","head":{"label":"johnyu0520:master","ref":"master","sha":"fdb32fa4475e2249708daaadf02c7994b51f1419","user":{"login":"johnyu0520","id":12088335,"avatar_url":"https://avatars.githubusercontent.com/u/12088335?v=3","gravatar_id":"","url":"https://api.github.com/users/johnyu0520","html_url":"https://github.com/johnyu0520","followers_url":"https://api.github.com/users/johnyu0520/followers","following_url":"https://api.github.com/users/johnyu0520/following{/other_user}","gists_url":"https://api.github.com/users/johnyu0520/gists{/gist_id}","starred_url":"https://api.github.com/users/johnyu0520/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnyu0520/subscriptions","organizations_url":"https://api.github.com/users/johnyu0520/orgs","repos_url":"https://api.github.com/users/johnyu0520/repos","events_url":"https://api.github.com/users/johnyu0520/events{/privacy}","received_events_url":"https://api.github.com/users/johnyu0520/received_events","type":"User","site_admin":false},"repo":{"id":39963122,"name":"azkaban-plugins","full_name":"johnyu0520/azkaban-plugins","owner":{"login":"johnyu0520","id":12088335,"avatar_url":"https://avatars.githubusercontent.com/u/12088335?v=3","gravatar_id":"","url":"https://api.github.com/users/johnyu0520","html_url":"https://github.com/johnyu0520","followers_url":"https://api.github.com/users/johnyu0520/followers","following_url":"https://api.github.com/users/johnyu0520/following{/other_user}","gists_url":"https://api.github.com/users/johnyu0520/gists{/gist_id}","starred_url":"https://api.github.com/users/johnyu0520/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnyu0520/subscriptions","organizations_url":"https://api.github.com/users/johnyu0520/orgs","repos_url":"https://api.github.com/users/johnyu0520/repos","events_url":"https://api.github.com/users/johnyu0520/events{/privacy}","received_events_url":"https://api.github.com/users/johnyu0520/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnyu0520/azkaban-plugins","description":"Plugins for Azkaban.","fork":true,"url":"https://api.github.com/repos/johnyu0520/azkaban-plugins","forks_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/forks","keys_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/teams","hooks_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/hooks","issue_events_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/events","assignees_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/tags","blobs_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/languages","stargazers_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/stargazers","contributors_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/contributors","subscribers_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/subscribers","subscription_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/subscription","commits_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/merges","archive_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/downloads","issues_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/labels{/name}","releases_url":"https://api.github.com/repos/johnyu0520/azkaban-plugins/releases{/id}","created_at":"2015-07-30T17:24:05Z","updated_at":"2015-07-30T17:24:07Z","pushed_at":"2015-09-30T00:19:03Z","git_url":"git://github.com/johnyu0520/azkaban-plugins.git","ssh_url":"git@github.com:johnyu0520/azkaban-plugins.git","clone_url":"https://github.com/johnyu0520/azkaban-plugins.git","svn_url":"https://github.com/johnyu0520/azkaban-plugins","homepage":"https://azkaban.github.io","size":148612,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"azkaban:master","ref":"master","sha":"c96178839af28a0588f385fe57c8e98509ef8f93","user":{"login":"azkaban","id":213618,"avatar_url":"https://avatars.githubusercontent.com/u/213618?v=3","gravatar_id":"","url":"https://api.github.com/users/azkaban","html_url":"https://github.com/azkaban","followers_url":"https://api.github.com/users/azkaban/followers","following_url":"https://api.github.com/users/azkaban/following{/other_user}","gists_url":"https://api.github.com/users/azkaban/gists{/gist_id}","starred_url":"https://api.github.com/users/azkaban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azkaban/subscriptions","organizations_url":"https://api.github.com/users/azkaban/orgs","repos_url":"https://api.github.com/users/azkaban/repos","events_url":"https://api.github.com/users/azkaban/events{/privacy}","received_events_url":"https://api.github.com/users/azkaban/received_events","type":"Organization","site_admin":false},"repo":{"id":7566859,"name":"azkaban-plugins","full_name":"azkaban/azkaban-plugins","owner":{"login":"azkaban","id":213618,"avatar_url":"https://avatars.githubusercontent.com/u/213618?v=3","gravatar_id":"","url":"https://api.github.com/users/azkaban","html_url":"https://github.com/azkaban","followers_url":"https://api.github.com/users/azkaban/followers","following_url":"https://api.github.com/users/azkaban/following{/other_user}","gists_url":"https://api.github.com/users/azkaban/gists{/gist_id}","starred_url":"https://api.github.com/users/azkaban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azkaban/subscriptions","organizations_url":"https://api.github.com/users/azkaban/orgs","repos_url":"https://api.github.com/users/azkaban/repos","events_url":"https://api.github.com/users/azkaban/events{/privacy}","received_events_url":"https://api.github.com/users/azkaban/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/azkaban/azkaban-plugins","description":"Plugins for Azkaban.","fork":false,"url":"https://api.github.com/repos/azkaban/azkaban-plugins","forks_url":"https://api.github.com/repos/azkaban/azkaban-plugins/forks","keys_url":"https://api.github.com/repos/azkaban/azkaban-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azkaban/azkaban-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azkaban/azkaban-plugins/teams","hooks_url":"https://api.github.com/repos/azkaban/azkaban-plugins/hooks","issue_events_url":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/azkaban/azkaban-plugins/events","assignees_url":"https://api.github.com/repos/azkaban/azkaban-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/azkaban/azkaban-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/azkaban/azkaban-plugins/tags","blobs_url":"https://api.github.com/repos/azkaban/azkaban-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azkaban/azkaban-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azkaban/azkaban-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/azkaban/azkaban-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azkaban/azkaban-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/azkaban/azkaban-plugins/languages","stargazers_url":"https://api.github.com/repos/azkaban/azkaban-plugins/stargazers","contributors_url":"https://api.github.com/repos/azkaban/azkaban-plugins/contributors","subscribers_url":"https://api.github.com/repos/azkaban/azkaban-plugins/subscribers","subscription_url":"https://api.github.com/repos/azkaban/azkaban-plugins/subscription","commits_url":"https://api.github.com/repos/azkaban/azkaban-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/azkaban/azkaban-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/azkaban/azkaban-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/azkaban/azkaban-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/azkaban/azkaban-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azkaban/azkaban-plugins/merges","archive_url":"https://api.github.com/repos/azkaban/azkaban-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azkaban/azkaban-plugins/downloads","issues_url":"https://api.github.com/repos/azkaban/azkaban-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/azkaban/azkaban-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/azkaban/azkaban-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azkaban/azkaban-plugins/labels{/name}","releases_url":"https://api.github.com/repos/azkaban/azkaban-plugins/releases{/id}","created_at":"2013-01-11T20:53:36Z","updated_at":"2015-09-21T03:42:53Z","pushed_at":"2015-10-07T00:54:57Z","git_url":"git://github.com/azkaban/azkaban-plugins.git","ssh_url":"git@github.com:azkaban/azkaban-plugins.git","clone_url":"https://github.com/azkaban/azkaban-plugins.git","svn_url":"https://github.com/azkaban/azkaban-plugins","homepage":"https://azkaban.github.io","size":222984,"stargazers_count":30,"watchers_count":30,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":67,"mirror_url":null,"open_issues_count":25,"forks":67,"open_issues":25,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/201"},"html":{"href":"https://github.com/azkaban/azkaban-plugins/pull/201"},"issue":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/201"},"comments":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/201/comments"},"review_comments":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/201/comments"},"review_comment":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/201/commits"},"statuses":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/statuses/fdb32fa4475e2249708daaadf02c7994b51f1419"}}}}