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 089D0200BB1 for ; Thu, 20 Oct 2016 00:06:35 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 073E9160AFB; Wed, 19 Oct 2016 22:06:35 +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 4FBD5160AEA for ; Thu, 20 Oct 2016 00:06:34 +0200 (CEST) Received: (qmail 60785 invoked by uid 500); 19 Oct 2016 22:06:33 -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 60776 invoked by uid 99); 19 Oct 2016 22:06:33 -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; Wed, 19 Oct 2016 22:06:33 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3DC33E09DE; Wed, 19 Oct 2016 22:06:33 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: moon@apache.org To: commits@zeppelin.apache.org Message-Id: <3d96928f25a1450ba42f8fea72bc171c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: zeppelin git commit: [ZEPPELIN-1314] dump out the R command Date: Wed, 19 Oct 2016 22:06:33 +0000 (UTC) archived-at: Wed, 19 Oct 2016 22:06:35 -0000 Repository: zeppelin Updated Branches: refs/heads/master fab3e5ff9 -> ab4463381 [ZEPPELIN-1314] dump out the R command This PR replaces https://github.com/apache/zeppelin/pull/1309/ Author: Chris Snow Closes #1531 from snowch/snowch-patch-1 and squashes the following commits: f5f7a70 [Chris Snow] use toString() method of CommandLine for logging 09a6d23 [Chris Snow] added missing semi-colon for statement 25e8a29 [Chris Snow] [ZEPPELIN-1314] dump out the R command Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/ab446338 Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/ab446338 Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/ab446338 Branch: refs/heads/master Commit: ab446338197443eee0f9d2ba4dd1c06a3320e4c0 Parents: fab3e5f Author: Chris Snow Authored: Tue Oct 18 05:56:25 2016 +0100 Committer: Lee moon soo Committed: Thu Oct 20 07:06:19 2016 +0900 ---------------------------------------------------------------------- spark/src/main/java/org/apache/zeppelin/spark/ZeppelinR.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ab446338/spark/src/main/java/org/apache/zeppelin/spark/ZeppelinR.java ---------------------------------------------------------------------- diff --git a/spark/src/main/java/org/apache/zeppelin/spark/ZeppelinR.java b/spark/src/main/java/org/apache/zeppelin/spark/ZeppelinR.java index 2648833..961793d 100644 --- a/spark/src/main/java/org/apache/zeppelin/spark/ZeppelinR.java +++ b/spark/src/main/java/org/apache/zeppelin/spark/ZeppelinR.java @@ -141,6 +141,9 @@ public class ZeppelinR implements ExecuteResultHandler { cmd.addArgument(Integer.toString(port)); cmd.addArgument(libPath); cmd.addArgument(Integer.toString(sparkVersion.toNumber())); + + // dump out the R command to facilitate manually running it, e.g. for fault diagnosis purposes + logger.debug(cmd.toString()); executor = new DefaultExecutor(); outputStream = new SparkOutputStream(logger);