GitHub user Leemoonsoo opened a pull request:
https://github.com/apache/incubator-zeppelin/pull/789
[ZEPPELIN-95] Make environment variables and jvm properties customizable
per Interpreter
### What is this PR for?
This PR make environment variable and jvm properties customizable per
interpreter settings.
by export property value as environment variable when property key is
matches pattern [A-Z_0-9] otherwise set property value as JVM property.
### What type of PR is it?
Feature
### Todos
* [x] - export property as environment variable when property name matches
pattern [A-Z_0-9]
* [x] - set property as JVM property when property name does not match
pattern [A-Z_0-9]
* [x] - unit test
* [x] - doc
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-95
### How should this be tested?
set some property in interpreter setting page, such as
| name | value|
| ------------- | ------------- |
| MY_ENV_VAR | some value |
| my.jvm.property | some value |
And read value in interpreter. (for example spark interpreter let user
access environment variable and jvm property)
### Screenshots (if appropriate)
N/A
### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? yes
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Leemoonsoo/incubator-zeppelin ZEPPELIN-95
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-zeppelin/pull/789.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 #789
----
commit f5a130a40ef2662e467e9d0e5c87c81b5e9fac36
Author: Lee moon soo <[email protected]>
Date: 2016-03-21T17:56:02Z
export interpreter property as environment variable or jvm property
commit 077c8ccc915abd8914353072aa4f9e2dcef60822
Author: Lee moon soo <[email protected]>
Date: 2016-03-21T18:04:10Z
Add docs
----
---
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.
---