zeppelin/bin
Jeff Zhang 1b9c46dcfd ZEPPELIN-1263. Should specify zeppelin's spark configuration through --conf arguments of spark-submit
### What is this PR for?

For now we spark configuration at runtime rather than pass them through `--conf`, it would cause several issues.
- Some configuration has to be set through --conf, otherwise we need to duplicate code in SparkSubmit.scala (spark.yarn.keytab, spark.yarn.principal)
- Some configuration would conflict with spark-defaults.conf. If you specify spark.master as yarn-client in spark-defaults.conf but specify spark.master as local in zeppelin side, you will see the spark interpreter fail to start due to this inconsistency.
- As ZEPPELIN-1460 described, it is hard to figure what is the effective configuration.
- We can not use yarn-cluster mode although it is not supported now, but I think it is necessary to do that as zeppelin needs to support multiple users.

This PR would pass all the spark related configuration to spark-submit through `--conf`, so that it is easy to know and guarantee that configuration on zeppelin interpreter setting take precedence over spark-defaults.conf.  And it is also good for maintenance that upstream change (any change about configuration in spark) would not affect us.
### What type of PR is it?

[Improvement]
### Todos
- [ ] - Task
### What is the Jira issue?
- https://issues.apache.org/jira/browse/ZEPPELIN-1263
### How should this be tested?

Tested spark 1.6 spark 2.0 on both yarn-client mode and embedded mode.
### Screenshots (if appropriate)

![image](https://cloud.githubusercontent.com/assets/164491/18702212/3e7b54d0-8013-11e6-95f7-502b3cf89d67.png)
### 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 #1446 from zjffdu/ZEPPELIN-1263 and squashes the following commits:

f57d7bb [Jeff Zhang] address comments
151e991 [Jeff Zhang] ZEPPELIN-1263. Should specify zeppelin's spark configuration through --conf arguments of spark-submit
2017-07-22 20:30:44 +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-1785. Remove ZEPPELIN_NOTEBOOK_DIR and ZEPPELIN_INTERPRETER_DIR from common.sh 2016-12-15 10:45:28 -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-1263. Should specify zeppelin's spark configuration through --conf arguments of spark-submit 2017-07-22 20:30:44 +08:00
zeppelin-daemon.sh [ZEPPELIN-1605] zeppelin-interpreter: don't publish shaded JAR on maven central 2016-12-11 14:44:13 +09:00
zeppelin.cmd Followup for ZEPPELIN-1785 2016-12-19 10:40:57 -08:00
zeppelin.sh [ZEPPELIN-2375]: Avoid modification of CLASSPATH variable. 2017-04-22 19:21:51 -07:00