{"action":"closed","number":835,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/835","id":66423568,"html_url":"https://github.com/apache/incubator-zeppelin/pull/835","diff_url":"https://github.com/apache/incubator-zeppelin/pull/835.diff","patch_url":"https://github.com/apache/incubator-zeppelin/pull/835.patch","issue_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/835","number":835,"state":"closed","locked":false,"title":"ZEPPELIN-804 Refactoring registration mechanism on Interpreters","user":{"login":"jongyoul","id":3612566,"avatar_url":"https://avatars.githubusercontent.com/u/3612566?v=3","gravatar_id":"","url":"https://api.github.com/users/jongyoul","html_url":"https://github.com/jongyoul","followers_url":"https://api.github.com/users/jongyoul/followers","following_url":"https://api.github.com/users/jongyoul/following{/other_user}","gists_url":"https://api.github.com/users/jongyoul/gists{/gist_id}","starred_url":"https://api.github.com/users/jongyoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jongyoul/subscriptions","organizations_url":"https://api.github.com/users/jongyoul/orgs","repos_url":"https://api.github.com/users/jongyoul/repos","events_url":"https://api.github.com/users/jongyoul/events{/privacy}","received_events_url":"https://api.github.com/users/jongyoul/received_events","type":"User","site_admin":false},"body":"### What is this PR for?\r\nThis PR enable Zeppelin server register Interpreters without any dependencies of their own. For instance, we should build `spark` with `spark-dependencies` even we use our own Spark cluster because current initialisation mechanism needs to all of its dependencies.\r\n\r\n### What type of PR is it?\r\n[Improvement]\r\n\r\n### Todos\r\n* [x] - Add RegisteredInterpreter from interpreter-setting.json in a jar or interpreter/{interpreter}/interpreter-setting.json\r\n* [x] - Adjust it to Spark*Interpreter \r\n\r\n### What is the Jira issue?\r\n* https://issues.apache.org/jira/browse/ZEPPELIN-804\r\n\r\n### How should this be tested?\r\n1. Prepare your own spark cluster - e.g. standalone, Yarn, Mesos -\r\n1. rm -rf interpreter\r\n1. mvn clean package -DskipTests -pl 'zeppelin-display,zeppelin-interpreter,zeppelin-server,zeppelin-web,zeppelin-zengine,angular,jdbc,spark'\r\n1. bin/zeppelin-daemon.sh start\r\n1. Check error in log\r\n1. apply patch\r\n1. mvn clean package -DskipTests -pl 'zeppelin-display,zeppelin-interpreter,zeppelin-server,zeppelin-web,zeppelin-zengine,angular,jdbc,spark'\r\n1. bin/zeppelin-daemon.sh start\r\n1. run some paragraph with simple command like `sc.version`\r\n\r\n### Screenshots (if appropriate)\r\n\r\n### Questions:\r\n* Does the licenses files need update? No\r\n* Is there breaking changes for older versions? No\r\n* Does this needs documentation? No\r\n\r\n### Description\r\n\r\n#### This PR introduce three initialisation mechanism including current one.\r\n* {interpreter_dir}/{interpreter_group}/interpreter-setting.json\r\n* interpreter-settings.json in your interpreter jar\r\n* Current static initialization\r\n\r\n#### Initialization step\r\n1. Get {interpreter_dir} from Configuration\r\n1. Get the list of {interpreter_dir}/[{interpreter_group1},{interpreter_group2}...]\r\n1. Find {interpreter_dir}/{interpreter_group1}/interpreter-setting.json\r\n1. Find interpreter-setting.json in the resources of {interpreter_dir}/{interpreter_group1}/**/*.jar\r\n1. Adopt static init\r\n1. Repeat them from the second step with {interpreter_group2}","created_at":"2016-04-14T03:16:12Z","updated_at":"2016-04-23T02:32:19Z","closed_at":"2016-04-23T02:32:19Z","merged_at":null,"merge_commit_sha":"e283d0aa56648fce31e52af8a1e8ed2413d70430","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/835/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/835/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/835/comments","statuses_url":"https://api.github.com/repos/apache/incubator-zeppelin/statuses/36a64fae1664fcf8b6f9cc44ad0dc02357e70490","head":{"label":"jongyoul:ZEPPELIN-804","ref":"ZEPPELIN-804","sha":"36a64fae1664fcf8b6f9cc44ad0dc02357e70490","user":{"login":"jongyoul","id":3612566,"avatar_url":"https://avatars.githubusercontent.com/u/3612566?v=3","gravatar_id":"","url":"https://api.github.com/users/jongyoul","html_url":"https://github.com/jongyoul","followers_url":"https://api.github.com/users/jongyoul/followers","following_url":"https://api.github.com/users/jongyoul/following{/other_user}","gists_url":"https://api.github.com/users/jongyoul/gists{/gist_id}","starred_url":"https://api.github.com/users/jongyoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jongyoul/subscriptions","organizations_url":"https://api.github.com/users/jongyoul/orgs","repos_url":"https://api.github.com/users/jongyoul/repos","events_url":"https://api.github.com/users/jongyoul/events{/privacy}","received_events_url":"https://api.github.com/users/jongyoul/received_events","type":"User","site_admin":false},"repo":{"id":32848214,"name":"incubator-zeppelin","full_name":"jongyoul/incubator-zeppelin","owner":{"login":"jongyoul","id":3612566,"avatar_url":"https://avatars.githubusercontent.com/u/3612566?v=3","gravatar_id":"","url":"https://api.github.com/users/jongyoul","html_url":"https://github.com/jongyoul","followers_url":"https://api.github.com/users/jongyoul/followers","following_url":"https://api.github.com/users/jongyoul/following{/other_user}","gists_url":"https://api.github.com/users/jongyoul/gists{/gist_id}","starred_url":"https://api.github.com/users/jongyoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jongyoul/subscriptions","organizations_url":"https://api.github.com/users/jongyoul/orgs","repos_url":"https://api.github.com/users/jongyoul/repos","events_url":"https://api.github.com/users/jongyoul/events{/privacy}","received_events_url":"https://api.github.com/users/jongyoul/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jongyoul/incubator-zeppelin","description":"Mirror of Apache Zeppelin (Incubating)","fork":true,"url":"https://api.github.com/repos/jongyoul/incubator-zeppelin","forks_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/forks","keys_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/teams","hooks_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/hooks","issue_events_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/issues/events{/number}","events_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/events","assignees_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/assignees{/user}","branches_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/branches{/branch}","tags_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/tags","blobs_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/statuses/{sha}","languages_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/languages","stargazers_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/stargazers","contributors_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/contributors","subscribers_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/subscribers","subscription_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/subscription","commits_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/contents/{+path}","compare_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/merges","archive_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/downloads","issues_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/issues{/number}","pulls_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/pulls{/number}","milestones_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/milestones{/number}","notifications_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/labels{/name}","releases_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/releases{/id}","deployments_url":"https://api.github.com/repos/jongyoul/incubator-zeppelin/deployments","created_at":"2015-03-25T07:01:35Z","updated_at":"2016-01-11T07:05:10Z","pushed_at":"2016-04-22T07:44:32Z","git_url":"git://github.com/jongyoul/incubator-zeppelin.git","ssh_url":"git@github.com:jongyoul/incubator-zeppelin.git","clone_url":"https://github.com/jongyoul/incubator-zeppelin.git","svn_url":"https://github.com/jongyoul/incubator-zeppelin","homepage":null,"size":21021,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apache:master","ref":"master","sha":"a6c8b5fcbeb42ca428a08b0be192acba6683d0a0","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":32848140,"name":"incubator-zeppelin","full_name":"apache/incubator-zeppelin","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-zeppelin","description":"Mirror of Apache Zeppelin (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-zeppelin","forks_url":"https://api.github.com/repos/apache/incubator-zeppelin/forks","keys_url":"https://api.github.com/repos/apache/incubator-zeppelin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-zeppelin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-zeppelin/teams","hooks_url":"https://api.github.com/repos/apache/incubator-zeppelin/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-zeppelin/events","assignees_url":"https://api.github.com/repos/apache/incubator-zeppelin/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-zeppelin/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-zeppelin/tags","blobs_url":"https://api.github.com/repos/apache/incubator-zeppelin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-zeppelin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-zeppelin/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-zeppelin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-zeppelin/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-zeppelin/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-zeppelin/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-zeppelin/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-zeppelin/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-zeppelin/subscription","commits_url":"https://api.github.com/repos/apache/incubator-zeppelin/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-zeppelin/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-zeppelin/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-zeppelin/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-zeppelin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-zeppelin/merges","archive_url":"https://api.github.com/repos/apache/incubator-zeppelin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-zeppelin/downloads","issues_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-zeppelin/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-zeppelin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-zeppelin/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-zeppelin/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-zeppelin/deployments","created_at":"2015-03-25T07:00:06Z","updated_at":"2016-04-22T17:13:01Z","pushed_at":"2016-04-22T07:44:33Z","git_url":"git://github.com/apache/incubator-zeppelin.git","ssh_url":"git@github.com:apache/incubator-zeppelin.git","clone_url":"https://github.com/apache/incubator-zeppelin.git","svn_url":"https://github.com/apache/incubator-zeppelin","homepage":null,"size":97256,"stargazers_count":1389,"watchers_count":1389,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":687,"mirror_url":"git://git.apache.org/incubator-zeppelin.git","open_issues_count":96,"forks":687,"open_issues":96,"watchers":1389,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/835"},"html":{"href":"https://github.com/apache/incubator-zeppelin/pull/835"},"issue":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/issues/835"},"comments":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/issues/835/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/835/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/835/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/statuses/36a64fae1664fcf8b6f9cc44ad0dc02357e70490"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":13,"review_comments":4,"commits":11,"additions":397,"deletions":169,"changed_files":15}}