{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/908","repository_url":"https://api.github.com/repos/apache/incubator-zeppelin","labels_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/908/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/908/comments","events_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/908/events","html_url":"https://github.com/apache/incubator-zeppelin/pull/908","id":156136678,"number":908,"title":"ZEPPELIN-598 ] Dynamic loading for Interpreter and API","user":{"login":"cloverhearts","id":10525473,"avatar_url":"https://avatars.githubusercontent.com/u/10525473?v=3","gravatar_id":"","url":"https://api.github.com/users/cloverhearts","html_url":"https://github.com/cloverhearts","followers_url":"https://api.github.com/users/cloverhearts/followers","following_url":"https://api.github.com/users/cloverhearts/following{/other_user}","gists_url":"https://api.github.com/users/cloverhearts/gists{/gist_id}","starred_url":"https://api.github.com/users/cloverhearts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloverhearts/subscriptions","organizations_url":"https://api.github.com/users/cloverhearts/orgs","repos_url":"https://api.github.com/users/cloverhearts/repos","events_url":"https://api.github.com/users/cloverhearts/events{/privacy}","received_events_url":"https://api.github.com/users/cloverhearts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-22T05:50:22Z","updated_at":"2016-06-01T03:45:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/908","html_url":"https://github.com/apache/incubator-zeppelin/pull/908","diff_url":"https://github.com/apache/incubator-zeppelin/pull/908.diff","patch_url":"https://github.com/apache/incubator-zeppelin/pull/908.patch"},"body":"### What is this PR for?\r\nUse of external libraries that are included in the Roadmap,\r\nThe interpreter needs related to dynamic loading capabilities.\r\n\r\n\r\n### What type of PR is it?\r\nFeature\r\n\r\n### Todos\r\n* [x] - Dynamic load\r\n* [x] - make api\r\n* [x] - Modified according to feedback (https://github.com/apache/incubator-zeppelin/pull/631)\r\n\r\n### ScreenShots\r\n![markdown_test](https://cloud.githubusercontent.com/assets/10525473/15452508/d786f276-202b-11e6-95e5-0e2b898cb6c7.gif)\r\n\r\n\r\n### Is there a relevant Jira issue?\r\nhttps://issues.apache.org/jira/browse/ZEPPELIN-598\r\n\r\n### How should this be tested?\r\nBy annotating the interpreter setting items below, try using the loadDynamicInterpreter method.\r\nOr create a new interpreter loads created in the local Maven repository.\r\n\r\nStep 1.\r\nmarkdown interpreter to local distribute\r\n```\r\nmvn install -pl '!spark-dependencies,!spark,!flink,!ignite,!lens,!hive,!phoenix,!postgresql,!tajo,!cassandra,!kylin,!elasticsearch,!zeppelin-distribution' -DskipTests\r\n```\r\nStep 2.\r\nComment out the markdown\r\nincubator-zeppelin/zeppelin-zengine/src/main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java\r\n``` java \r\n    ZEPPELIN_INTERPRETERS(\"zeppelin.interpreters\", \"org.apache.zeppelin.spark.SparkInterpreter,\"\r\n        + \"org.apache.zeppelin.spark.PySparkInterpreter,\"\r\n        + \"org.apache.zeppelin.spark.SparkSqlInterpreter,\"\r\n        + \"org.apache.zeppelin.spark.DepInterpreter,\"\r\n        // + \"org.apache.zeppelin.markdown.Markdown,\"\r\n...\r\n```\r\nStep 3.\r\nand build.\r\nFor example.\r\n```\r\nmvn clean package -Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark -DskipTests\r\n```\r\nStep 4.\r\nremove to interpreter/md\r\n```\r\nrm -rf interpreter/md\r\n```\r\noption.\r\nfixed conf/zeppelin-env.sh(cmd) download interpreter directory.\r\n```\r\nexport ZEPPELIN_INTERPRETER_DOWNLOAD_DIR=MyZeppelinInterpreter\r\n```\r\nStep 5.\r\nand API Call (load interpreter) example load markdown \r\n```\r\nContent-Type: application/json\r\n```\r\n\r\n```\r\nPOST http://127.0.0.1:8080/api/interpreter/load/md/markdown\r\n{\r\n  \"artifact\": \"org.apache.zeppelin:zeppelin-markdown:0.6.0-incubating-SNAPSHOT\",\r\n  \"className\": \"org.apache.zeppelin.markdown.Markdown\",\r\n  \"repository\": {\r\n    \"url\": \"http://dl.bintray.com/spark-packages/maven\",\r\n    \"snapshot\" : true\r\n  }\r\n}\r\n```\r\n\r\nStep 6. \r\nIn interperter menu for zeppelin web, you can new setting information for md.\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**"},"comment":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/comments/222885278","html_url":"https://github.com/apache/incubator-zeppelin/pull/908#issuecomment-222885278","issue_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/908","id":222885278,"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},"created_at":"2016-06-01T03:45:21Z","updated_at":"2016-06-01T03:45:21Z","body":"Ping. I make a new issue that may break this PR - https://issues.apache.org/jira/browse/ZEPPELIN-932 -. Could anyone please check the status of this PR?"}}
{"actor":{"display_login":"jongyoul"}}