GitHub user zjffdu opened a pull request:
https://github.com/apache/zeppelin/pull/1190
ZEPPELIN-1187. Redirect output of the process running interpreter.sh to
log4j
### What is this PR for?
For now the output of process running interpter.sh is lost, it would be
nice to redirect it to log4j for debugging, especially debugging related with
interpreter.sh
### What type of PR is it?
Improvement
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1187
### How should this be tested?
Tested manully, here's the output in the log file of the process running
interpreter.sh
```
INFO [2016-07-15 15:30:10,537] ({Exec Stream Pumper}
RemoteInterpreterManagedProcess.java[processLine]:179) - Spark Command:
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -cp
/Users/jzhang/github/zeppelin/interpreter/spark/*:/Users/jzhang/github/zeppelin/zeppelin-interpreter/target/lib/*:/Users/jzhang/github/zeppelin/conf/:/Users/jzhang/github/zeppelin/conf/:/Users/jzhang/github/zeppelin/zeppelin-interpreter/target/classes/Users/jzhang/github/zeppelin/interpreter/spark/zeppelin-spark-0.7.0-SNAPSHOT.jar:/Users/jzhang/Java/lib/spark-1.6.1/conf/:/Users/jzhang/Java/lib/spark-1.6.1/assembly/target/scala-2.10/spark-assembly-1.6.1-hadoop2.6.0.jar:/Users/jzhang/Java/lib/spark-1.6.1/lib_managed/jars/datanucleus-api-jdo-3.2.6.jar:/Users/jzhang/Java/lib/spark-1.6.1/lib_managed/jars/datanucleus-core-3.2.10.jar:/Users/jzhang/Java/lib/spark-1.6.1/lib_managed/jars/datanucleus-rdbms-3.2.9.jar:/Users/jzhang/Java/lib/hadoop-2.7.2/etc/hadoop/
-Xms1g -Xmx1g -Dfile.encoding
=UTF-8
-Dlog4j.configuration=file:///Users/jzhang/github/zeppelin/conf/log4j.properties
-Dzeppelin.log.file=/Users/jzhang/github/zeppelin/logs/zeppelin-interpreter-spark-jzhang-jzhangMBPr.local.log
org.apache.spark.deploy.SparkSubmit --conf
spark.driver.extraClassPath=::/Users/jzhang/github/zeppelin/interpreter/spark/*:/Users/jzhang/github/zeppelin/zeppelin-interpreter/target/lib/*::/Users/jzhang/github/zeppelin/conf:/Users/jzhang/github/zeppelin/conf:/Users/jzhang/github/zeppelin/zeppelin-interpreter/target/classes/Users/jzhang/github/zeppelin/interpreter/spark/zeppelin-spark-0.7.0-SNAPSHOT.jar
--conf spark.driver.extraJavaOptions= -Dfile.encoding=UTF-8
-Dlog4j.configuration=file:///Users/jzhang/github/zeppelin/conf/log4j.properties
-Dzeppelin.log.file=/Users/jzhang/github/zeppelin/logs/zeppelin-interpreter-spark-jzhang-jzhangMBPr.local.log
--class org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer
/Users/jzhang/github/zeppelin/interpreter/spark/zeppelin-spark-0.7.0-SNA
PSHOT.jar 55592
INFO [2016-07-15 15:30:10,537] ({Exec Stream Pumper}
RemoteInterpreterManagedProcess.java[processLine]:179) -
========================================
INFO [2016-07-15 15:30:11,058] ({Exec Stream Pumper}
RemoteInterpreterManagedProcess.java[processLine]:179) - SLF4J: Class path
contains multiple SLF4J bindings.
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zjffdu/incubator-zeppelin ZEPPELIN-1187
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/1190.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1190
----
commit 977f42610f1dd0e556b4e3e63d1ccf3a6387dd89
Author: Jeff Zhang <[email protected]>
Date: 2016-07-15T07:36:22Z
ZEPPELIN-1187. Redirect output of the process running interpreter.sh to
log4j
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---