{"action":"created","comment":{"url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/comments/36555892","id":36555892,"diff_hunk":"@@ -0,0 +1,422 @@\n+/*\n+ * Copyright 2012 LinkedIn Corp.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n+ * use this file except in compliance with the License. You may obtain a copy of\n+ * the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n+ * License for the specific language governing permissions and limitations under\n+ * the License.\n+ */\n+\n+package azkaban.jobtype;\n+\n+import static org.apache.hadoop.security.UserGroupInformation.HADOOP_TOKEN_FILE_LOCATION;\n+\n+import java.io.File;\n+import java.io.FilenameFilter;\n+import java.lang.reflect.InvocationTargetException;\n+import java.lang.reflect.Method;\n+import java.util.ArrayList;\n+import java.util.Collection;\n+import java.util.List;\n+import java.util.StringTokenizer;\n+\n+import org.apache.log4j.Logger;\n+\n+import azkaban.jobExecutor.JavaProcessJob;\n+import azkaban.security.commons.HadoopSecurityManager;\n+import azkaban.security.commons.HadoopSecurityManagerException;\n+import azkaban.utils.Props;\n+import azkaban.utils.StringUtils;\n+\n+public class HadoopSparkJob extends JavaProcessJob {","path":"plugins/jobtype/src/azkaban/jobtype/HadoopSparkJob.java","position":38,"original_position":38,"commit_id":"07dfcbd077a39d7cacf738988f8c687e27919ed3","original_commit_id":"07dfcbd077a39d7cacf738988f8c687e27919ed3","user":{"login":"hluu","id":533460,"avatar_url":"https://avatars.githubusercontent.com/u/533460?v=3","gravatar_id":"","url":"https://api.github.com/users/hluu","html_url":"https://github.com/hluu","followers_url":"https://api.github.com/users/hluu/followers","following_url":"https://api.github.com/users/hluu/following{/other_user}","gists_url":"https://api.github.com/users/hluu/gists{/gist_id}","starred_url":"https://api.github.com/users/hluu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hluu/subscriptions","organizations_url":"https://api.github.com/users/hluu/orgs","repos_url":"https://api.github.com/users/hluu/repos","events_url":"https://api.github.com/users/hluu/events{/privacy}","received_events_url":"https://api.github.com/users/hluu/received_events","type":"User","site_admin":false},"body":"Please add some javadoc","created_at":"2015-08-07T20:06:25Z","updated_at":"2015-08-07T20:06:25Z","html_url":"https://github.com/azkaban/azkaban-plugins/pull/195#discussion_r36555892","pull_request_url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/195","_links":{"self":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/comments/36555892"},"html":{"href":"https://github.com/azkaban/azkaban-plugins/pull/195#discussion_r36555892"},"pull_request":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/195"}}},"pull_request":{"url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/195","id":41741679,"html_url":"https://github.com/azkaban/azkaban-plugins/pull/195","diff_url":"https://github.com/azkaban/azkaban-plugins/pull/195.diff","patch_url":"https://github.com/azkaban/azkaban-plugins/pull/195.patch","issue_url":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/195","number":195,"state":"open","locked":false,"title":"Azkaban Spark job type plugin","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":"initial commit for Azkaban Spark job type.  Currently works for David Leung's example-spark-azkaban-report","created_at":"2015-08-06T00:36:29Z","updated_at":"2015-08-07T20:06:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eaa832b72841f2f5b8dedcd0152593564c88e707","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/195/commits","review_comments_url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/195/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/195/comments","statuses_url":"https://api.github.com/repos/azkaban/azkaban-plugins/statuses/07dfcbd077a39d7cacf738988f8c687e27919ed3","head":{"label":"johnyu0520:master","ref":"master","sha":"07dfcbd077a39d7cacf738988f8c687e27919ed3","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-08-06T00:35:21Z","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":206719,"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":"f802cd615085e63c6de4853518f9a8108902f129","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-07-13T01:49:15Z","pushed_at":"2015-08-06T00:36:30Z","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":206652,"stargazers_count":29,"watchers_count":29,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":21,"forks":63,"open_issues":21,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/195"},"html":{"href":"https://github.com/azkaban/azkaban-plugins/pull/195"},"issue":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/195"},"comments":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/195/comments"},"review_comments":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/195/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/195/commits"},"statuses":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/statuses/07dfcbd077a39d7cacf738988f8c687e27919ed3"}}}}