You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by pd...@apache.org on 2021/06/25 07:57:25 UTC
[zeppelin] branch master updated: [ZEPPELIN-5427] mongodb
interpreter: config by env vars
This is an automated email from the ASF dual-hosted git repository.
pdallig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/master by this push:
new 9168015 [ZEPPELIN-5427] mongodb interpreter: config by env vars
9168015 is described below
commit 91680156171f1372c45205d11f94145af572b3c1
Author: Christoph Nölle <19...@users.noreply.github.co>
AuthorDate: Thu Jun 24 01:05:40 2021 +0200
[ZEPPELIN-5427] mongodb interpreter: config by env vars
### What is this PR for?
Add the possibility to configure the interpreter through env vars
### What type of PR is it?
Improvement
### Todos
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-5427
### How should this be tested?
### Screenshots (if appropriate)
### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? Maybe
Author: Christoph Nölle <19...@users.noreply.github.co>
Closes #4153 from cnoelle/ZEPPELIN-5427 and squashes the following commits:
51fc112b8 [Christoph Nölle] mongodb interpreter: config by env vars
---
mongodb/src/main/resources/interpreter-setting.json | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/mongodb/src/main/resources/interpreter-setting.json b/mongodb/src/main/resources/interpreter-setting.json
index 706ba12..da6268e 100644
--- a/mongodb/src/main/resources/interpreter-setting.json
+++ b/mongodb/src/main/resources/interpreter-setting.json
@@ -5,70 +5,70 @@
"className": "org.apache.zeppelin.mongodb.MongoDbInterpreter",
"properties": {
"mongo.shell.path": {
- "envName": null,
+ "envName": "MONGO_SHELL_PATH",
"propertyName": "mongo.shell.path",
"defaultValue": "mongo",
"description": "MongoDB shell local path",
"type": "string"
},
"mongo.shell.command.table.limit": {
- "envName": null,
+ "envName": "MONGO_SHELL_COMMAND_TABLE_LIMIT",
"propertyName": "mongo.shell.command.table.limit",
"defaultValue": "1000",
"description": "Limit of documents displayed in a table",
"type": "number"
},
"mongo.shell.command.timeout": {
- "envName": null,
+ "envName": "MONGO_SHELL_COMMAND_TIMEOUT",
"propertyName": "mongo.shell.command.timeout",
"defaultValue": "60000",
"description": "MongoDB shell command timeout",
"type": "number"
},
"mongo.server.host": {
- "envName": null,
+ "envName": "MONGO_SERVER_HOST",
"propertyName": "mongo.server.host",
"defaultValue": "localhost",
"description": "MongoDB server host to connect to",
"type": "string"
},
"mongo.server.port": {
- "envName": null,
+ "envName": "MONGO_SERVER_PORT",
"propertyName": "mongo.server.port",
"defaultValue": "27017",
"description": "MongoDB server port to connect to",
"type": "number"
},
"mongo.server.database": {
- "envName": null,
+ "envName": "MONGO_SERVER_DATABASE",
"propertyName": "mongo.server.database",
"defaultValue": "test",
"description": "MongoDB database name",
"type": "string"
},
"mongo.server.authenticationDatabase": {
- "envName": null,
+ "envName": "MONGO_SERVER_AUTHENTICATION_DATABASE",
"propertyName": "mongo.server.authenticationDatabase",
"defaultValue": "",
"description": "MongoDB database name for authentication",
"type": "string"
},
"mongo.server.username": {
- "envName": null,
+ "envName": "MONGO_SERVER_USERNAME",
"propertyName": "mongo.server.username",
"defaultValue": "",
"description": "Username for authentication",
"type": "string"
},
"mongo.server.password": {
- "envName": null,
+ "envName": "MONGO_SERVER_PASSWORD",
"propertyName": "mongo.server.password",
"defaultValue": "",
"description": "Password for authentication",
"type": "password"
},
"mongo.interpreter.concurrency.max": {
- "envName": null,
+ "envName": "MONGO_INTERPRETER_CONCURRENCY_MAX",
"propertyName": "mongo.interpreter.concurrency.max",
"defaultValue": "10",
"description": "Max count of scheduler concurrency",