zeppelin/bin
Jeff Zhang 5d7151097e ZEPPELIN-2898. Support Yarn-Cluster for Spark Interpreter
### What is this PR for?
This is the first version for supporting yarn-cluster of `SparkInterpreter`.   I just delegate all the function to `spark-submit` as yarn-cluster is natively supported by spark, we don't need to reinvent the wheel. But there's still improvement to be done in future, e.g. I put some spark specific logic in `InterpreterSetting` which is not a good practise.  I plan to improve it when I refactor the `Interpreter` class (ZEPPELIN-2685).

Besides that, I also add `MiniHadoopCluster` & `MiniZeppelin` which help for the integration test of yarn-client & yarn-cluster mode, otherwise I have to manually verify yarn-client & yarn-cluster mode which would easily cause regression issue in future.

To be noticed:

* SPARK_HOME must be specified for yarn-cluster mode
* HADOOP_CONF_DIR must be specified for yarn-cluster mode

### What type of PR is it?
[Feature]

### Todos
* [ ] - Task

### What is the Jira issue?
https://github.com/zjffdu/zeppelin/tree/ZEPPELIN-2898

### How should this be tested?
System test is added in `SparkInterpreterIT`.

### Questions:
* Does the licenses files need update?  No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Jeff Zhang <zjffdu@apache.org>

Closes #2577 from zjffdu/ZEPPELIN-2898 and squashes the following commits:

9da7c4b [Jeff Zhang] ZEPPELIN-2898. Support Yarn-Cluster for Spark Interpreter
2017-09-19 06:40:51 +08:00
..
common.cmd ZEPPELIN-1785. Remove ZEPPELIN_NOTEBOOK_DIR and ZEPPELIN_INTERPRETER_DIR from common.sh 2016-12-15 10:45:28 -08:00
common.sh ZEPPELIN-2898. Support Yarn-Cluster for Spark Interpreter 2017-09-19 06:40:51 +08:00
functions.cmd [ZEPPELIN-647] - Native Windows support for startup scripts and configuration 2016-03-24 08:04:26 -07:00
functions.sh [MINOR] Remove obsolete and old copyright notices in legal header 2016-02-21 09:08:55 -08:00
install-interpreter.sh [HOTFIX][ZEPPELIN-2011] Add lib/interpreter to classpath to fix interpreter installer 2017-01-26 14:05:06 +09:00
interpreter.cmd [ZEPPELIN-1605] zeppelin-interpreter: don't publish shaded JAR on maven central 2016-12-11 14:44:13 +09:00
interpreter.sh ZEPPELIN-2898. Support Yarn-Cluster for Spark Interpreter 2017-09-19 06:40:51 +08:00
zeppelin-daemon.sh ZEPPELIN-1515. Notebook: HDFS as a backend storage (Use hadoop client jar) 2017-08-24 08:29:09 +08:00
zeppelin.cmd Followup for ZEPPELIN-1785 2016-12-19 10:40:57 -08:00
zeppelin.sh ZEPPELIN-1515. Notebook: HDFS as a backend storage (Use hadoop client jar) 2017-08-24 08:29:09 +08:00