{"action":"created","comment":{"url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/comments/53392653","id":53392653,"diff_hunk":"@@ -0,0 +1,52 @@\n+/*\n+ * Copyright 2014-2016 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 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.connectors.gobblin;\n+\n+import java.util.Map;\n+\n+import com.google.common.collect.ImmutableMap;\n+import com.google.common.collect.Maps;\n+\n+\n+/**\n+ * An enum for GobblinPresets. Gobblin has more than hundred properties and GobblinPresets represents set of default properties.\n+ * Using GobblinPresets, user can reduce number of input parameters which consequently increase usability.\n+ */\n+public enum GobblinPresets {\n+  MYSQL_TO_HDFS(\"mysqlToHdfs\");\n+\n+  private final String name;\n+\n+  private GobblinPresets(String name) {\n+    this.name = name;\n+  }\n+\n+  public static GobblinPresets fromName(String name) {\n+    GobblinPresets preset = NAME_TO_PRESET.get(name);\n+    if (preset == null) {\n+      throw new IllegalArgumentException(name + \" is unrecognized. Known presets: \" + NAME_TO_PRESET.keySet());\n+    }\n+    return preset;\n+  }\n+\n+  private static final Map<String, GobblinPresets> NAME_TO_PRESET;","path":"plugins/jobtype/src/azkaban/jobtype/connectors/gobblin/GobblinPresets.java","position":44,"original_position":44,"commit_id":"d8f1989f2f8fdf68de2588058bacc1a21c978182","original_commit_id":"d8f1989f2f8fdf68de2588058bacc1a21c978182","user":{"login":"jinhyukchang","id":14986757,"avatar_url":"https://avatars.githubusercontent.com/u/14986757?v=3","gravatar_id":"","url":"https://api.github.com/users/jinhyukchang","html_url":"https://github.com/jinhyukchang","followers_url":"https://api.github.com/users/jinhyukchang/followers","following_url":"https://api.github.com/users/jinhyukchang/following{/other_user}","gists_url":"https://api.github.com/users/jinhyukchang/gists{/gist_id}","starred_url":"https://api.github.com/users/jinhyukchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinhyukchang/subscriptions","organizations_url":"https://api.github.com/users/jinhyukchang/orgs","repos_url":"https://api.github.com/users/jinhyukchang/repos","events_url":"https://api.github.com/users/jinhyukchang/events{/privacy}","received_events_url":"https://api.github.com/users/jinhyukchang/received_events","type":"User","site_admin":false},"body":"Will do.","created_at":"2016-02-18T22:22:53Z","updated_at":"2016-02-18T22:22:53Z","html_url":"https://github.com/azkaban/azkaban-plugins/pull/216#discussion_r53392653","pull_request_url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/216","_links":{"self":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/comments/53392653"},"html":{"href":"https://github.com/azkaban/azkaban-plugins/pull/216#discussion_r53392653"},"pull_request":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/216"}}},"pull_request":{"url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/216","id":58950045,"html_url":"https://github.com/azkaban/azkaban-plugins/pull/216","diff_url":"https://github.com/azkaban/azkaban-plugins/pull/216.diff","patch_url":"https://github.com/azkaban/azkaban-plugins/pull/216.patch","issue_url":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/216","number":216,"state":"open","locked":false,"title":"gobblin job type","user":{"login":"jinhyukchang","id":14986757,"avatar_url":"https://avatars.githubusercontent.com/u/14986757?v=3","gravatar_id":"","url":"https://api.github.com/users/jinhyukchang","html_url":"https://github.com/jinhyukchang","followers_url":"https://api.github.com/users/jinhyukchang/followers","following_url":"https://api.github.com/users/jinhyukchang/following{/other_user}","gists_url":"https://api.github.com/users/jinhyukchang/gists{/gist_id}","starred_url":"https://api.github.com/users/jinhyukchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinhyukchang/subscriptions","organizations_url":"https://api.github.com/users/jinhyukchang/orgs","repos_url":"https://api.github.com/users/jinhyukchang/repos","events_url":"https://api.github.com/users/jinhyukchang/events{/privacy}","received_events_url":"https://api.github.com/users/jinhyukchang/received_events","type":"User","site_admin":false},"body":"This is a new job type that integrates Gobblin with Azkaban where user can put Gobblin job properties in Azkaban's Job property and Azkaban will launch Gobblin with Map Reduce mode.\r\n\r\nhttps://github.com/linkedin/gobblin/wiki\r\nhttps://iwww.corp.linkedin.com/wiki/cf/pages/viewpage.action?pageId=148020872","created_at":"2016-02-10T20:39:48Z","updated_at":"2016-02-18T22:22:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f115cfca0092316b556d5a577b2f12efea1fe26","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/216/commits","review_comments_url":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/216/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/216/comments","statuses_url":"https://api.github.com/repos/azkaban/azkaban-plugins/statuses/d8f1989f2f8fdf68de2588058bacc1a21c978182","head":{"label":"jinhyukchang:jnchang-gobblin","ref":"jnchang-gobblin","sha":"d8f1989f2f8fdf68de2588058bacc1a21c978182","user":{"login":"jinhyukchang","id":14986757,"avatar_url":"https://avatars.githubusercontent.com/u/14986757?v=3","gravatar_id":"","url":"https://api.github.com/users/jinhyukchang","html_url":"https://github.com/jinhyukchang","followers_url":"https://api.github.com/users/jinhyukchang/followers","following_url":"https://api.github.com/users/jinhyukchang/following{/other_user}","gists_url":"https://api.github.com/users/jinhyukchang/gists{/gist_id}","starred_url":"https://api.github.com/users/jinhyukchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinhyukchang/subscriptions","organizations_url":"https://api.github.com/users/jinhyukchang/orgs","repos_url":"https://api.github.com/users/jinhyukchang/repos","events_url":"https://api.github.com/users/jinhyukchang/events{/privacy}","received_events_url":"https://api.github.com/users/jinhyukchang/received_events","type":"User","site_admin":false},"repo":{"id":46369125,"name":"azkaban-plugins","full_name":"jinhyukchang/azkaban-plugins","owner":{"login":"jinhyukchang","id":14986757,"avatar_url":"https://avatars.githubusercontent.com/u/14986757?v=3","gravatar_id":"","url":"https://api.github.com/users/jinhyukchang","html_url":"https://github.com/jinhyukchang","followers_url":"https://api.github.com/users/jinhyukchang/followers","following_url":"https://api.github.com/users/jinhyukchang/following{/other_user}","gists_url":"https://api.github.com/users/jinhyukchang/gists{/gist_id}","starred_url":"https://api.github.com/users/jinhyukchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinhyukchang/subscriptions","organizations_url":"https://api.github.com/users/jinhyukchang/orgs","repos_url":"https://api.github.com/users/jinhyukchang/repos","events_url":"https://api.github.com/users/jinhyukchang/events{/privacy}","received_events_url":"https://api.github.com/users/jinhyukchang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jinhyukchang/azkaban-plugins","description":"Plugins for Azkaban.","fork":true,"url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins","forks_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/forks","keys_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/teams","hooks_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/hooks","issue_events_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/events","assignees_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/tags","blobs_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/languages","stargazers_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/stargazers","contributors_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/contributors","subscribers_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/subscribers","subscription_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/subscription","commits_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/merges","archive_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/downloads","issues_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/labels{/name}","releases_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/jinhyukchang/azkaban-plugins/deployments","created_at":"2015-11-17T19:09:58Z","updated_at":"2015-11-17T19:10:04Z","pushed_at":"2016-02-10T20:37:39Z","git_url":"git://github.com/jinhyukchang/azkaban-plugins.git","ssh_url":"git@github.com:jinhyukchang/azkaban-plugins.git","clone_url":"https://github.com/jinhyukchang/azkaban-plugins.git","svn_url":"https://github.com/jinhyukchang/azkaban-plugins","homepage":"https://azkaban.github.io","size":259356,"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":"244c867f413c80dc3a9a205fed439b9df602b819","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}","deployments_url":"https://api.github.com/repos/azkaban/azkaban-plugins/deployments","created_at":"2013-01-11T20:53:36Z","updated_at":"2016-02-17T14:43:26Z","pushed_at":"2016-02-10T20:39:48Z","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":232168,"stargazers_count":39,"watchers_count":39,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":26,"forks":74,"open_issues":26,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/216"},"html":{"href":"https://github.com/azkaban/azkaban-plugins/pull/216"},"issue":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/216"},"comments":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/issues/216/comments"},"review_comments":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/pulls/216/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/216/commits"},"statuses":{"href":"https://api.github.com/repos/azkaban/azkaban-plugins/statuses/d8f1989f2f8fdf68de2588058bacc1a21c978182"}}}}