Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 45D86200C18 for ; Sat, 11 Feb 2017 13:29:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3989D160B5D; Sat, 11 Feb 2017 12:29:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5A6E1160B51 for ; Sat, 11 Feb 2017 13:29:17 +0100 (CET) Received: (qmail 32398 invoked by uid 500); 11 Feb 2017 12:29:16 -0000 Mailing-List: contact commits-help@zeppelin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zeppelin.apache.org Delivered-To: mailing list commits@zeppelin.apache.org Received: (qmail 32389 invoked by uid 99); 11 Feb 2017 12:29:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2017 12:29:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4CD1FDFD8C; Sat, 11 Feb 2017 12:29:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ahyoungryu@apache.org To: commits@zeppelin.apache.org Message-Id: <0819f08893c84deea099c1f18aa3d099@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: zeppelin git commit: [MINOR][ZEPPELIN-2090] Remove "zeppelin.interpreters" property related guide msg Date: Sat, 11 Feb 2017 12:29:16 +0000 (UTC) archived-at: Sat, 11 Feb 2017 12:29:18 -0000 Repository: zeppelin Updated Branches: refs/heads/master 0f5f9cb5b -> 99f01f7fa [MINOR][ZEPPELIN-2090] Remove "zeppelin.interpreters" property related guide msg ### What is this PR for? As we won't support `zeppelin.interpreters` property anymore (from `0.7.0`), the related msg should be removed accordingly. So I removed it from [docs/manual/interpreterinstallation.md#install-3rd-party-interpreters](https://github.com/apache/zeppelin/blob/master/docs/manual/interpreterinstallation.md#install-3rd-party-interpreters) & [InstallInterpreter.java#L291](https://github.com/apache/zeppelin/blob/master/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/install/InstallInterpreter.java#L291). And rewrite some guide msg like below. 1. After successful installation - Before ``` Interpreter spark installed under /Users/ahyoungryu/Dev/zeppelin-bin/zeppelin-0.7.0-bin-netinst/interpreter/spark. Add interpreter class name to 'zeppelin.interpreters' property in your conf/zeppelin-site.xml file Create interpreter setting in 'Interpreter' menu on GUI. And then you can bind interpreter on your notebook ``` - After ``` Interpreter spark installed under /Users/ahyoungryu/Dev/zeppelin-development/zeppelin/interpreter/spark. 1. Restart Zeppelin 2. Create interpreter setting in 'Interpreter' menu on Zeppelin GUI 3. Then you can bind the interpreter on your note ``` 2. If it's skipped (since the interpreter dir already existed) - Before ``` Directory /Users/ahyoungryu/Dev/zeppelin-bin/zeppelin-0.7.0-bin-netinst/interpreter/flink already exists. Skipping Create interpreter setting in 'Interpreter' menu on GUI. And then you can bind interpreter on your notebook ``` - After ``` Directory /Users/ahyoungryu/Dev/zeppelin-development/zeppelin/interpreter/flink already exists Skipped ``` ### What type of PR is it? just removed unnecessary message :) ### What is the Jira issue? [ZEPPELIN-2090](https://issues.apache.org/jira/browse/ZEPPELIN-2090) ### How should this be tested? 1. Apply this patch and build with ``` $ mvn clean package -DskipTests -pl 'zeppelin-interpreter, zeppelin-zengine, zeppelin-server' ``` 2. Remove `interpreter/spark` ``` $ rm -r interpreter/spark ``` 3. Install Spark using `install-interpreter.sh` ``` $ ./bin/install-interpreter.sh --name spark --artifact org.apache.zeppelin:zeppelin-spark_2.10:0.7.0 ``` Then the msg should be like screen shot 2017-02-09 at 5 06 27 pm ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: AhyoungRyu Closes #1999 from AhyoungRyu/remove/deprecatedTipMsg and squashes the following commits: c7305d0 [AhyoungRyu] Rewrite tip msg & remove deprecated setting msg 5058273 [AhyoungRyu] Remove deprecated interpreter setting msg Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/99f01f7f Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/99f01f7f Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/99f01f7f Branch: refs/heads/master Commit: 99f01f7fa059689215334d9e60e086bfc3a3bfd9 Parents: 0f5f9cb Author: AhyoungRyu Authored: Thu Feb 9 16:11:15 2017 +0900 Committer: ahyoungryu Committed: Sat Feb 11 21:29:05 2017 +0900 ---------------------------------------------------------------------- docs/manual/interpreterinstallation.md | 4 +--- .../interpreter/install/InstallInterpreter.java | 25 ++++++-------------- 2 files changed, 8 insertions(+), 21 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/99f01f7f/docs/manual/interpreterinstallation.md ---------------------------------------------------------------------- diff --git a/docs/manual/interpreterinstallation.md b/docs/manual/interpreterinstallation.md index a0b6bd6..57bd6af 100644 --- a/docs/manual/interpreterinstallation.md +++ b/docs/manual/interpreterinstallation.md @@ -113,9 +113,7 @@ You can also install 3rd party interpreters located in the maven repository by u The above command will download maven artifact `groupId1:artifact1:version1` and all of it's transitive dependencies into `interpreter/interpreter1` directory. -Once you have installed interpreters, you'll need to add interpreter class name into `zeppelin.interpreters` property in [configuration](../install/configuration.html). -And then restart Zeppelin, [create interpreter setting](../manual/interpreters.html#what-is-zeppelin-interpreter) and [bind it with your notebook](../manual/interpreters.html#what-is-zeppelin-interpreter-setting). - +After restart Zeppelin, then [create interpreter setting](../manual/interpreters.html#what-is-zeppelin-interpreter) and [bind it with your notebook](../manual/interpreters.html#what-is-zeppelin-interpreter-setting). #### Install multiple 3rd party interpreters at once http://git-wip-us.apache.org/repos/asf/zeppelin/blob/99f01f7f/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/install/InstallInterpreter.java ---------------------------------------------------------------------- diff --git a/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/install/InstallInterpreter.java b/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/install/InstallInterpreter.java index 7f3ef99..7b67201 100644 --- a/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/install/InstallInterpreter.java +++ b/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/install/InstallInterpreter.java @@ -159,7 +159,9 @@ public class InstallInterpreter { File installDir = new File(interpreterBaseDir, name); if (installDir.exists()) { - System.err.println("Directory " + installDir.getAbsolutePath() + " already exists. Skipping"); + System.err.println("Directory " + installDir.getAbsolutePath() + + " already exists" + + "\n\nSkipped"); return; } @@ -170,6 +172,7 @@ public class InstallInterpreter { depResolver.load(artifact, installDir); System.out.println("Interpreter " + name + " installed under " + installDir.getAbsolutePath() + "."); + startTip(); } catch (RepositoryException e) { e.printStackTrace(); } catch (IOException e) { @@ -273,29 +276,15 @@ public class InstallInterpreter { if (names != null) { if (artifacts != null) { installer.install(names.split(","), artifacts.split(",")); - startTip(); - configurationTip(); - interpreterSettingTip(); } else { installer.install(names.split(",")); - startTip(); - interpreterSettingTip(); } } } private static void startTip() { - System.out.println(""); - } - - private static void configurationTip() { - System.out.println("Add interpreter class name to '" - + ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETERS.getVarName() + "' property " - + "in your conf/zeppelin-site.xml file"); - } - - private static void interpreterSettingTip() { - System.out.println("Create interpreter setting in 'Interpreter' menu on GUI." - + " And then you can bind interpreter on your notebook"); + System.out.println("\n1. Restart Zeppelin" + + "\n2. Create interpreter setting in 'Interpreter' menu on Zeppelin GUI" + + "\n3. Then you can bind the interpreter on your note"); } }